[Tutor] <var:data> value changes
denis
denis.spir at free.fr
Thu May 13 14:22:14 EDT 2004
----- Original Message -----
From: Bob Gailer <bgailer at alum.rpi.edu>
To: denis <denis.spir at free.fr>; tutor python <Tutor at python.org>
Sent: Thursday, May 13, 2004 4:43 PM
Subject: Re: [Tutor] <var:data> value changes
> >>> x=1000
> >>> y=1000
> >>> x is y
>False
Put these lines in a module and run it Output is True:
x=1000
y=1000
print x is y
Right! So 'ad-hoc' interning is done by python only by 'real' program run,
not in IDLE.
Or what?
More information about the Tutor
mailing list