[issue6495] particular variable's name case exception attributeError

R. David Murray report at bugs.python.org
Thu Jul 16 12:00:10 CEST 2009


R. David Murray <rdmurray at bitdance.com> added the comment:

You examples both work for me.  Please go to python-list or python-tutor
for help debugging your code.  In particular you need to learn more
about __del__ and why you probably don't want to be using it.

rdmurray at maestro:~/python/trunk>./python  
Python 2.7a0 (trunk:74008, Jul 14 2009, 20:56:15) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from objvar import Person
>>> rosss = Person('ross')
(Initializing ross)
>>> rosss.sayHi()
Hi, my name is ross.
>>> rosss.howMany()
I am the only person here.
>>> ross = Person('ross')
(Initializing ross)
>>> ross.sayHi()
Hi, my name is ross.
>>> ross.howMany()
We have 2 persons here.

----------
components: +Interpreter Core
nosy: +r.david.murray
priority:  -> low
resolution:  -> works for me
stage:  -> committed/rejected
status: open -> closed
type: compile error -> behavior

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


More information about the Python-bugs-list mailing list