If it is in garbage collection it is just not 3 names or more that sets it off.
I've tried it with Swaroop, and just one other name.
With the " = None " statements left out,
Wanless and les do not work. anless and less do work.
Also when I run the ones that do not work in Idle, the runtime errors are different from when I run it from the command line. So is that just a difference in the environments or part...
User Profile
Collapse
-
Yes it does work now. With the added code all names work. Just thought it was funny, I spent hours looking for my mistake and it was something else....Leave a comment:
-
Thanks for answering. I was thinking as a newbie there was something I just don't know about....Leave a comment:
-
Ubuntu 9.04
python 2.6.2
idle(using python 2.6.2)
gedit 2.26.1Leave a comment:
-
initializing class with certain names causes runtime errors
Hello, I am new to programming with python. I am using the tutorial, "Byte of Python" and am on p. 82. I have come across something very unusual by accident and I was wondering if anybody here could figure it out. In the program attached, if I use "wanless.sayHI( )" which is my name,python gives an error message........ .Exception AttributeError: "'NoneType' object has no attribute 'population'" in <bound method Person.__del__...
No activity results to display
Show More
Leave a comment: