Calculator Problem
Peter Otten
__peter__ at web.de
Wed Feb 5 13:15:57 EST 2014
Joshua Landau wrote:
> On 5 February 2014 02:22, Dan Sommers <dan at tombstonezero.net> wrote:
>
>> On Tue, 04 Feb 2014 19:53:52 -0500, Roy Smith wrote:
>>
>> > In article <ed1c2ddd-f704-4d58-a5a4-aef13de88817 at googlegroups.com>,
>> > David Hutto <dwightdhutto at gmail.com> wrote:
>> >
>> >> Can anyone point out how using an int as a var is possible
>> >
>> > one = 42
>> >
>> > (ducking and running)
>>
>> int = 42
>>
>> (ducking lower and running faster)
>
>
> globals()["1"] = 42
>
> (limbo, limbo, limbo like me)
>>> import sys, ctypes
>>> ctypes.memmove(id(42), id(1), sys.getsizeof(42))
37657512
>>> 42
1
Hm...
More information about the Python-list
mailing list