<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Modules/_decimal, branch main</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>GH-101291: Rearrange the size bits in PyLongObject (GH-102464)</title>
<updated>2023-03-22T14:49:51+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2023-03-22T14:49:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=7559f5fda94ab568a1a910b17683ed81dc3426fb'/>
<id>7559f5fda94ab568a1a910b17683ed81dc3426fb</id>
<content type='text'>
* Eliminate all remaining uses of Py_SIZE and Py_SET_SIZE on PyLongObject, adding asserts.

* Change layout of size/sign bits in longobject to support future addition of immortal ints and tagged medium ints.

* Add functions to hide some internals of long object, and for setting sign and digit count.

* Replace uses of IS_MEDIUM_VALUE macro with _PyLong_IsCompact().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Eliminate all remaining uses of Py_SIZE and Py_SET_SIZE on PyLongObject, adding asserts.

* Change layout of size/sign bits in longobject to support future addition of immortal ints and tagged medium ints.

* Add functions to hide some internals of long object, and for setting sign and digit count.

* Replace uses of IS_MEDIUM_VALUE macro with _PyLong_IsCompact().
</pre>
</div>
</content>
</entry>
<entry>
<title>GH-101291: Refactor the `PyLongObject` struct into object header and PyLongValue struct. (GH-101292)</title>
<updated>2023-01-30T10:03:04+00:00</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2023-01-30T10:03:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c1b1f51cd1632f0b77dacd43092fb44ed5e053a9'/>
<id>c1b1f51cd1632f0b77dacd43092fb44ed5e053a9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>gh-77532: Minor tweaks to allow compiling with PlatformToolset=ClangCL on Windows (GH-101352)</title>
<updated>2023-01-27T14:45:08+00:00</updated>
<author>
<name>Steve Dower</name>
<email>steve.dower@python.org</email>
</author>
<published>2023-01-27T14:45:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=737d367b1f4bad76914173a64d6bbe19a984cd5f'/>
<id>737d367b1f4bad76914173a64d6bbe19a984cd5f</id>
<content type='text'>
To use this, ensure that clang support was selected in Visual Studio Installer, then set the PlatformToolset environment variable to "ClangCL" and build as normal from the command line.
It remains unsupported, but at least is possible now for experimentation.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To use this, ensure that clang support was selected in Visual Studio Installer, then set the PlatformToolset environment variable to "ClangCL" and build as normal from the command line.
It remains unsupported, but at least is possible now for experimentation.</pre>
</div>
</content>
</entry>
<entry>
<title>gh-99845: Use size_t type in __sizeof__() methods (#99846)</title>
<updated>2022-11-30T16:22:52+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2022-11-30T16:22:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=85dd6cb6df996b1197266d1a50ecc9187a91e481'/>
<id>85dd6cb6df996b1197266d1a50ecc9187a91e481</id>
<content type='text'>
The implementation of __sizeof__() methods using _PyObject_SIZE() now
use an unsigned type (size_t) to compute the size, rather than a signed
type (Py_ssize_t).

Cast explicitly signed (Py_ssize_t) values to unsigned type
(Py_ssize_t).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The implementation of __sizeof__() methods using _PyObject_SIZE() now
use an unsigned type (size_t) to compute the size, rather than a signed
type (Py_ssize_t).

Cast explicitly signed (Py_ssize_t) values to unsigned type
(Py_ssize_t).</pre>
</div>
</content>
</entry>
<entry>
<title>gh-99300: Use Py_NewRef() in Modules/ directory (#99466)</title>
<updated>2022-11-14T12:08:15+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2022-11-14T12:08:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=3817607b8a345851e4fa436747a346890ced33f1'/>
<id>3817607b8a345851e4fa436747a346890ced33f1</id>
<content type='text'>
Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and
Py_XNewRef() in test C files of the Modules/ directory.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and
Py_XNewRef() in test C files of the Modules/ directory.</pre>
</div>
</content>
</entry>
<entry>
<title>gh-89653: Use int type for Unicode kind (#92704)</title>
<updated>2022-05-13T10:41:05+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2022-05-13T10:41:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f62ad4f2c4214fdc05cc45c27a5c068553c7942c'/>
<id>f62ad4f2c4214fdc05cc45c27a5c068553c7942c</id>
<content type='text'>
Use the same type that PyUnicode_FromKindAndData() kind parameter
type (public C API): int.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the same type that PyUnicode_FromKindAndData() kind parameter
type (public C API): int.</pre>
</div>
</content>
</entry>
<entry>
<title>gh-89653: PEP 670: Convert PyUnicode_KIND() macro to function (#92705)</title>
<updated>2022-05-13T09:49:56+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2022-05-13T09:49:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=db388df1d9aff02f791fe01c7c2b28d73982dce6'/>
<id>db388df1d9aff02f791fe01c7c2b28d73982dce6</id>
<content type='text'>
In the limited C API version 3.12, PyUnicode_KIND() is now
implemented as a static inline function. Keep the macro for the
regular C API and for the limited C API version 3.11 and older to
prevent introducing new compiler warnings.

Update _decimal.c and stringlib/eq.h for PyUnicode_KIND().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the limited C API version 3.12, PyUnicode_KIND() is now
implemented as a static inline function. Keep the macro for the
regular C API and for the limited C API version 3.11 and older to
prevent introducing new compiler warnings.

Update _decimal.c and stringlib/eq.h for PyUnicode_KIND().</pre>
</div>
</content>
</entry>
<entry>
<title>gh-92584: test_decimal uses shutil.which() (#92640)</title>
<updated>2022-05-10T23:42:09+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2022-05-10T23:42:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=dfdebda0524ce4cc945621d69eef77a64f260095'/>
<id>dfdebda0524ce4cc945621d69eef77a64f260095</id>
<content type='text'>
test_decimal now uses shutil.which() rather than deprecated
distutils.spawn.find_executable().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
test_decimal now uses shutil.which() rather than deprecated
distutils.spawn.find_executable().</pre>
</div>
</content>
</entry>
<entry>
<title>gh-91320: Use _PyCFunction_CAST() (#92251)</title>
<updated>2022-05-03T19:42:14+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2022-05-03T19:42:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=804f2529d8e545a8d59eaf260ee032d014e681ba'/>
<id>804f2529d8e545a8d59eaf260ee032d014e681ba</id>
<content type='text'>
Replace "(PyCFunction)(void(*)(void))func" cast with
_PyCFunction_CAST(func).

Change generated by the command:

sed -i -e \
  's!(PyCFunction)(void(\*)(void)) *\([A-Za-z0-9_]\+\)!_PyCFunction_CAST(\1)!g' \
  $(find -name "*.c")</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace "(PyCFunction)(void(*)(void))func" cast with
_PyCFunction_CAST(func).

Change generated by the command:

sed -i -e \
  's!(PyCFunction)(void(\*)(void)) *\([A-Za-z0-9_]\+\)!_PyCFunction_CAST(\1)!g' \
  $(find -name "*.c")</pre>
</div>
</content>
</entry>
<entry>
<title>gh-91291: Accept attributes as keyword arguments in decimal.localcontext (#32242)</title>
<updated>2022-04-22T04:27:15+00:00</updated>
<author>
<name>Sam Ezeh</name>
<email>sam.z.ezeh@gmail.com</email>
</author>
<published>2022-04-22T04:27:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=bcf14ae4336fced718c00edc34b9191c2b48525a'/>
<id>bcf14ae4336fced718c00edc34b9191c2b48525a</id>
<content type='text'>
Co-authored-by: Jelle Zijlstra &lt;jelle.zijlstra@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Jelle Zijlstra &lt;jelle.zijlstra@gmail.com&gt;</pre>
</div>
</content>
</entry>
</feed>
