<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Doc/data, branch main</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>gh-103509: PEP 697 -- Limited C API for Extending Opaque Types (GH-103511)</title>
<updated>2023-05-04T07:56:53+00:00</updated>
<author>
<name>Petr Viktorin</name>
<email>encukou@gmail.com</email>
</author>
<published>2023-05-04T07:56:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=cd9a56c2b0e14f56f2e83dd4db43c5c69a74b232'/>
<id>cd9a56c2b0e14f56f2e83dd4db43c5c69a74b232</id>
<content type='text'>

Co-authored-by: Oleg Iarygin &lt;oleg@arhadthedev.net&gt;
Co-authored-by: Erlend E. Aasland &lt;erlend.aasland@protonmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>

Co-authored-by: Oleg Iarygin &lt;oleg@arhadthedev.net&gt;
Co-authored-by: Erlend E. Aasland &lt;erlend.aasland@protonmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>gh-102755: Add PyErr_DisplayException(exc) (#102756)</title>
<updated>2023-03-16T22:18:04+00:00</updated>
<author>
<name>Irit Katriel</name>
<email>1055913+iritkatriel@users.noreply.github.com</email>
</author>
<published>2023-03-16T22:18:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=3f9285a8c52bf776c364f0cf4aecdd8f514ac4e1'/>
<id>3f9285a8c52bf776c364f0cf4aecdd8f514ac4e1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>gh-101578: Amend exception docs (#102057)</title>
<updated>2023-02-21T08:15:49+00:00</updated>
<author>
<name>Erlend E. Aasland</name>
<email>erlend.aasland@protonmail.com</email>
</author>
<published>2023-02-21T08:15:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=02d9f1504beebd98dea807f4b8761d3675a500d0'/>
<id>02d9f1504beebd98dea807f4b8761d3675a500d0</id>
<content type='text'>
Co-authored-by: C.A.M. Gerlach &lt;CAM.Gerlach@Gerlach.CAM&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: C.A.M. Gerlach &lt;CAM.Gerlach@Gerlach.CAM&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>gh-101578: Amend PyErr_{Set,Get}RaisedException docs (#101962)</title>
<updated>2023-02-19T20:22:29+00:00</updated>
<author>
<name>Erlend E. Aasland</name>
<email>erlend.aasland@protonmail.com</email>
</author>
<published>2023-02-19T20:22:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=60bbed7f174e481d3fc69984430a4667951678b3'/>
<id>60bbed7f174e481d3fc69984430a4667951678b3</id>
<content type='text'>
Co-authored-by: C.A.M. Gerlach &lt;CAM.Gerlach@Gerlach.CAM&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: C.A.M. Gerlach &lt;CAM.Gerlach@Gerlach.CAM&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>GH-101578: Normalize the current exception (GH-101607)</title>
<updated>2023-02-08T09:31:12+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2023-02-08T09:31:12+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=feec49c40736fc05626a183a8d14c4ebbea5ae28'/>
<id>feec49c40736fc05626a183a8d14c4ebbea5ae28</id>
<content type='text'>
* Make sure that the current exception is always normalized.

* Remove redundant type and traceback fields for the current exception.

* Add new API functions: PyErr_GetRaisedException, PyErr_SetRaisedException

* Add new API functions: PyException_GetArgs, PyException_SetArgs
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Make sure that the current exception is always normalized.

* Remove redundant type and traceback fields for the current exception.

* Add new API functions: PyErr_GetRaisedException, PyErr_SetRaisedException

* Add new API functions: PyException_GetArgs, PyException_SetArgs
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-43327: Fix the docs for PyImport_ImportFrozenModuleObject() (#24659)</title>
<updated>2022-11-27T06:27:41+00:00</updated>
<author>
<name>Zackery Spytz</name>
<email>zspytz@gmail.com</email>
</author>
<published>2022-11-27T06:27:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=62a5dc13e941d01beb215db4218a10977914ab55'/>
<id>62a5dc13e941d01beb215db4218a10977914ab55</id>
<content type='text'>
The docs stated that PyImport_ImportFrozenModuleObject() returns a
new reference, but it actually returns an int.

Co-authored-by: Kumar Aditya &lt;59607654+kumaraditya303@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The docs stated that PyImport_ImportFrozenModuleObject() returns a
new reference, but it actually returns an int.

Co-authored-by: Kumar Aditya &lt;59607654+kumaraditya303@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>gh-47146: Soft-deprecate structmember.h, expose its contents via Python.h (GH-99014)</title>
<updated>2022-11-22T07:25:43+00:00</updated>
<author>
<name>Petr Viktorin</name>
<email>encukou@gmail.com</email>
</author>
<published>2022-11-22T07:25:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=4d82f628c44490d6fbc3f6998d2473d1304d891f'/>
<id>4d82f628c44490d6fbc3f6998d2473d1304d891f</id>
<content type='text'>
The ``structmember.h`` header is deprecated, though it continues to be available
and there are no plans to remove it. There are no deprecation warnings. Old code
can stay unchanged (unless the extra include and non-namespaced macros bother
you greatly). Specifically, no uses in CPython are updated -- that would just be
unnecessary churn.
The ``structmember.h`` header is deprecated, though it continues to be
available and there are no plans to remove it.

Its contents are now available just by including ``Python.h``,
with a ``Py`` prefix added if it was missing:

- `PyMemberDef`, `PyMember_GetOne` and`PyMember_SetOne`
- Type macros like `Py_T_INT`, `Py_T_DOUBLE`, etc.
  (previously ``T_INT``, ``T_DOUBLE``, etc.)
- The flags `Py_READONLY` (previously ``READONLY``) and
  `Py_AUDIT_READ` (previously all uppercase)

Several items are not exposed from ``Python.h``:

- `T_OBJECT` (use `Py_T_OBJECT_EX`)
- `T_NONE` (previously undocumented, and pretty quirky)
- The macro ``WRITE_RESTRICTED`` which does nothing.
- The macros ``RESTRICTED`` and ``READ_RESTRICTED``, equivalents of
  `Py_AUDIT_READ`.
- In some configurations, ``&lt;stddef.h&gt;`` is not included from ``Python.h``.
  It should be included manually when using ``offsetof()``.

The deprecated header continues to provide its original
contents under the original names.
Your old code can stay unchanged, unless the extra include and non-namespaced
macros bother you greatly.

There is discussion on the issue to rename `T_PYSSIZET` to `PY_T_SSIZE` or
similar. I chose not to do that -- users will probably copy/paste that with any
spelling, and not renaming it makes migration docs simpler.


Co-Authored-By: Alexander Belopolsky &lt;abalkin@users.noreply.github.com&gt;
Co-Authored-By: Matthias Braun &lt;MatzeB@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The ``structmember.h`` header is deprecated, though it continues to be available
and there are no plans to remove it. There are no deprecation warnings. Old code
can stay unchanged (unless the extra include and non-namespaced macros bother
you greatly). Specifically, no uses in CPython are updated -- that would just be
unnecessary churn.
The ``structmember.h`` header is deprecated, though it continues to be
available and there are no plans to remove it.

Its contents are now available just by including ``Python.h``,
with a ``Py`` prefix added if it was missing:

- `PyMemberDef`, `PyMember_GetOne` and`PyMember_SetOne`
- Type macros like `Py_T_INT`, `Py_T_DOUBLE`, etc.
  (previously ``T_INT``, ``T_DOUBLE``, etc.)
- The flags `Py_READONLY` (previously ``READONLY``) and
  `Py_AUDIT_READ` (previously all uppercase)

Several items are not exposed from ``Python.h``:

- `T_OBJECT` (use `Py_T_OBJECT_EX`)
- `T_NONE` (previously undocumented, and pretty quirky)
- The macro ``WRITE_RESTRICTED`` which does nothing.
- The macros ``RESTRICTED`` and ``READ_RESTRICTED``, equivalents of
  `Py_AUDIT_READ`.
- In some configurations, ``&lt;stddef.h&gt;`` is not included from ``Python.h``.
  It should be included manually when using ``offsetof()``.

The deprecated header continues to provide its original
contents under the original names.
Your old code can stay unchanged, unless the extra include and non-namespaced
macros bother you greatly.

There is discussion on the issue to rename `T_PYSSIZET` to `PY_T_SSIZE` or
similar. I chose not to do that -- users will probably copy/paste that with any
spelling, and not renaming it makes migration docs simpler.


Co-Authored-By: Alexander Belopolsky &lt;abalkin@users.noreply.github.com&gt;
Co-Authored-By: Matthias Braun &lt;MatzeB@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gh-98410: move getbufferproc and releasebufferproc to buffer.h (#31158)</title>
<updated>2022-10-31T14:01:32+00:00</updated>
<author>
<name>David Hewitt</name>
<email>1939362+davidhewitt@users.noreply.github.com</email>
</author>
<published>2022-10-31T14:01:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=e98923c0be644c474ce0e318d40e0595e4484106'/>
<id>e98923c0be644c474ce0e318d40e0595e4484106</id>
<content type='text'>
This adds them to the Limited API.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds them to the Limited API.</pre>
</div>
</content>
</entry>
<entry>
<title>gh-98586: Add vector call APIs to the Limited API (GH-98587)</title>
<updated>2022-10-27T09:45:42+00:00</updated>
<author>
<name>Wenzel Jakob</name>
<email>wenzel.jakob@epfl.ch</email>
</author>
<published>2022-10-27T09:45:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=e60892f9db1316dbabf7a652d7648e4f968b745d'/>
<id>e60892f9db1316dbabf7a652d7648e4f968b745d</id>
<content type='text'>
Expose the facilities for making vector calls through Python's limited API.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Expose the facilities for making vector calls through Python's limited API.</pre>
</div>
</content>
</entry>
<entry>
<title>GH-93503: Add thread-specific APIs to set profiling and tracing functions in the C-API (#93504)</title>
<updated>2022-08-24T22:21:39+00:00</updated>
<author>
<name>Pablo Galindo Salgado</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2022-08-24T22:21:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=e34c82abeb7ace09e6b5d116585c47cc372996c1'/>
<id>e34c82abeb7ace09e6b5d116585c47cc372996c1</id>
<content type='text'>
* gh-93503: Add APIs to set profiling and tracing functions in all threads in the C-API

* Use a separate API

* Fix NEWS entry

* Add locks around the loop

* Document ignoring exceptions

* Use the new APIs in the sys module

* Update docs</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* gh-93503: Add APIs to set profiling and tracing functions in all threads in the C-API

* Use a separate API

* Fix NEWS entry

* Add locks around the loop

* Document ignoring exceptions

* Use the new APIs in the sys module

* Update docs</pre>
</div>
</content>
</entry>
</feed>
