Source

pyptug / islanders / pythonhist.txt

Full commit
class Puppy(object):
    age=1
benji=Puppy()
benji.age
dir(Puppy)
class Puppy(object):
    age=None
    dog_years=None

benji=Puppy()
benji.age=1
benji.dog_years
help(property)



class Puppy(object):
    def getage(self): return self._age
    def setage(self,value): self._age=value
    age=property(getage,setage)

benji=Puppy()
benji.age=2
benji.age



class Puppy(object):
    @property
    def age(self): return self._age
    @age.setter
    def age(self,value): self._age=value



from dogyears import *
class Puppy(object):
    @property
    def age(self): return self._age
    @age.setter
    def age(self,value): self._age=value
    dog_years=DogYears()
    
benji=Puppy()
benji.age=1.2
benji.dog_years
quit()