[Python-Dev] Re: my plans for subinterpreters (and a per-interpreter GIL)

2021年12月15日 16:36:28 -0800

On Wed, Dec 15, 2021 at 3:00 PM Guido van Rossum <[email protected]> wrote:
> who cares if the refcount for None is 5000 or 1610612736? As long as the
> refcount of *mortal* objects is the same as it was before, this shouldn't
> be a problem.
>
indeed:
$ python -c "import sys; print(sys.getrefcount(None))"
4110
and a newly started iPython session:
In [2]: sys.getrefcount(None)
Out[2]: 28491
It does seem a bit silly to actually be tracking that refcount :-)
-CHB
-- 
Christopher Barker, PhD (Chris)
Python Language Consulting
 - Teaching
 - Scientific Software Development
 - Desktop GUI and Web Development
 - wxPython, numpy, scipy, Cython
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/36N4I4CJ53OR3CLDJSJUIXEAS3NIFURP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to