Inheritance and Attributes
Mark Higgins
mghiggins2003 at hotmail.com
Thu Feb 13 07:46:20 EST 2003
Graeme Winter wrote:
> Hello All,
>
> I will guess that you hear this all the time, but I didn't want to wade
> through 10k messages to find the answer...
>
> Basically, why does this:
>
> <CUT>
>
> give this:
>
> setting <__main__.this instance at 0x8138eec>.cat = "yellow"
> green
>
It doesn't for me, using python 2.2.2 on windows XP. It gives
>>> h=this()
setting <__main__.this instance at 0x00DC6440>.cat = "yellow"
>>> h.cat
'yellow'
More information about the Python-list
mailing list