<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/import.c, branch misc-acks-comment</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-38858: new_interpreter() reuses pycore_init_builtins() (GH-17351)</title>
<updated>2019-11-22T18:24:49+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-11-22T18:24:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=2582d46fbcf7bdf86b9cf4016850b8d155267ac6'/>
<id>2582d46fbcf7bdf86b9cf4016850b8d155267ac6</id>
<content type='text'>
new_interpreter() now calls _PyBuiltin_Init() to create the builtins
module and calls _PyImport_FixupBuiltin(), rather than using
_PyImport_FindBuiltin(tstate, "builtins").

pycore_init_builtins() is now responsible to initialize
intepr-&gt;builtins_copy: inline _PyImport_Init() and remove this
function.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
new_interpreter() now calls _PyBuiltin_Init() to create the builtins
module and calls _PyImport_FixupBuiltin(), rather than using
_PyImport_FindBuiltin(tstate, "builtins").

pycore_init_builtins() is now responsible to initialize
intepr-&gt;builtins_copy: inline _PyImport_Init() and remove this
function.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38858: _PyImport_FixupExtensionObject() handles subinterpreters (GH-17350)</title>
<updated>2019-11-22T17:52:27+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-11-22T17:52:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=82c83bd907409c287a5bd0d0f4598f2c0538f34d'/>
<id>82c83bd907409c287a5bd0d0f4598f2c0538f34d</id>
<content type='text'>
If _PyImport_FixupExtensionObject() is called from a subinterpreter,
leave extensions unchanged and don't copy the module dictionary
into def-&gt;m_base.m_copy.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If _PyImport_FixupExtensionObject() is called from a subinterpreter,
leave extensions unchanged and don't copy the module dictionary
into def-&gt;m_base.m_copy.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36854: gcmodule.c gets its state from tstate (GH-17285)</title>
<updated>2019-11-20T10:48:18+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2019-11-20T10:48:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=67e0de6f0b060ac8f373952f0ca4b3117ad5b611'/>
<id>67e0de6f0b060ac8f373952f0ca4b3117ad5b611</id>
<content type='text'>
* Add GCState type for readability
* gcmodule.c now gets its gcstate from tstate
* _PyGC_DumpShutdownStats() now expects tstate rather than runtime
* Rename "state" to "gcstate" for readability: to avoid confusion
  between "state" and "tstate" for example.
* collect() now only expects tstate: it gets gcstate from tstate.
* Pass tstate to _PyErr_xxx() functions</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add GCState type for readability
* gcmodule.c now gets its gcstate from tstate
* _PyGC_DumpShutdownStats() now expects tstate rather than runtime
* Rename "state" to "gcstate" for readability: to avoid confusion
  between "state" and "tstate" for example.
