cpython/Doc/includes
Victor Stinner 7e3f09cad9
gh-99537: Use Py_SETREF() function in C code (#99656)
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.
2022-11-22 14:22:22 +01:00
..
custom.c gh-91118: Fix docstrings that do not honor --without-doc-strings (#31769) 2022-04-17 20:39:32 -07:00
custom2.c gh-99537: Use Py_SETREF() function in C code (#99656) 2022-11-22 14:22:22 +01:00
custom3.c gh-99537: Use Py_SETREF() function in C code (#99656) 2022-11-22 14:22:22 +01:00
custom4.c gh-99537: Use Py_SETREF() function in C code (#99656) 2022-11-22 14:22:22 +01:00
dbpickle.py
diff.py gh-97669: Move difflib examples to Doc/includes/ (#97964) 2022-10-07 10:57:48 -07:00
email-alternative.py
email-dir.py
email-headers.py gh-84623: Remove unused imports (#94132) 2022-06-22 19:14:27 +02:00
email-mime.py gh-91520: Rewrite imghdr inlining for clarity and completeness (#91521) 2022-04-14 17:48:59 -07:00
email-read-alternative.py gh-82530: Create blank function instead of invalid import for email example (#97529) 2022-09-26 00:06:11 -04:00
email-simple.py
email-unpack.py
minidom-example.py
mp_newtype.py
mp_pool.py
mp_workers.py
ndiff.py gh-97669: Move difflib examples to Doc/includes/ (#97964) 2022-10-07 10:57:48 -07:00
run-func.c
setup.py
sublist.c gh-91118: Fix docstrings that do not honor --without-doc-strings (#31769) 2022-04-17 20:39:32 -07:00
test.py
turtle-star.py
typestruct.h
tzinfo_examples.py gh-96959: Update HTTP links which are redirected to HTTPS (#98039) 2022-10-07 11:52:45 -07:00
wasm-notavail.rst gh-95451: Update docs for wasm32-emscripten and -wasi platforms (GH-95452) 2022-08-02 21:00:41 +02:00