<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/importlib.h, branch Mariatta-patch-2</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-41323: Perform 'peephole' optimizations directly on the CFG. (GH-21517)</title>
<updated>2020-07-30T09:03:00+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2020-07-30T09:03:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=6e8128f02e1d36e38e5866f9dc36e051caa47bc9'/>
<id>6e8128f02e1d36e38e5866f9dc36e051caa47bc9</id>
<content type='text'>
* Move 'peephole' optimizations into compile.c and perform them directly on the CFG.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Move 'peephole' optimizations into compile.c and perform them directly on the CFG.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41076: Pre-feed the parser with the f-string expression location (GH-21054)</title>
<updated>2020-06-27T23:41:48+00:00</updated>
<author>
<name>Lysandros Nikolaou</name>
<email>lisandrosnik@gmail.com</email>
</author>
<published>2020-06-27T23:41:48+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=1f0f4abb110b9fbade6175842b6a26ab0b8df6dd'/>
<id>1f0f4abb110b9fbade6175842b6a26ab0b8df6dd</id>
<content type='text'>
This commit changes the parsing of f-string expressions with the new parser. The parser gets pre-fed with the location of the expression itself (not the f-string, which was what we were doing before). This allows us to completely skip the shifting of the AST nodes after the parsing is completed.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit changes the parsing of f-string expressions with the new parser. The parser gets pre-fed with the location of the expression itself (not the f-string, which was what we were doing before). This allows us to completely skip the shifting of the AST nodes after the parsing is completed.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503)</title>
<updated>2020-04-22T22:29:27+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2020-04-22T22:29:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=c5fc15685202cda73f7c3f5c6f299b0945f58508'/>
<id>c5fc15685202cda73f7c3f5c6f299b0945f58508</id>
<content type='text'>
Co-authored-by: Guido van Rossum &lt;guido@python.org&gt;
Co-authored-by: Lysandros Nikolaou &lt;lisandrosnik@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Guido van Rossum &lt;guido@python.org&gt;
Co-authored-by: Lysandros Nikolaou &lt;lisandrosnik@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39987: Simplify setting lineno in the compiler. (GH-19037)</title>
<updated>2020-03-17T16:07:30+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-03-17T16:07:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=61cb3d02b83e746e59bb1351a0865e3b8714b2d6'/>
<id>61cb3d02b83e746e59bb1351a0865e3b8714b2d6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38091: Import deadlock detection causes deadlock (GH-17518)</title>
<updated>2020-03-03T01:37:25+00:00</updated>
<author>
<name>Armin Rigo</name>
<email>armin.rigo@gmail.com</email>
</author>
<published>2020-03-03T01:37:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=6daa37fd42c5d5300172728e8b4de74fe0b319fc'/>
<id>6daa37fd42c5d5300172728e8b4de74fe0b319fc</id>
<content type='text'>
Automerge-Triggered-By: @brettcannon</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Automerge-Triggered-By: @brettcannon</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39320: Handle unpacking of **values in compiler (GH-18141)</title>
<updated>2020-01-27T09:57:45+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2020-01-27T09:57:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=8a4cd700a7426341c2074a2b580306d2d60ec839'/>
<id>8a4cd700a7426341c2074a2b580306d2d60ec839</id>
<content type='text'>
* Add DICT_UPDATE and DICT_MERGE bytecodes. Use them for ** unpacking.

* Remove BUILD_MAP_UNPACK and BUILD_MAP_UNPACK_WITH_CALL, as they are now unused.

* Update magic number for ** unpacking opcodes.

* Update dis.rst to incorporate new bytecodes.

* Add blurb entry.

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add DICT_UPDATE and DICT_MERGE bytecodes. Use them for ** unpacking.

* Remove BUILD_MAP_UNPACK and BUILD_MAP_UNPACK_WITH_CALL, as they are now unused.

* Update magic number for ** unpacking opcodes.

* Update dis.rst to incorporate new bytecodes.

* Add blurb entry.

</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39336: Allow packages to not let their child modules be set on them (#18006)</title>
<updated>2020-01-23T00:42:38+00:00</updated>
<author>
<name>Dino Viehland</name>
<email>dinoviehland@gmail.com</email>
</author>
<published>2020-01-23T00:42:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=9b6fec46513006d7b06fcb645cca6e4f5bf7c7b8'/>
<id>9b6fec46513006d7b06fcb645cca6e4f5bf7c7b8</id>
<content type='text'>
* bpo-39336: Allow setattr to fail on modules which aren't assignable

When attaching a child module to a package if the object in sys.modules raises an AttributeError (e.g. because it is immutable) it causes the whole import to fail.  This now allows immutable packages to exist and an ImportWarning is reported and the AttributeError exception is ignored.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* bpo-39336: Allow setattr to fail on modules which aren't assignable

When attaching a child module to a package if the object in sys.modules raises an AttributeError (e.g. because it is immutable) it causes the whole import to fail.  This now allows immutable packages to exist and an ImportWarning is reported and the AttributeError exception is ignored.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39156: Break up COMPARE_OP into four logically distinct opcodes. (GH-17754)</title>
<updated>2020-01-14T10:12:45+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2020-01-14T10:12:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=9af0e47b1705457bb6b327c197f2ec5737a1d8f6'/>
<id>9af0e47b1705457bb6b327c197f2ec5737a1d8f6</id>
<content type='text'>
Break up COMPARE_OP into four logically distinct opcodes:
* COMPARE_OP for rich comparisons
* IS_OP for 'is' and 'is not' tests
* CONTAINS_OP for 'in' and 'is not' tests
* JUMP_IF_NOT_EXC_MATCH for checking exceptions in 'try-except' statements.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Break up COMPARE_OP into four logically distinct opcodes:
* COMPARE_OP for rich comparisons
* IS_OP for 'is' and 'is not' tests
* CONTAINS_OP for 'in' and 'is not' tests
* JUMP_IF_NOT_EXC_MATCH for checking exceptions in 'try-except' statements.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix handling of line numbers around finally-blocks. (#17737)</title>
<updated>2019-12-30T09:53:36+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2019-12-30T09:53:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=88dce26da6bc4838092128d9a6f1c98bf48b7c90'/>
<id>88dce26da6bc4838092128d9a6f1c98bf48b7c90</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Produce cleaner bytecode for 'with' and 'async with' by generating separate code for normal and exceptional paths. (#6641)</title>
<updated>2019-11-21T09:11:43+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2019-11-21T09:11:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=fee552669f21ca294f57fe0df826945edc779090'/>
<id>fee552669f21ca294f57fe0df826945edc779090</id>
<content type='text'>
Remove BEGIN_FINALLY, END_FINALLY, CALL_FINALLY and POP_FINALLY bytecodes. Implement finally blocks by code duplication.
Reimplement frame.lineno setter using line numbers rather than bytecode offsets.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove BEGIN_FINALLY, END_FINALLY, CALL_FINALLY and POP_FINALLY bytecodes. Implement finally blocks by code duplication.
Reimplement frame.lineno setter using line numbers rather than bytecode offsets.</pre>
</div>
</content>
</entry>
</feed>
