Dict in Class Problem
Erik Max Francis
max at alcyone.com
Tue Oct 8 17:50:21 EDT 2002
Terry Reedy wrote:
> No, you have one dictionary, not two (try 'first.dicton ==
> secon.dicton'). Read more about the difference between class and
> instance attribute and about __init__() functions.
A better test would be first.dicton is secon.dicton. == tests equality,
but is tests identity.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ A physicist is an atom's way of knowing about atoms.
\__/ George Wald
REALpolitik / http://www.realpolitik.com/
Get your own customized newsfeed online in realtime ... for free!
More information about the Python-list
mailing list