* collect() now only expects tstate: it gets gcstate from tstate.
* Pass tstate to _PyErr_xxx() functions</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38353: Cleanup includes in the internal C API (GH-16548)</title>
<updated>2019-10-02T21:51:20+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-10-02T21:51:20+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=61691d833631fed42b86605b09e1535e3e8d40e5'/>
<id>61691d833631fed42b86605b09e1535e3e8d40e5</id>
<content type='text'>
Use forward declaration of types to avoid includes in the internal C
API. Add also comment to justify other includes.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use forward declaration of types to avoid includes in the internal C
API. Add also comment to justify other includes.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-35943: Prevent PyImport_GetModule() from returning a partially-initialized module (GH-15057)</title>
<updated>2019-09-11T12:47:39+00:00</updated>
<author>
<name>Joannah Nanjekye</name>
<email>33177550+nanjekyejoannah@users.noreply.github.com</email>
</author>
<published>2019-09-11T12:47:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=37c22206981f52ae35c28b39f7530f8438afbfdb'/>
<id>37c22206981f52ae35c28b39f7530f8438afbfdb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37409: fix relative import with no parent (#14956)</title>
<updated>2019-09-11T10:09:47+00:00</updated>
<author>
<name>Ben Lewis</name>
<email>benjimin@users.noreply.github.com</email>
</author>
<published>2019-09-11T10:09:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=92420b3e679959a7d0ce875875601a4cee45231e'/>
<id>92420b3e679959a7d0ce875875601a4cee45231e</id>
<content type='text'>
Relative imports use resolve_name to get the absolute target name,
which first seeks the current module's absolute package name from the globals:
If __package__ (and __spec__.parent) are missing then
import uses __name__, truncating the last segment if
the module is a submodule rather than a package __init__.py
(which it guesses from whether __path__ is defined).

The __name__ attempt should fail if there is no parent package (top level modules),
if __name__ is '__main__' (-m entry points), or both (scripts).
That is, if both __name__ has no subcomponents and the module does not seem
to be a package __init__ module then import should fail.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Relative imports use resolve_name to get the absolute target name,
which first seeks the current module's absolute package name from the globals:
If __package__ (and __spec__.parent) are missing then
import uses __name__, truncating the last segment if
the module is a submodule rather than a package __init__.py
(which it guesses from whether __path__ is defined).

The __name__ attempt should fail if there is no parent package (top level modules),
if __name__ is '__main__' (-m entry points), or both (scripts).
That is, if both __name__ has no subcomponents and the module does not seem
to be a package __init__ module then import should fail.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37444: Update differing exception between builtins and importlib (GH-14869)</title>
<updated>2019-08-03T05:46:02+00:00</updated>
<author>
<name>Ngalim Siregar</name>
<email>ngalim.siregar@gmail.com</email>
</author>
<published>2019-08-03T05:46:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=c5fa44944ee0a31a12b9a70776c7cb56c4dc39a2'/>
<id>c5fa44944ee0a31a12b9a70776c7cb56c4dc39a2</id>
<content type='text'>
Imports now raise `TypeError` instead of `ValueError` for relative import failures. This makes things consistent between `builtins.__import__` and `importlib.__import__` as well as using a more natural import for the failure.


https://bugs.python.org/issue37444



Automerge-Triggered-By: @brettcannon</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Imports now raise `TypeError` instead of `ValueError` for relative import failures. This makes things consistent between `builtins.__import__` and `importlib.__import__` as well as using a more natural import for the failure.


https://bugs.python.org/issue37444



Automerge-Triggered-By: @brettcannon</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typos in comments, docs and test names (#15018)</title>
<updated>2019-07-30T22:16:13+00:00</updated>
<author>
<name>Min ho Kim</name>
<email>minho42@gmail.com</email>
</author>
<published>2019-07-30T22:16:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=c4cacc8c5eab50db8da3140353596f38a01115ca'/>
<id>c4cacc8c5eab50db8da3140353596f38a01115ca</id>
<content type='text'>
* Fix typos in comments, docs and test names

* Update test_pyparse.py

account for change in string length

* Apply suggestion: splitable -&gt; splittable

Co-Authored-By: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;

* Apply suggestion: splitable -&gt; splittable

Co-Authored-By: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;

* Apply suggestion: Dealloccte -&gt; Deallocate

Co-Authored-By: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;

* Update posixmodule checksum.

* Reverse idlelib changes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fix typos in comments, docs and test names

* Update test_pyparse.py

account for change in string length

* Apply suggestion: splitable -&gt; splittable

Co-Authored-By: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;

* Apply suggestion: splitable -&gt; splittable

Co-Authored-By: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;

* Apply suggestion: Dealloccte -&gt; Deallocate

Co-Authored-By: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;

* Update posixmodule checksum.

* Reverse idlelib changes.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37547: add _PyObject_CallMethodOneArg (GH-14685)</title>
<updated>2019-07-11T08:59:05+00:00</updated>
<author>
<name>Jeroen Demeyer</name>
<email>J.Demeyer@UGent.be</email>
</author>
<published>2019-07-11T08:59:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=59ad110d7a7784d53d0b502eebce0346597a6bef'/>
<id>59ad110d7a7784d53d0b502eebce0346597a6bef</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267)</title>
<updated>2019-07-08T08:19:25+00:00</updated>
<author>
<name>Jeroen Demeyer</name>
<email>J.Demeyer@UGent.be</email>
</author>
<published>2019-07-08T08:19:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=762f93ff2efd6b7ef0177cad57939c0ab2002eac'/>
<id>762f93ff2efd6b7ef0177cad57939c0ab2002eac</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
