<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/import.h, branch v3.7.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/import.h?h=v3.7.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/import.h?h=v3.7.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2018-06-29T23:03:07Z</updated>
<entry>
<title>Fix redundant declaration of _PyImport_AddModuleObject (GH-7992)</title>
<updated>2018-06-29T23:03:07Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-06-29T23:03:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c919252a28f4e9dd326dc2c703b4eee6e247be83'/>
<id>urn:sha1:c919252a28f4e9dd326dc2c703b4eee6e247be83</id>
<content type='text'>
(cherry picked from commit f874bd1f0630644f3e3faaa2d51e6749465c70bd)

Co-authored-by: Jeremy Cline &lt;jeremy@jcline.org&gt;</content>
</entry>
<entry>
<title>[3.7] Add missed details of the C API introduced in 3.7. (GH-7047) (GH-7061)</title>
<updated>2018-05-22T19:26:42Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2018-05-22T19:26:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1f22a3003e0d5f125cfbcd6872ccdb92e7f2d798'/>
<id>urn:sha1:1f22a3003e0d5f125cfbcd6872ccdb92e7f2d798</id>
<content type='text'>
* Set the limited API version for PyImport_GetModule and PyOS_*Fork
  functions.
* Add PyImport_GetModule and Py_UTF8Mode in PC/python3.def.
* Add several functions in Doc/data/refcounts.dat.
(cherry picked from commit 4e29f566e8821c09d8274eadcdd355e8b1284b8b)
</content>
</entry>
<entry>
<title>rename _imp initialization function to follow conventions (#5432)</title>
<updated>2018-01-29T19:33:57Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2018-01-29T19:33:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c65ef772c335324deb03626cc447b89987781f27'/>
<id>urn:sha1:c65ef772c335324deb03626cc447b89987781f27</id>
<content type='text'>
When the C imp module became _imp in 6f44d66bc491bad5b8d897a68da68e009e27829d, the initialization function should have been renamed from PyInit_imp to PyInit__imp.</content>
</entry>
<entry>
<title>bpo-32030: Split Py_Main() into subfunctions (#4399)</title>
<updated>2017-11-15T23:48:08Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-11-15T23:48:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f7e5b56c37eb859e225e886c79c5d742c567ee95'/>
<id>urn:sha1:f7e5b56c37eb859e225e886c79c5d742c567ee95</id>
<content type='text'>
* Don't use "Python runtime" anymore to parse command line options or
  to get environment variables: pymain_init() is now a strict
  separation.
* Use an error message rather than "crashing" directly with
  Py_FatalError(). Limit the number of calls to Py_FatalError(). It
  prepares the code to handle errors more nicely later.
* Warnings options (-W, PYTHONWARNINGS) and "XOptions" (-X) are now
  only added to the sys module once Python core is properly
  initialized.
* _PyMain is now the well identified owner of some important strings
  like: warnings options, XOptions, and the "program name". The
  program name string is now properly freed at exit.
  pymain_free() is now responsible to free the "command" string.
* Rename most methods in Modules/main.c to use a "pymain_" prefix to
  avoid conflits and ease debug.
* Replace _Py_CommandLineDetails_INIT with memset(0)
* Reorder a lot of code to fix the initialization ordering. For
  example, initializing standard streams now comes before parsing
  PYTHONWARNINGS.
* Py_Main() now handles errors when adding warnings options and
  XOptions.
* Add _PyMem_GetDefaultRawAllocator() private function.
* Cleanup _PyMem_Initialize(): remove useless global constants: move
  them into _PyMem_Initialize().
* Call _PyRuntime_Initialize() as soon as possible:
  _PyRuntime_Initialize() now returns an error message on failure.
* Add _PyInitError structure and following macros:

  * _Py_INIT_OK()
  * _Py_INIT_ERR(msg)
  * _Py_INIT_USER_ERR(msg): "user" error, don't abort() in that case
  * _Py_INIT_FAILED(err)</content>
</entry>
<entry>
<title>bpo-28411: Support other mappings in PyInterpreterState.modules. (#3593)</title>
<updated>2017-09-15T22:35:20Z</updated>
<author>
<name>Eric Snow</name>
<email>ericsnowcurrently@gmail.com</email>
</author>
<published>2017-09-15T22:35:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3f9eee6eb4b25fe1926eaa5f00e02344b126f54d'/>
<id>urn:sha1:3f9eee6eb4b25fe1926eaa5f00e02344b126f54d</id>
<content type='text'>
The concrete PyDict_* API is used to interact with PyInterpreterState.modules in a number of places. This isn't compatible with all dict subclasses, nor with other Mapping implementations. This patch switches the concrete API usage to the corresponding abstract API calls.

We also add a PyImport_GetModule() function (and some other helpers) to reduce a bunch of code duplication.</content>
</entry>
<entry>
<title>bpo-28411: Isolate PyInterpreterState.modules (#3575)</title>
<updated>2017-09-14T18:18:12Z</updated>
<author>
<name>Eric Snow</name>
<email>ericsnowcurrently@gmail.com</email>
</author>
<published>2017-09-14T18:18:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d393c1b227f22fb9af66040b2b367c99a4d1fa9a'/>
<id>urn:sha1:d393c1b227f22fb9af66040b2b367c99a4d1fa9a</id>
<content type='text'>
A bunch of code currently uses PyInterpreterState.modules directly instead of PyImport_GetModuleDict(). This complicates efforts to make changes relative to sys.modules. This patch switches to using PyImport_GetModuleDict() uniformly. Also, a number of related uses of sys.modules are updated for uniformity for the same reason.

Note that this code was already reviewed and merged as part of #1638. I reverted that and am now splitting it up into more focused parts.</content>
</entry>
<entry>
<title>bpo-31404: Revert "remove modules from Py_InterpreterState (#1638)" (#3565)</title>
<updated>2017-09-14T06:46:04Z</updated>
<author>
<name>Eric Snow</name>
<email>ericsnowcurrently@gmail.com</email>
</author>
<published>2017-09-14T06:46:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=93c92f7d1dbb6e7e472f1d0444c6968858113de2'/>
<id>urn:sha1:93c92f7d1dbb6e7e472f1d0444c6968858113de2</id>
<content type='text'>
PR #1638, for bpo-28411, causes problems in some (very) edge cases. Until that gets sorted out, we're reverting the merge. PR #3506, a fix on top of #1638, is also getting reverted.</content>
</entry>
<entry>
<title>bpo-31370: Remove support for threads-less builds (#3385)</title>
<updated>2017-09-07T16:56:24Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>pitrou@free.fr</email>
</author>
<published>2017-09-07T16:56:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344'/>
<id>urn:sha1:a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344</id>
<content type='text'>
* Remove Setup.config
* Always define WITH_THREAD for compatibility.

</content>
</entry>
<entry>
<title>bpo-28411: Remove "modules" field from Py_InterpreterState. (#1638)</title>
<updated>2017-09-04T23:54:09Z</updated>
<author>
<name>Eric Snow</name>
<email>ericsnowcurrently@gmail.com</email>
</author>
<published>2017-09-04T23:54:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=86b7afdfeee77993fe896a2aa13b3f4f95973f16'/>
<id>urn:sha1:86b7afdfeee77993fe896a2aa13b3f4f95973f16</id>
<content type='text'>
sys.modules is the one true source.</content>
</entry>
<entry>
<title>Issue #29058: All stable API extensions added after Python 3.2 are now</title>
<updated>2016-12-27T12:57:39Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-12-27T12:57:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=34d0ac8027e23609e24588735b37b8d5a55f7223'/>
<id>urn:sha1:34d0ac8027e23609e24588735b37b8d5a55f7223</id>
<content type='text'>
available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of
the minimum Python version supporting this API.
</content>
</entry>
</feed>
