[EMAIL PROTECTED] a écrit :
> Sorry for the vague subject. Not sure what the right terminology is.
>
> How can I use an instance's data by reference to the instance name,
> not the instance attribute? OK the question is probably really poor
> but hopefully an example will make it clear.
>
>
>>x=
On Thu, 19 Apr 2007 16:47:55 -0700, cfriedalek wrote:
> Sorry for the vague subject. Not sure what the right terminology is.
>
> How can I use an instance's data by reference to the instance name,
> not the instance attribute? OK the question is probably really poor
> but hopefully an example wil
Sorry for the vague subject. Not sure what the right terminology is.
How can I use an instance's data by reference to the instance name,
not the instance attribute? OK the question is probably really poor
but hopefully an example will make it clear.
> x=1
> type(x)
> x.__add__(1)
2
> print x
1
>