Joshua Landau wrote: > On 5 February 2014 02:22, Dan Sommers <d...@tombstonezero.net> wrote: > >> On Tue, 04 Feb 2014 19:53:52 -0500, Roy Smith wrote: >> >> > In article <ed1c2ddd-f704-4d58-a5a4-aef13de88...@googlegroups.com>, >> > David Hutto <dwightdhu...@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... -- https://mail.python.org/mailman/listinfo/python-list