Debian Codegraph @

subprojects/pythoncapi-compat/docs/changelog.rst

raw
1 Changelog
2 =========
3
4 * 2025-11-18: Add PEP 782 functions:
5
6 * ``PyBytesWriter_Create()``
7 * ``PyBytesWriter_Discard()``
8 * ``PyBytesWriter_Finish()``
9 * ``PyBytesWriter_FinishWithPointer()``
10 * ``PyBytesWriter_FinishWithSize()``
11 * ``PyBytesWriter_Format()``
12 * ``PyBytesWriter_GetData()``
13 * ``PyBytesWriter_GetSize()``
14 * ``PyBytesWriter_Grow()``
15 * ``PyBytesWriter_GrowAndUpdatePointer()``
16 * ``PyBytesWriter_Resize()``
17 * ``PyBytesWriter_WriteBytes()``
18
19 * 2025-09-01: Add ``PyUnstable_Object_IsUniquelyReferenced()`` function.
20 * 2025-06-09: Add ``PyUnicodeWriter_WriteASCII()`` function.
21 * 2025-06-03: Add functions:
22
23 * ``PySys_GetAttr()``
24 * ``PySys_GetAttrString()``
25 * ``PySys_GetOptionalAttr()``
26 * ``PySys_GetOptionalAttrString()``
27
28 * 2025-01-19: Add ``PyConfig_Get()`` functions.
29 * 2025-01-06: Add ``Py_fopen()`` and ``Py_fclose()`` functions.
30 * 2024-12-16: Add ``structmember.h`` constants:
31
32 * ``Py_T_BOOL``
33 * ``Py_T_BYTE``
34 * ``Py_T_CHAR``
35 * ``Py_T_DOUBLE``
36 * ``Py_T_FLOAT``
37 * ``Py_T_INT``
38 * ``Py_T_LONGLONG``
39 * ``Py_T_LONG``
40 * ``Py_T_OBJECT_EX``
41 * ``Py_T_PYSSIZET``
42 * ``Py_T_SHORT``
43 * ``Py_T_STRING_INPLACE``
44 * ``Py_T_STRING``
45 * ``Py_T_UBYTE``
46 * ``Py_T_UINT``
47 * ``Py_T_ULONGLONG``
48 * ``Py_T_ULONG``
49 * ``Py_T_USHORT``
50 * ``_Py_T_NONE``
51 * ``_Py_T_OBJECT``
52 * ``Py_AUDIT_READ``
53 * ``Py_READONLY``
54 * ``_Py_WRITE_RESTRICTED``
55
56 * 2024-12-13: Add functions and structs:
57
58 * ``PyLongLayout``
59 * ``PyLong_GetNativeLayout()``
60 * ``PyLongExport``
61 * ``PyLong_Export()``
62 * ``PyLong_FreeExport()``
63 * ``PyLongWriter``
64 * ``PyLongWriter_Create()``
65 * ``PyLongWriter_Finish()``
66 * ``PyLongWriter_Discard()``
67
68 * 2024-11-12: Add functions:
69
70 * ``PyLong_IsPositive()``
71 * ``PyLong_IsNegative()``
72 * ``PyLong_IsZero()``
73
74 * 2024-10-09: Add functions:
75
76 * ``PyBytes_Join()``
77 * ``PyIter_NextItem()``
78 * ``PyLong_AsInt32()``
79 * ``PyLong_AsInt64()``
80 * ``PyLong_AsUInt32()``
81 * ``PyLong_AsUInt64()``
82 * ``PyLong_FromInt32()``
83 * ``PyLong_FromInt64()``
84 * ``PyLong_FromUInt32()``
85 * ``PyLong_FromUInt64()``
86 * ``PyUnicode_Equal()``
87 * ``Py_HashBuffer()``
88
89 * 2024-07-18: Add functions:
90
91 * ``PyUnicodeWriter_Create()``
92 * ``PyUnicodeWriter_Discard()``
93 * ``PyUnicodeWriter_Finish()``
94 * ``PyUnicodeWriter_WriteChar()``
95 * ``PyUnicodeWriter_WriteUTF8()``
96 * ``PyUnicodeWriter_WriteStr()``
97 * ``PyUnicodeWriter_WriteRepr()``
98 * ``PyUnicodeWriter_WriteSubstring()``
99 * ``PyUnicodeWriter_WriteWideChar()``
100 * ``PyUnicodeWriter_Format()``
101
102 * 2024-06-03: Add ``PyLong_GetSign()``.
103 * 2024-04-23: Drop Python 3.5 support. It cannot be tested anymore (pip fails).
104 * 2024-04-02: Add ``PyDict_SetDefaultRef()`` function.
105 * 2024-03-29: Add ``PyList_GetItemRef()`` function.
106 * 2024-03-21: Add functions:
107
108 * ``Py_GetConstant()``
109 * ``Py_GetConstantBorrowed()``
110
111 * 2024-03-09: Add hash constants:
112
113 * ``PyHASH_BITS``
114 * ``PyHASH_IMAG``
115 * ``PyHASH_INF``
116 * ``PyHASH_MODULUS``
117
118 * 2024-02-20: Add PyTime API:
119
120 * ``PyTime_t`` type
121 * ``PyTime_MIN`` and ``PyTime_MAX`` constants
122 * ``PyTime_AsSecondsDouble()``
123 * ``PyTime_Monotonic()``
124 * ``PyTime_PerfCounter()``
125 * ``PyTime_Time()``
126
127 * 2023-12-15: Add function ``Py_HashPointer()``.
128 * 2023-11-14: Add functions:
129
130 * ``PyDict_Pop()``
131 * ``PyDict_PopString()``
132
133 * 2023-11-13: Add functions:
134
135 * ``PyList_Extend()``
136 * ``PyList_Clear()``
137
138 * 2023-10-04: Add functions:
139
140 * ``PyUnicode_EqualToUTF8()``
141 * ``PyUnicode_EqualToUTF8AndSize()``
142
143 * 2023-10-03: Add functions:
144
145 * ``PyObject_VisitManagedDict()``
146 * ``PyObject_ClearManagedDict()``
147 * ``PyThreadState_GetUnchecked()``
148
149 * 2023-09-29: Add functions:
150
151 * ``PyMapping_HasKeyWithError()``
152 * ``PyMapping_HasKeyStringWithError()``
153 * ``PyObject_HasAttrWithError()``
154 * ``PyObject_HasAttrStringWithError()``
155
156 * 2023-08-25: Add ``PyDict_ContainsString()`` and ``PyLong_AsInt()`` functions.
157 * 2023-08-21: Remove support for Python 2.7, Python 3.4 and older.
158 * 2023-08-16: Add ``Py_IsFinalizing()`` function.
159 * 2023-07-21: Add ``PyDict_GetItemRef()`` function.
160 * 2023-07-18: Add ``PyModule_Add()`` function.
161 * 2023-07-12: Add functions:
162
163 * ``PyObject_GetOptionalAttr()``
164 * ``PyObject_GetOptionalAttrString()``
165 * ``PyMapping_GetOptionalItem()``
166 * ``PyMapping_GetOptionalItemString()``
167
168 * 2023-07-05: Add ``PyObject_Vectorcall()`` function.
169 * 2023-06-21: Add ``PyWeakref_GetRef()`` function.
170 * 2023-06-20: Add ``PyImport_AddModuleRef()`` function.
171 * 2022-11-15: Add experimental operations to the ``upgrade_pythoncapi.py``
172 script: ``Py_NewRef``, ``Py_CLEAR`` and ``Py_SETREF``.
173 * 2022-11-09: Fix ``Py_SETREF()`` and ``Py_XSETREF()`` macros
174 for `gh-98724 <https://github.com/python/cpython/issues/98724>`_.
175 * 2022-11-04: Add ``PyFrame_GetVar()`` and ``PyFrame_GetVarString()``
176 functions.
177 * 2022-08-04: Add ``PyCode_GetVarnames()``, ``PyCode_GetFreevars()``
178 and ``PyCode_GetCellvars()`` functions.
179 * 2022-06-14: Fix compatibility with C++ older than C++11.
180 * 2022-05-03: Add ``PyCode_GetCode()`` function.
181 * 2022-04-26: Rename the project from ``pythoncapi_compat`` to
182 ``pythoncapi-compat``: replace the underscore separator with a dash.
183 * 2022-04-08: Add functions ``PyFrame_GetLocals()``, ``PyFrame_GetGlobals()``
184 ``PyFrame_GetBuiltins()``, and ``PyFrame_GetLasti()``.
185 * 2022-03-12: Add functions ``PyFloat_Pack2()``, ``PyFloat_Pack4()``,
186 ``PyFloat_Pack8()``, ``PyFloat_Unpack2()``, ``PyFloat_Unpack4()`` and
187 ``PyFloat_Unpack8()``.
188 * 2022-03-03: The project moved to https://github.com/python/pythoncapi-compat
189 * 2022-02-11: The project license changes from the MIT license to the Zero
190 Clause BSD (0BSD) license. Projects copying ``pythoncapi_compat.h`` no longer
191 have to include the MIT license and the copyright notice.
192 * 2022-02-08: Add documentation.
193 * 2022-02-09: ``pythoncapi_compat.h`` now supports C++ on Python 3.6 and newer:
194 use ``nullptr`` and ``reinterpret_cast<type>`` cast on C++, and use ``NULL``
195 and ``(type)`` cast on C.
196 * 2021-10-15: Add ``PyThreadState_EnterTracing()`` and
197 ``PyThreadState_LeaveTracing()``.
198 * 2021-04-09: Add ``Py_Is()``, ``Py_IsNone()``, ``Py_IsTrue()``,
199 ``Py_IsFalse()`` functions.
200 * 2021-04-01:
201
202 * Add ``Py_SETREF()``, ``Py_XSETREF()`` and ``Py_UNUSED()``.
203 * Add PyPy support.
204
205 * 2021-01-27: Fix compatibility with Visual Studio 2008 for Python 2.7.
206 * 2020-11-30: Creation of the ``upgrade_pythoncapi.py`` script.
207 * 2020-06-04: Creation of the ``pythoncapi_compat.h`` header file.
208