<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/pythonrun.c, branch backport-adf24bd-3.9</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-43660: Fix crash when displaying exceptions with custom values for sys.stderr (GH-25075) (GH-25083)</title>
<updated>2021-03-29T23:24:33+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-03-29T23:24:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=ff4715a7332123713de9920e724bb6c412d8ccef'/>
<id>ff4715a7332123713de9920e724bb6c412d8ccef</id>
<content type='text'>
(cherry picked from commit 09b90a037d18f5d4acdf1b14082e57bda78e85d3)

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 09b90a037d18f5d4acdf1b14082e57bda78e85d3)

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642) (GH-23692)</title>
<updated>2020-12-08T15:16:05+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-12-08T15:16:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=f0e42ae03c41ec32fcb3064772f46ff7f2c5ff3b'/>
<id>f0e42ae03c41ec32fcb3064772f46ff7f2c5ff3b</id>
<content type='text'>
Fix encoding name when running a ".pyc" file on Windows:
PyRun_SimpleFileExFlags() now uses the correct encoding to decode the
filename.

* Add pyrun_file() subfunction.
* Add pyrun_simple_file() subfunction.
* PyRun_SimpleFileExFlags() now calls _Py_fopen_obj() rather than
  _Py_fopen().

(cherry picked from commit b6d98c10fff6f320f8fdf595c3f9a05d8be4e31d)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix encoding name when running a ".pyc" file on Windows:
PyRun_SimpleFileExFlags() now uses the correct encoding to decode the
filename.

* Add pyrun_file() subfunction.
* Add pyrun_simple_file() subfunction.
* PyRun_SimpleFileExFlags() now calls _Py_fopen_obj() rather than
  _Py_fopen().

(cherry picked from commit b6d98c10fff6f320f8fdf595c3f9a05d8be4e31d)</pre>
</div>
</content>
</entry>
<entry>
<title>[3.9] bpo-35975: Only use cf_feature_version if PyCF_ONLY_AST in cf_flags (#21022)</title>
<updated>2020-06-28T00:34:30+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2020-06-28T00:34:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=2a1ee1d970460047bd88da9638f8c1789431d9ab'/>
<id>2a1ee1d970460047bd88da9638f8c1789431d9ab</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[3.9] Fix MSVC warnings in pythonrun.c (GH-20587) (GH-20592)</title>
<updated>2020-06-03T07:34:55+00:00</updated>
<author>
<name>Ammar Askar</name>
<email>ammar@ammaraskar.com</email>
</author>
<published>2020-06-03T07:34:55+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=20fe5328a367123f0b1df8bcbfc9ca7a4a873501'/>
<id>20fe5328a367123f0b1df8bcbfc9ca7a4a873501</id>
<content type='text'>
(cherry picked from commit 90d297012b3848454)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 90d297012b3848454)</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40612: Fix SyntaxError edge cases in traceback formatting (GH-20072)</title>
<updated>2020-05-15T02:22:48+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2020-05-15T02:22:48+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=15bc9ab301d73f20bff47a12ef05326feb40f797'/>
<id>15bc9ab301d73f20bff47a12ef05326feb40f797</id>
<content type='text'>
This fixes both the traceback.py module and the C code for formatting syntax errors (in Python/pythonrun.c). They now both consistently do the following:

- Suppress caret if it points left of text
- Allow caret pointing just past end of line
- If caret points past end of line, clip to *just* past end of line

The syntax error formatting code in traceback.py was mostly rewritten; small, subtle changes were applied to the C code in pythonrun.c.

There's still a difference when the text contains embedded newlines. Neither handles these very well, and I don't think the case occurs in practice.

Automerge-Triggered-By: @gvanrossum</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes both the traceback.py module and the C code for formatting syntax errors (in Python/pythonrun.c). They now both consistently do the following:

- Suppress caret if it points left of text
- Allow caret pointing just past end of line
- If caret points past end of line, clip to *just* past end of line

The syntax error formatting code in traceback.py was mostly rewritten; small, subtle changes were applied to the C code in pythonrun.c.

