<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/importlib.h, branch v3.8.9</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>[3.8] bpo-37830: Fix compilation of break and continue in finally. (GH-15320) (GH-15456)</title>
<updated>2019-08-24T10:41:53+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-08-24T10:41:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=ed146b52a3b6537689324e3bd9952055f9c6b43d'/>
<id>ed146b52a3b6537689324e3bd9952055f9c6b43d</id>
<content type='text'>
Fix compilation of "break" and "continue" in the
"finally" block when the corresponding "try" block
contains "return" with a non-constant value.
(cherry picked from commit ef61c524ddeeb56da3858b86e349e7288d68178e)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix compilation of "break" and "continue" in the
"finally" block when the corresponding "try" block
contains "return" with a non-constant value.
(cherry picked from commit ef61c524ddeeb56da3858b86e349e7288d68178e)
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37213: Handle negative line deltas correctly in the peephole optimizer (GH-13969)</title>
<updated>2019-06-13T18:35:40+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-06-13T18:35:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=5282b3b1d2e0bdf13899b1616aea20a6e3c4e13e'/>
<id>5282b3b1d2e0bdf13899b1616aea20a6e3c4e13e</id>
<content type='text'>
The peephole optimizer was not optimizing correctly bytecode after negative deltas were introduced. This is due to the fact that some special values (255) were being searched for in both instruction pointer delta and line number deltas.
(cherry picked from commit 3498c642f4e83f3d8e2214654c0fa8e0d51cebe5)

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The peephole optimizer was not optimizing correctly bytecode after negative deltas were introduced. This is due to the fact that some special values (255) were being searched for in both instruction pointer delta and line number deltas.
(cherry picked from commit 3498c642f4e83f3d8e2214654c0fa8e0d51cebe5)

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36829: Add sys.unraisablehook() (GH-13187)</title>
<updated>2019-05-22T09:28:22+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-05-22T09:28:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=ef9d9b63129a2f243591db70e9a2dd53fab95d86'/>
<id>ef9d9b63129a2f243591db70e9a2dd53fab95d86</id>
<content type='text'>
Add new sys.unraisablehook() function which can be overridden to
control how "unraisable exceptions" are handled. It is called when an
exception has occurred but there is no way for Python to handle it.
For example, when a destructor raises an exception or during garbage
collection (gc.collect()).

Changes:

* Add an internal UnraisableHookArgs type used to pass arguments to
  sys.unraisablehook.
* Add _PyErr_WriteUnraisableDefaultHook().
* The default hook now ignores exception on writing the traceback.
* test_sys now uses unittest.main() to automatically discover tests:
  remove test_main().
* Add _PyErr_Init().
* Fix PyErr_WriteUnraisable(): hold a strong reference to sys.stderr
  while using it</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add new sys.unraisablehook() function which can be overridden to
control how "unraisable exceptions" are handled. It is called when an
exception has occurred but there is no way for Python to handle it.
For example, when a destructor raises an exception or during garbage
collection (gc.collect()).

Changes:

* Add an internal UnraisableHookArgs type used to pass arguments to
  sys.unraisablehook.
* Add _PyErr_WriteUnraisableDefaultHook().
* The default hook now ignores exception on writing the traceback.
* test_sys now uses unittest.main() to automatically discover tests:
  remove test_main().
* Add _PyErr_Init().
* Fix PyErr_WriteUnraisable(): hold a strong reference to sys.stderr
  while using it</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36540: PEP 570 -- Implementation (GH-12701)</title>
<updated>2019-04-29T12:36:57+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2019-04-29T12:36:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8c77b8cb9188165a123f2512026e3629bf03dc9b'/>
<id>8c77b8cb9188165a123f2512026e3629bf03dc9b</id>
<content type='text'>
This commit contains the implementation of PEP570: Python positional-only parameters.

* Update Grammar/Grammar with new typedarglist and varargslist

* Regenerate grammar files

* Update and regenerate AST related files

* Update code object

* Update marshal.c

* Update compiler and symtable

* Regenerate importlib files

* Update callable objects

* Implement positional-only args logic in ceval.c

* Regenerate frozen data

* Update standard library to account for positional-only args

* Add test file for positional-only args

* Update other test files to account for positional-only args

* Add News entry

