<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Tools/scripts, branch refactor-lambda-parameters</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>closes bpo-40385: Remove Tools/scripts/checkpyc.py (GH-19709)</title>
<updated>2020-04-25T04:33:59+00:00</updated>
<author>
<name>Ammar Askar</name>
<email>ammar@ammaraskar.com</email>
</author>
<published>2020-04-25T04:33:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f82807746d26b4c047f7f3115065f20bb63fb5ff'/>
<id>f82807746d26b4c047f7f3115065f20bb63fb5ff</id>
<content type='text'>
This is one of the few files that has intimate knowledge of the pyc file
format. Since it lacks tests it tends to become outdated fairly quickly.
At present it has been broken since the introduction of PEP 552.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is one of the few files that has intimate knowledge of the pyc file
format. Since it lacks tests it tends to become outdated fairly quickly.
At present it has been broken since the introduction of PEP 552.</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://git.baserock.org/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-40267: Fix message when last input character produces a SyntaxError (GH-19521)</title>
<updated>2020-04-15T18:22:10+00:00</updated>
<author>
<name>Lysandros Nikolaou</name>
<email>lisandrosnik@gmail.com</email>
</author>
<published>2020-04-15T18:22:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=9a4b38f66b3e674db94e07980e1cacb39e388c73'/>
<id>9a4b38f66b3e674db94e07980e1cacb39e388c73</id>
<content type='text'>
When there is a SyntaxError after reading the last input character from
the tokenizer and if no newline follows it, the error message used to be
`unexpected EOF while parsing`, which is wrong.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When there is a SyntaxError after reading the last input character from
the tokenizer and if no newline follows it, the error message used to be
`unexpected EOF while parsing`, which is wrong.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40094: Fix which.py script exit code (GH-19286)</title>
<updated>2020-04-02T01:42:47+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-02T01:42:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=e7c98f08e228e9f6e139d61e3e5d0a5018a38f0b'/>
<id>e7c98f08e228e9f6e139d61e3e5d0a5018a38f0b</id>
<content type='text'>
It now uses os.waitstatus_to_exitcode() to convert os.system() exit
status into an exit code.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It now uses os.waitstatus_to_exitcode() to convert os.system() exit
status into an exit code.</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://git.baserock.org/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>bpo-38347: find pathfix for Python scripts whose name contain a '-' (GH-16536)</title>
<updated>2019-10-11T13:36:50+00:00</updated>
<author>
<name>Ruediger Pluem</name>
<email>r.pluem@gmx.de</email>
</author>
<published>2019-10-11T13:36:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2b7dc40b2af6578181808ba73c1533fc114e55df'/>
<id>2b7dc40b2af6578181808ba73c1533fc114e55df</id>
<content type='text'>
 pathfix.py: Assume all files that end on '.py' are Python scripts when working recursively. </content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 pathfix.py: Assume all files that end on '.py' are Python scripts when working recursively. </pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37064: Add option -a to pathfix.py tool (GH-15717)</title>
<updated>2019-09-25T12:26:28+00:00</updated>
<author>
<name>PatrikKopkan</name>
<email>kopkanpatrik@gmail.com</email>
</author>
<published>2019-09-25T12:26:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=1dc1acbd73f05f14c974b7ce1041787d7abef31e'/>
<id>1dc1acbd73f05f14c974b7ce1041787d7abef31e</id>
<content type='text'>
Add option -a to Tools/Scripts/pathfix.py script: add flags.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add option -a to Tools/Scripts/pathfix.py script: add flags.</pre>
</div>
</content>
</entry>
<entry>
<title>Mark files as executable that are meant as scripts. (GH-15354)</title>
<updated>2019-09-09T14:16:33+00:00</updated>
<author>
<name>Greg Price</name>
<email>gnprice@gmail.com</email>
</author>
<published>2019-09-09T14:16:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=fa3a38d81faaf96d17b5a7f0248b9923e3a648cc'/>
<id>fa3a38d81faaf96d17b5a7f0248b9923e3a648cc</id>
<content type='text'>
This is the converse of GH-15353 -- in addition to plenty of
scripts in the tree that are marked with the executable bit
(and so can be directly executed), there are a few that have
a leading `#!` which could let them be executed, but it doesn't
do anything because they don't have the executable bit set.

Here's a command which finds such files and marks them.  The
first line finds files in the tree with a `#!` line *anywhere*;
the next-to-last step checks that the *first* line is actually of
that form.  In between we filter out files that already have the
bit set, and some files that are meant as fragments to be
consumed by one or another kind of preprocessor.

    $ git grep -l '^#!' \
      | grep -vxFf &lt;( \
          git ls-files --stage \
          | perl -lane 'print $F[3] if (!/^100644/)' \
        ) \
      | grep -ve '\.in$' -e '^Doc/includes/' \
      | while read f; do
          head -c2 "$f" | grep -qxF '#!' \
          &amp;&amp; chmod a+x "$f"; \
        done</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is the converse of GH-15353 -- in addition to plenty of
scripts in the tree that are marked with the executable bit
(and so can be directly executed), there are a few that have
a leading `#!` which could let them be executed, but it doesn't
do anything because they don't have the executable bit set.

Here's a command which finds such files and marks them.  The
first line finds files in the tree with a `#!` line *anywhere*;
the next-to-last step checks that the *first* line is actually of
that form.  In between we filter out files that already have the
bit set, and some files that are meant as fragments to be
consumed by one or another kind of preprocessor.

    $ git grep -l '^#!' \
      | grep -vxFf &lt;( \
          git ls-files --stage \
          | perl -lane 'print $F[3] if (!/^100644/)' \
        ) \
      | grep -ve '\.in$' -e '^Doc/includes/' \
      | while read f; do
          head -c2 "$f" | grep -qxF '#!' \
          &amp;&amp; chmod a+x "$f"; \
        done</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37064: Add option -k to Tools/scripts/pathfix.py (GH-15548)</title>
<updated>2019-09-05T14:54:54+00:00</updated>
<author>
<name>PatrikKopkan</name>
<email>kopkanpatrik@gmail.com</email>
</author>
<published>2019-09-05T14:54:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=50254ac4c179cb412e90682098c97db786143929'/>
<id>50254ac4c179cb412e90682098c97db786143929</id>
<content type='text'>
Add flag -k to pathscript.py script: preserve shebang flags.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add flag -k to pathscript.py script: preserve shebang flags.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37704: Remove Tools/scripts/h2py.py (GH-15000)</title>
<updated>2019-07-30T15:45:09+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-07-30T15:45:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=27eeaf0f2c9bd53a0fbdfdf38ee759e971221f8d'/>
<id>27eeaf0f2c9bd53a0fbdfdf38ee759e971221f8d</id>
<content type='text'>
Use cffi to access a C API in Python.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use cffi to access a C API in Python.</pre>
</div>
</content>
</entry>
</feed>
