This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients egaudry, vstinner
Date 2019-10-21.10:04:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1571652299.95.0.644703970668.issue38542@roundup.psfhosted.org>
In-reply-to
Content
This issue comes from a thread on python-ideas:
https://mail.python.org/archives/list/python-ideas@python.org/thread/7FC2NHAOMKBHONFTUKMAHO5F56UU5UUD/

I understand that it's specific to Python 2.7.

--

_PyGC_generation0 variable no longer exists in Python 3.7, it has been moved into _PyRuntime.gc.generation0:

Include/internal/mem.h:146:#define _PyGC_generation0 _PyRuntime.gc.generation0


In the master branch, _PyRuntime is exported with:

Include/internal/pycore_pystate.h: PyAPI_DATA(_PyRuntimeState) _PyRuntime;


In Python 3.7, _PyRuntime is also exported, but in a different header file:

Include/internal/pystate.h: PyAPI_DATA(_PyRuntimeState) _PyRuntime;

--

Python 2.7:

Modules/gcmodule.c:50:PyGC_Head *_PyGC_generation0 = GEN_HEAD(0);

Include/objimpl.h:276:extern PyGC_Head *_PyGC_generation0;
History
Date User Action Args
2019-10-21 10:04:59vstinnersetrecipients: + vstinner, egaudry
2019-10-21 10:04:59vstinnersetmessageid: <1571652299.95.0.644703970668.issue38542@roundup.psfhosted.org>
2019-10-21 10:04:59vstinnerlinkissue38542 messages
2019-10-21 10:04:59vstinnercreate