* Update inspect module and related tests</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit contains the implementation of PEP570: Python positional-only parameters.

* Update Grammar/Grammar with new typedarglist and varargslist

* Regenerate grammar files

* Update and regenerate AST related files

* Update code object

* Update marshal.c

* Update compiler and symtable

* Regenerate importlib files

* Update callable objects

* Implement positional-only args logic in ceval.c

* Regenerate frozen data

* Update standard library to account for positional-only args

* Add test file for positional-only args

* Update other test files to account for positional-only args

* Add News entry

* Update inspect module and related tests</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-35321: Set the spec origin to frozen in frozen modules (#11732)</title>
<updated>2019-02-05T00:56:26+00:00</updated>
<author>
<name>Nina Zakharenko</name>
<email>nzakharenko@gmail.com</email>
</author>
<published>2019-02-05T00:56:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=69091cb497b2f0fe7e2789b30b43cf78caf9de9b'/>
<id>69091cb497b2f0fe7e2789b30b43cf78caf9de9b</id>
<content type='text'>
* bpo-35321: Set the spec origin to frozen in frozen modules

This fix correctly sets the spec origin to
"frozen" for the _frozen_importlib module. Note that the
origin was already correctly set in _frozen_importlib_external.

* 📜🤖 Added by blurb_it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* bpo-35321: Set the spec origin to frozen in frozen modules

This fix correctly sets the spec origin to
"frozen" for the _frozen_importlib module. Note that the
origin was already correctly set in _frozen_importlib_external.

* 📜🤖 Added by blurb_it.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-16806: Fix `lineno` and `col_offset` for multi-line string tokens (GH-10021)</title>
<updated>2019-01-13T04:05:13+00:00</updated>
<author>
<name>Anthony Sottile</name>
<email>asottile@umich.edu</email>
</author>
<published>2019-01-13T04:05:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=995d9b92979768125ced4da3a56f755bcdf80f6e'/>
<id>995d9b92979768125ced4da3a56f755bcdf80f6e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34100: Merge constants recursively (GH-8341)</title>
<updated>2018-11-26T12:23:22+00:00</updated>
<author>
<name>INADA Naoki</name>
<email>methane@users.noreply.github.com</email>
</author>
<published>2018-11-26T12:23:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c2e1607a51d7a17f143b5a34e8cff7c6fc58a091'/>
<id>c2e1607a51d7a17f143b5a34e8cff7c6fc58a091</id>
<content type='text'>
There are some same consts in a module.  This commit merges them into
single instance.  It reduces number of objects in memory after loading modules.


https://bugs.python.org/issue34100</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are some same consts in a module.  This commit merges them into
single instance.  It reduces number of objects in memory after loading modules.


https://bugs.python.org/issue34100</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34876: Change the lineno of the AST for decorated function and class. (GH-9731)</title>
<updated>2018-10-30T11:16:02+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2018-10-30T11:16:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=95b6acf951fa7f503a3cc5ce7d969d7bcf2f95c9'/>
<id>95b6acf951fa7f503a3cc5ce7d969d7bcf2f95c9</id>
<content type='text'>
It was overridden by the lineno of the first decorator. Now it is
the lineno of 'def' or 'class'.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It was overridden by the lineno of the first decorator. Now it is
the lineno of 'def' or 'class'.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-33331: Clean modules in the reversed order in PyImport_Cleanup(). (GH-6565)</title>
<updated>2018-10-29T17:30:16+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2018-10-29T17:30:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c93c58b5d560cfe44d9884ff02c9b18e06333360'/>
<id>c93c58b5d560cfe44d9884ff02c9b18e06333360</id>
<content type='text'>
Modules imported last are now cleared first at interpreter shutdown.

A newly imported module is moved to the end of sys.modules, behind
modules on which it depends.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Modules imported last are now cleared first at interpreter shutdown.

A newly imported module is moved to the end of sys.modules, behind
modules on which it depends.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-25711: Rewrite zipimport in pure Python. (GH-6809)</title>
<updated>2018-09-18T19:22:29+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2018-09-18T19:22:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=79d1c2e6c9d1bc1cf41ec3041801ca1a2b9a995b'/>
<id>79d1c2e6c9d1bc1cf41ec3041801ca1a2b9a995b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