There's still a difference when the text contains embedded newlines. Neither handles these very well, and I don't think the case occurs in practice.

Automerge-Triggered-By: @gvanrossum</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40593: Improve syntax errors for invalid characters in source code. (GH-20033)</title>
<updated>2020-05-12T09:42:04+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-05-12T09:42:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=74ea6b5a7501fb393cd567fb21998d0bfeeb267c'/>
<id>74ea6b5a7501fb393cd567fb21998d0bfeeb267c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40246: Revert reporting of invalid string prefixes (GH-19888)</title>
<updated>2020-05-04T11:32:18+00:00</updated>
<author>
<name>Lysandros Nikolaou</name>
<email>lisandrosnik@gmail.com</email>
</author>
<published>2020-05-04T11:32:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=846d8b28ab9bb6197ee81372820311c0abe509c0'/>
<id>846d8b28ab9bb6197ee81372820311c0abe509c0</id>
<content type='text'>
Due to backwards compatibility concerns regarding keywords immediately followed by a string without whitespace between them (like in `bg="#d00" if clear else"#fca"`) will fail to parse,
commit 41d5b94af44e34ac05d4cd57460ed104ccf96628 has to be reverted.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Due to backwards compatibility concerns regarding keywords immediately followed by a string without whitespace between them (like in `bg="#d00" if clear else"#fca"`) will fail to parse,
commit 41d5b94af44e34ac05d4cd57460ed104ccf96628 has to be reverted.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Support CO_FUTURE_BARRY_AS_BDFL in the new parser (GH-19721)</title>
<updated>2020-04-27T17:02:07+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2020-04-27T17:02:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=2b74c835a7280840a853e3a9aaeb83758b13a458'/>
<id>2b74c835a7280840a853e3a9aaeb83758b13a458</id>
<content type='text'>
This commit also allows to pass flags to the new parser in all interfaces and fixes a bug in the parser generator that was causing to inline rules with actions, making them disappear.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit also allows to pass flags to the new parser in all interfaces and fixes a bug in the parser generator that was causing to inline rules with actions, making them disappear.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Improve various PEG-Parser related stuff (GH-19669)</title>
<updated>2020-04-23T15:36:06+00:00</updated>
<author>
<name>Lysandros Nikolaou</name>
<email>lisandrosnik@gmail.com</email>
</author>
<published>2020-04-23T15:36:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=ebebb6429c224c713e1c63a0b05d4840f52c7415'/>
<id>ebebb6429c224c713e1c63a0b05d4840f52c7415</id>
<content type='text'>
The changes in this commit are all related to @vstinner's original review comments of the initial PEP 617 implementation PR.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The changes in this commit are all related to @vstinner's original review comments of the initial PEP 617 implementation PR.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Rename PyConfig.use_peg to _use_peg_parser (GH-19670)</title>
<updated>2020-04-23T01:03:24+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-23T01:03:24+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=1def7754b7a41fe57efafaf5eff24cfa15353444'/>
<id>1def7754b7a41fe57efafaf5eff24cfa15353444</id>
<content type='text'>
* Rename PyConfig.use_peg to _use_peg_parser
* Document PyConfig._use_peg_parser and mark it a deprecated
* Mark -X oldparser option and PYTHONOLDPARSER env var as deprecated
  in the documentation.
* Add use_old_parser() and skip_if_new_parser() to test.support
* Remove sys.flags.use_peg: use_old_parser() uses
  _testinternalcapi.get_configs() instead.
* Enhance test_embed tests
* subprocess._args_from_interpreter_flags() copies -X oldparser</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Rename PyConfig.use_peg to _use_peg_parser
* Document PyConfig._use_peg_parser and mark it a deprecated
* Mark -X oldparser option and PYTHONOLDPARSER env var as deprecated
  in the documentation.
* Add use_old_parser() and skip_if_new_parser() to test.support
* Remove sys.flags.use_peg: use_old_parser() uses
  _testinternalcapi.get_configs() instead.
* Enhance test_embed tests
* subprocess._args_from_interpreter_flags() copies -X oldparser</pre>
</div>
</content>
</entry>
</feed>
