<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Objects/stringlib, 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-99537: Use Py_SETREF() function in C code (#99657)</title>
<updated>2022-11-22T12:39:11+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2022-11-22T12:39:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=135ec7cefbaffd516b77362ad2b2ad1025af462e'/>
<id>135ec7cefbaffd516b77362ad2b2ad1025af462e</id>
<content type='text'>
Fix potential race condition in code patterns:

* Replace "Py_DECREF(var); var = new;" with "Py_SETREF(var, new);"
* Replace "Py_XDECREF(var); var = new;" with "Py_XSETREF(var, new);"
* Replace "Py_CLEAR(var); var = new;" with "Py_XSETREF(var, new);"

Other changes:

* Replace "old = var; var = new; Py_DECREF(var)"
  with "Py_SETREF(var, new);"
* Replace "old = var; var = new; Py_XDECREF(var)"
  with "Py_XSETREF(var, new);"
* And remove the "old" variable.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix potential race condition in code patterns:

* Replace "Py_DECREF(var); var = new;" with "Py_SETREF(var, new);"
* Replace "Py_XDECREF(var); var = new;" with "Py_XSETREF(var, new);"
* Replace "Py_CLEAR(var); var = new;" with "Py_XSETREF(var, new);"

Other changes:

* Replace "old = var; var = new; Py_DECREF(var)"
  with "Py_SETREF(var, new);"
* Replace "old = var; var = new; Py_XDECREF(var)"
  with "Py_XSETREF(var, new);"
* And remove the "old" variable.</pre>
</div>
</content>
</entry>
<entry>
<title>gh-99300: Use Py_NewRef() in Objects/ directory (#99354)</title>
<updated>2022-11-10T22:58:07+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2022-11-10T22:58:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=3a1dde8f29215418ec4e27fd6234cfa19a5407c6'/>
<id>3a1dde8f29215418ec4e27fd6234cfa19a5407c6</id>
<content type='text'>
Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and
Py_XNewRef() in C files of the Objects/ 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 C files of the Objects/ directory.</pre>
</div>
</content>
</entry>
<entry>
<title>gh-97982: Remove asciilib_count() (#98164)</title>
<updated>2022-10-11T15:59:58+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2022-10-11T15:59:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=df3a6d9beb8a7a3fe87a6d4126384fd3e0213853'/>
<id>df3a6d9beb8a7a3fe87a6d4126384fd3e0213853</id>
<content type='text'>
asciilib_count() is the same than ucs1lib_count(): the code is not
specialized for ASCII strings, so it's not worth it to have a
separated function. Remove asciilib_count() function.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
asciilib_count() is the same than ucs1lib_count(): the code is not
specialized for ASCII strings, so it's not worth it to have a
separated function. Remove asciilib_count() function.</pre>
</div>
</content>
</entry>
<entry>
<title>gh-94808: improve comments and coverage of fastsearch.h (GH-96760)</title>
<updated>2022-09-13T18:25:10+00:00</updated>
<author>
<name>Dennis Sweeney</name>
<email>36520290+sweeneyde@users.noreply.github.com</email>
</author>
<published>2022-09-13T18:25:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=69d9a080993902b289c1b2c089cc0882b908df4c'/>
<id>69d9a080993902b289c1b2c089cc0882b908df4c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>gh-90928: Improve static initialization of keywords tuple in AC (#95907)</title>
<updated>2022-08-13T10:09:40+00:00</updated>
<author>
<name>Erlend E. Aasland</name>
<email>erlend.aasland@protonmail.com</email>
</author>
<published>2022-08-13T10:09:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=f07adf82f338ebb7e69475537be050e63c2009fa'/>
<id>f07adf82f338ebb7e69475537be050e63c2009fa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>gh-90928: Statically Initialize the Keywords Tuple in Clinic-Generated Code (gh-95860)</title>
<updated>2022-08-11T21:25:49+00:00</updated>
<author>
<name>Eric Snow</name>
<email>ericsnowcurrently@gmail.com</email>
</author>
<published>2022-08-11T21:25:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=6f6a4e6cc5cd76af4a53ffbb62b686142646ac9a'/>
<id>6f6a4e6cc5cd76af4a53ffbb62b686142646ac9a</id>
<content type='text'>
We only statically initialize for core code and builtin modules.  Extension modules still create
the tuple at runtime.  We'll solve that part of interpreter isolation separately.

This change includes generated code. The non-generated changes are in:

* Tools/clinic/clinic.py
* Python/getargs.c
* Include/cpython/modsupport.h
* Makefile.pre.in (re-generate global strings after running clinic)
* very minor tweaks to Modules/_codecsmodule.c and Python/Python-tokenize.c

All other changes are generated code (clinic, global strings).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We only statically initialize for core code and builtin modules.  Extension modules still create
the tuple at runtime.  We'll solve that part of interpreter isolation separately.

This change includes generated code. The non-generated changes are in:

* Tools/clinic/clinic.py
* Python/getargs.c
* Include/cpython/modsupport.h
* Makefile.pre.in (re-generate global strings after running clinic)
* very minor tweaks to Modules/_codecsmodule.c and Python/Python-tokenize.c

All other changes are generated code (clinic, global strings).</pre>
</div>
</content>
</entry>
<entry>
<title>gh-84461: Silence some compiler warnings on WASM (GH-93978)</title>
<updated>2022-06-20T11:34:40+00:00</updated>
<author>
<name>Christian Heimes</name>
<email>christian@python.org</email>
</author>
<published>2022-06-20T11:34:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=774ef28814d0d9d57ec813cb31b0a7af6c476127'/>
<id>774ef28814d0d9d57ec813cb31b0a7af6c476127</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>gh-93033: Use wmemchr in stringlib (GH-93034)</title>
<updated>2022-05-24T01:45:31+00:00</updated>
<author>
<name>goldsteinn</name>
<email>35538541+goldsteinn@users.noreply.github.com</email>
</author>
<published>2022-05-24T01:45:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=7108bdf27c7a460cf83c4a01dea54ae4591d8aea'/>
<id>7108bdf27c7a460cf83c4a01dea54ae4591d8aea</id>
<content type='text'>
Generally comparable perf for the "good" case where memchr doesn't
return any collisions (false matches on lower byte) but clearly faster
with collisions.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Generally comparable perf for the "good" case where memchr doesn't
return any collisions (false matches on lower byte) but clearly faster
with collisions.</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://91.123.203.49/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://91.123.203.49/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>
</feed>
