Message90564
To create a instance of Class Person
[code]
rosss = Person('ross')
rosss.sayHi()
rosss.howMany()
[/code]
It's OK
But
[code]
ross = Person('ross')
ross.sayHi()
ross.howMany()
[/code]
It has exception, get that:
Exception AttributeError: "'NoneType' object has no attribute
'population'" in <bound method Person.__del__ of <__main__.Person
instance at 0xb7e0b34c>> ignored
python 2.6.2 + gcc 4.3.3 + kernel 2.6.28-13-generic |
|
Date |
User |
Action |
Args |
2009-07-16 08:46:12 | tq0fqeu | set | recipients:
+ tq0fqeu |
2009-07-16 08:46:11 | tq0fqeu | set | messageid: <1247733971.96.0.782275709389.issue6495@psf.upfronthosting.co.za> |
2009-07-16 08:46:10 | tq0fqeu | link | issue6495 messages |
2009-07-16 08:46:10 | tq0fqeu | create | |
|