<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Tools/scripts, branch benjamin-interp-initialize</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>pypi.python.org -&gt; pypi.org (GH-7613)</title>
<updated>2018-06-11T04:45:50+00:00</updated>
<author>
<name>Ned Deily</name>
<email>nad@python.org</email>
</author>
<published>2018-06-11T04:45:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=9d6d06e8065d45f375f4a80e2d7e13b032da1f5b'/>
<id>9d6d06e8065d45f375f4a80e2d7e13b032da1f5b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-33738: Fix macros which contradict PEP 384 (GH-7477)</title>
<updated>2018-06-09T18:32:25+00:00</updated>
<author>
<name>Christian Tismer</name>
<email>tismer@stackless.com</email>
</author>
<published>2018-06-09T18:32:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=ea62ce7f4fefc66bc0adba16bcd7666d5bbd5b44'/>
<id>ea62ce7f4fefc66bc0adba16bcd7666d5bbd5b44</id>
<content type='text'>
During development of the limited API support for PySide,
we saw an error in a macro that accessed a type field.

This patch fixes the 7 errors in the Python headers.
Macros which were not written as capitals were implemented
as function.

To do the necessary analysis again, a script was included that
parses all headers and looks for "-&gt;tp_" in serctions which can
be reached with active limited API.

It is easily possible to call this script as a test.

Error listing:

../../Include/objimpl.h:243
#define PyObject_IS_GC(o) (PyType_IS_GC(Py_TYPE(o)) &amp;&amp; \
    (Py_TYPE(o)-&gt;tp_is_gc == NULL || Py_TYPE(o)-&gt;tp_is_gc(o)))
Action: commented only

../../Include/objimpl.h:362
#define PyType_SUPPORTS_WEAKREFS(t) ((t)-&gt;tp_weaklistoffset &gt; 0)
Action: commented only

../../Include/objimpl.h:364
#define PyObject_GET_WEAKREFS_LISTPTR(o) \
    ((PyObject **) (((char *) (o)) + Py_TYPE(o)-&gt;tp_weaklistoffset))
Action: commented only

../../Include/pyerrors.h:143
#define PyExceptionClass_Name(x) \
     ((char *)(((PyTypeObject*)(x))-&gt;tp_name))
Action: implemented function

../../Include/abstract.h:593
#define PyIter_Check(obj) \
    ((obj)-&gt;ob_type-&gt;tp_iternext != NULL &amp;&amp; \
     (obj)-&gt;ob_type-&gt;tp_iternext != &amp;_PyObject_NextNotImplemented)
Action: implemented function

../../Include/abstract.h:713
#define PyIndex_Check(obj)                              \
    ((obj)-&gt;ob_type-&gt;tp_as_number != NULL &amp;&amp;            \
     (obj)-&gt;ob_type-&gt;tp_as_number-&gt;nb_index != NULL)
Action: implemented function

../../Include/abstract.h:924
#define PySequence_ITEM(o, i)\
    ( Py_TYPE(o)-&gt;tp_as_sequence-&gt;sq_item(o, i) )
Action: commented only
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
During development of the limited API support for PySide,
we saw an error in a macro that accessed a type field.

This patch fixes the 7 errors in the Python headers.
Macros which were not written as capitals were implemented
as function.

To do the necessary analysis again, a script was included that
parses all headers and looks for "-&gt;tp_" in serctions which can
be reached with active limited API.

It is easily possible to call this script as a test.

Error listing:

../../Include/objimpl.h:243
#define PyObject_IS_GC(o) (PyType_IS_GC(Py_TYPE(o)) &amp;&amp; \
    (Py_TYPE(o)-&gt;tp_is_gc == NULL || Py_TYPE(o)-&gt;tp_is_gc(o)))
Action: commented only

../../Include/objimpl.h:362
#define PyType_SUPPORTS_WEAKREFS(t) ((t)-&gt;tp_weaklistoffset &gt; 0)
Action: commented only

../../Include/objimpl.h:364
#define PyObject_GET_WEAKREFS_LISTPTR(o) \
    ((PyObject **) (((char *) (o)) + Py_TYPE(o)-&gt;tp_weaklistoffset))
Action: commented only

../../Include/pyerrors.h:143
#define PyExceptionClass_Name(x) \
     ((char *)(((PyTypeObject*)(x))-&gt;tp_name))
Action: implemented function

../../Include/abstract.h:593
#define PyIter_Check(obj) \
    ((obj)-&gt;ob_type-&gt;tp_iternext != NULL &amp;&amp; \
     (obj)-&gt;ob_type-&gt;tp_iternext != &amp;_PyObject_NextNotImplemented)
Action: implemented function

../../Include/abstract.h:713
#define PyIndex_Check(obj)                              \
    ((obj)-&gt;ob_type-&gt;tp_as_number != NULL &amp;&amp;            \
     (obj)-&gt;ob_type-&gt;tp_as_number-&gt;nb_index != NULL)
Action: implemented function

../../Include/abstract.h:924
#define PySequence_ITEM(o, i)\
    ( Py_TYPE(o)-&gt;tp_as_sequence-&gt;sq_item(o, i) )
