Can global variable be passed into Python function?

Chris Angelico rosuav at gmail.com
Sun Feb 23 06:12:26 EST 2014


On Sun, Feb 23, 2014 at 10:01 PM, Marko Rauhamaa <marko at pacujo.net> wrote:
> As for Python, there's nothing in the Python specification that would
> prevent you from having, say, 63-bit integers as representing
> themselves. IOW, you could physically place such integers as themselves
> as the reference and the number would not physically exist elsewhere.

What would id(5) be? Some constant? What would id(id([])) be?

ChrisA



More information about the Python-list mailing list