state.py
Go to the documentation of this file.
1 class State(object):
2  def __init__(self, name='annoymous'):
3  self.name = name
4 
5  def __repr__(self):
6  return self.__str__()
7 
8  def __str__(self):
9  return '%s::%s' % (self.__class__.__name__, self.name)
10 
11  def getname(self):
12  return self.name
13 
14 
15 if __name__ == '__main__':
16  st = State()
17  print(st)
18  st = State('test state')
19  print(st)
def __init__(self, name='annoymous')
Definition: state.py:2


tello_driver
Author(s): Jordy van Appeven
autogenerated on Wed May 13 2020 03:34:54