Action: commented only
</pre>
</div>
</content>
</entry>
<entry>
<title>remove hg support from patchcheck (GH-7440)</title>
<updated>2018-06-06T05:40:12+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2018-06-06T05:40:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=b8c0845fee9277b1106ceecbf7592f8806c73ec8'/>
<id>b8c0845fee9277b1106ceecbf7592f8806c73ec8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-25427: Remove pyvenv (GH-5962)</title>
<updated>2018-04-20T21:15:40+00:00</updated>
<author>
<name>Brett Cannon</name>
<email>brettcannon@users.noreply.github.com</email>
</author>
<published>2018-04-20T21:15:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a8c342465b977115b88a4f130833a2fd4c4e7356'/>
<id>a8c342465b977115b88a4f130833a2fd4c4e7356</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32885: Tools/scripts/pathfix.py: Add -n option for no backup~ (#5772)</title>
<updated>2018-03-13T09:56:43+00:00</updated>
<author>
<name>Miro Hrončok</name>
<email>miro@hroncok.cz</email>
</author>
<published>2018-03-13T09:56:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=5affd5c29eb1493cb31ef3cfdde15538ac134689'/>
<id>5affd5c29eb1493cb31ef3cfdde15538ac134689</id>
<content type='text'>
Creating backup files with ~ suffix can be undesirable in some environment,
such as when building RPM packages. Instead of requiring the user to remove
those files manually, option -n was added, that simply disables this feature.

-n was selected because 2to3 has the same option with this behavior.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Creating backup files with ~ suffix can be undesirable in some environment,
such as when building RPM packages. Instead of requiring the user to remove
those files manually, option -n was added, that simply disables this feature.

-n was selected because 2to3 has the same option with this behavior.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31355: Travis-CI: re-enable macOS job (#5858)</title>
<updated>2018-02-27T20:40:37+00:00</updated>
<author>
<name>Antoine Pitrou</name>
<email>pitrou@free.fr</email>
</author>
<published>2018-02-27T20:40:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d7687eb4b66c9f675b112eff1169326a1766c111'/>
<id>d7687eb4b66c9f675b112eff1169326a1766c111</id>
<content type='text'>
The long build queues that plagued macOS builds on Travis seem to be
a thing of the past now.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The long build queues that plagued macOS builds on Travis seem to be
a thing of the past now.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-20361: Remove workaround for a now fixed bug (#5283)</title>
<updated>2018-01-23T12:30:53+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2018-01-23T12:30:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=dc6b9462c00873c8404a7966b7ca210717718af5'/>
<id>dc6b9462c00873c8404a7966b7ca210717718af5</id>
<content type='text'>
"python3 -bb -Wd" now works as expected:
"python3 -bb -Wd -Werror::BytesWarning" is no more needed.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"python3 -bb -Wd" now works as expected:
"python3 -bb -Wd -Werror::BytesWarning" is no more needed.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32159: Remove tools for CVS and Subversion (#4615)</title>
<updated>2017-11-28T21:29:32+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-11-28T21:29:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=fe2d5babba5d26de2093b6518316b268488187be'/>
<id>fe2d5babba5d26de2093b6518316b268488187be</id>
<content type='text'>
CPython migrated from CVS to Subversion, to Mercurial, and then to
Git. CVS and Subversion are not more used to develop CPython.

* platform module: drop support for sys.subversion. The
  sys.subversion attribute has been removed in Python 3.3.
* Remove Misc/svnmap.txt
* Remove Tools/scripts/svneol.py
* Remove Tools/scripts/treesync.py</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CPython migrated from CVS to Subversion, to Mercurial, and then to
Git. CVS and Subversion are not more used to develop CPython.

* platform module: drop support for sys.subversion. The
  sys.subversion attribute has been removed in Python 3.3.
* Remove Misc/svnmap.txt
* Remove Tools/scripts/svneol.py
* Remove Tools/scripts/treesync.py</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32155: Bugfixes found by flake8 F841 warnings (#4608)</title>
<updated>2017-11-28T14:30:32+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-11-28T14:30:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=696b501cd11dc429a0f661adeb598bfaf89e4112'/>
<id>696b501cd11dc429a0f661adeb598bfaf89e4112</id>
<content type='text'>
* distutils.config: Use the PyPIRCCommand.realm attribute if set
* turtledemo: wait until macOS osascript command completes to not
  create a zombie process
* Tools/scripts/treesync.py: declare 'default_answer' and
  'create_files' as globals to modify them with the command line
  arguments. Previously, -y, -n, -f and -a options had no effect.

flake8 warning: "F841 local variable 'p' is assigned to but never
used".</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* distutils.config: Use the PyPIRCCommand.realm attribute if set
* turtledemo: wait until macOS osascript command completes to not
  create a zombie process
* Tools/scripts/treesync.py: declare 'default_answer' and
  'create_files' as globals to modify them with the command line
  arguments. Previously, -y, -n, -f and -a options had no effect.

flake8 warning: "F841 local variable 'p' is assigned to but never
used".</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31810: Add smelly.py to check exported symbols (#4057)</title>
<updated>2017-10-24T08:29:53+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-10-24T08:29:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=87d332dcdbffe8ff60d99f74b1ad241c0967b055'/>
<id>87d332dcdbffe8ff60d99f74b1ad241c0967b055</id>
<content type='text'>
* Add Tools/scripts/smelly.py: script checking if all symbols
  exported by libpython start with "Py" or "_Py".
* Modify "make smelly" to run smelly.py: the command now fails with a
  non-zero exit code if libpython leaks a "smelly" symbol.
* Travis CI now runs "make smelly"</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add Tools/scripts/smelly.py: script checking if all symbols
  exported by libpython start with "Py" or "_Py".
* Modify "make smelly" to run smelly.py: the command now fails with a
  non-zero exit code if libpython leaks a "smelly" symbol.
* Travis CI now runs "make smelly"</pre>
</div>
</content>
</entry>
</feed>
