<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Include/abstract.h, branch fix-namedexpr-comment</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>bpo-38600: Change the mark up of NULL in the C API documentation. (GH-16950)</title>
<updated>2019-10-30T10:03:20+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-10-30T10:03:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=25fc088607c855060ed142296dc1bd0125fad1af'/>
<id>25fc088607c855060ed142296dc1bd0125fad1af</id>
<content type='text'>
Replace all *NULL* with ``NULL``.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace all *NULL* with ``NULL``.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typos in comments, docs and test names (#15018)</title>
<updated>2019-07-30T22:16:13+00:00</updated>
<author>
<name>Min ho Kim</name>
<email>minho42@gmail.com</email>
</author>
<published>2019-07-30T22:16:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c4cacc8c5eab50db8da3140353596f38a01115ca'/>
<id>c4cacc8c5eab50db8da3140353596f38a01115ca</id>
<content type='text'>
* Fix typos in comments, docs and test names

* Update test_pyparse.py

account for change in string length

* Apply suggestion: splitable -&gt; splittable

Co-Authored-By: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;

* Apply suggestion: splitable -&gt; splittable

Co-Authored-By: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;

* Apply suggestion: Dealloccte -&gt; Deallocate

Co-Authored-By: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;

* Update posixmodule checksum.

* Reverse idlelib changes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fix typos in comments, docs and test names

* Update test_pyparse.py

account for change in string length

* Apply suggestion: splitable -&gt; splittable

Co-Authored-By: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;

* Apply suggestion: splitable -&gt; splittable

Co-Authored-By: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;

* Apply suggestion: Dealloccte -&gt; Deallocate

Co-Authored-By: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;

* Update posixmodule checksum.

* Reverse idlelib changes.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37194: Add a new public PyObject_CallNoArgs() function (GH-13890)</title>
<updated>2019-06-17T12:27:23+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-06-17T12:27:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2ff58a24e8a1c7e290d025d69ebaea0bbead3b8c'/>
<id>2ff58a24e8a1c7e290d025d69ebaea0bbead3b8c</id>
<content type='text'>
Add a new public PyObject_CallNoArgs() function to the C API: call a
callable Python object without any arguments.

It is the most efficient way to call a callback without any argument.
On x86-64, for example, PyObject_CallFunctionObjArgs(func, NULL)
allocates 960 bytes on the stack per call, whereas
PyObject_CallNoArgs(func) only allocates 624 bytes per call.

It is excluded from stable ABI 3.8.

Replace private _PyObject_CallNoArg() with public
PyObject_CallNoArgs() in C extensions: _asyncio, _datetime,
_elementtree, _pickle, _tkinter and readline.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a new public PyObject_CallNoArgs() function to the C API: call a
callable Python object without any arguments.

It is the most efficient way to call a callback without any argument.
On x86-64, for example, PyObject_CallFunctionObjArgs(func, NULL)
allocates 960 bytes on the stack per call, whereas
PyObject_CallNoArgs(func) only allocates 624 bytes per call.

It is excluded from stable ABI 3.8.

Replace private _PyObject_CallNoArg() with public
PyObject_CallNoArgs() in C extensions: _asyncio, _datetime,
_elementtree, _pickle, _tkinter and readline.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-33407: Implement Py_DEPRECATED() on MSVC (GH-8980)</title>
<updated>2019-05-28T15:16:33+00:00</updated>
<author>
<name>Zackery Spytz</name>
<email>zspytz@gmail.com</email>
</author>
<published>2019-05-28T15:16:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=3c8724fc60163f4f3c3b0d531c84cc7b36783f82'/>
<id>3c8724fc60163f4f3c3b0d531c84cc7b36783f82</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-35134: Create Include/cpython/abstract.h (GH-10728)</title>
<updated>2018-11-26T21:42:04+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-11-26T21:42:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=4060283fcec7bb2bde4eb3c42b0a6ec99cf1d391'/>
<id>4060283fcec7bb2bde4eb3c42b0a6ec99cf1d391</id>
<content type='text'>
Move abstract.h code surrounded by "#ifndef Py_LIMITED_API"
to a new Include/cpython/abstract.h header file.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move abstract.h code surrounded by "#ifndef Py_LIMITED_API"
to a new Include/cpython/abstract.h header file.</pre>
</div>
</content>
</entry>
<entry>
<title>Clean up after bpo-33738. (GH-7627)</title>
<updated>2018-06-11T12:01:47+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2018-06-11T12:01:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=5cbefa99198729a1d4e93d93f890c066039ee1d2'/>
<id>5cbefa99198729a1d4e93d93f890c066039ee1d2</id>
<content type='text'>
* Add declarations even if they are overridden by macros.
* Make the declaration and the definition of PyExceptionClass_Name
  consistent.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add declarations even if they are overridden by macros.
* Make the declaration and the definition of PyExceptionClass_Name
  consistent.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-33738: Address review comments in GH #7477 (GH-7585)</title>
<updated>2018-06-10T22:48:28+00:00</updated>
<author>
<name>Christian Tismer</name>
<email>tismer@stackless.com</email>
</author>
<published>2018-06-10T22:48:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8398713cea0eb17b013f25f86bef47c7e5e63139'/>
<id>8398713cea0eb17b013f25f86bef47c7e5e63139</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>bpo-5945: Improve mappings and sequences C API docs. (GH-7029)</title>
<updated>2018-05-22T08:02:44+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2018-05-22T08:02:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f5b1183610d5888db3bbd639b1a0c945dbd8f8dd'/>
<id>f5b1183610d5888db3bbd639b1a0c945dbd8f8dd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix PyObject_Hash signature in comment (#4905)</title>
<updated>2017-12-16T19:08:05+00:00</updated>
<author>
<name>Andrew Svetlov</name>
<email>andrew.svetlov@gmail.com</email>
</author>
<published>2017-12-16T19:08:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=950840261c349e100ec5d7381fcd742c017e242d'/>
<id>950840261c349e100ec5d7381fcd742c017e242d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
