File tree 1 file changed +11
-0
lines changed 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1867,6 +1867,17 @@ Porting to Python 3.12
1867
1867
subinterpreter that they don't support (or haven't yet been loaded in). See
1868
1868
:gh: `104668 ` for more info.
1869
1869
1870
+ * :c:struct: `PyLongObject ` has had its internals changed for better performance.
1871
+ Although the internals of :c:struct: `PyLongObject ` are private, they are used
1872
+ by some extension modules.
1873
+ The internal fields should no longer be accessed directly, instead the API
1874
+ functions beginning ``PyLong_... `` should be used instead.
1875
+ Two new *unstable * API functions are provided for efficient access to the
1876
+ value of :c:struct: `PyLongObject `\s which fit into a single machine word:
1877
+
1878
+ * :c:func: `PyUnstable_Long_IsCompact `
1879
+ * :c:func: `PyUnstable_Long_CompactValue `
1880
+
1870
1881
Deprecated
1871
1882
----------
1872
1883
You can’t perform that action at this time.
0 commit comments