[issue6495] particular variable's name case exception attributeError

tq0fqeu report at bugs.python.org
Thu Jul 16 10:46:12 CEST 2009


New submission from tq0fqeu <tq0fqeu at gmail.com>:

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

----------
files: objvar.py
messages: 90564
nosy: tq0fqeu
severity: normal
status: open
title: particular variable's name case exception attributeError
type: compile error
versions: Python 2.6
Added file: http://bugs.python.org/file14505/objvar.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6495>
_______________________________________


More information about the Python-bugs-list mailing list