cpython/Objects
Victor Stinner bfd316e750 Add _PyThreadState_UncheckedGet()
Issue #26154: Add a new private _PyThreadState_UncheckedGet() function which
gets the current thread state, but don't call Py_FatalError() if it is NULL.

Python 3.5.1 removed the _PyThreadState_Current symbol from the Python C API to
no more expose complex and private atomic types. Atomic types depends on the
compiler or can even depend on compiler options. The new function
_PyThreadState_UncheckedGet() allows to get the variable value without having
to care of the exact implementation of atomic types.

Changes:

* Replace direct usage of the _PyThreadState_Current variable with a call to
  _PyThreadState_UncheckedGet().
* In pystate.c, replace direct usage of the _PyThreadState_Current variable
  with the PyThreadState_GET() macro for readability.
* Document also PyThreadState_Get() in pystate.h
2016-01-20 11:12:38 +01:00
..
clinic Issue #24007: Argument Clinic now writes the format of PyArg_Parse*() at the 2015-04-24 00:40:51 +03:00
stringlib Fixed typos in comments. 2015-05-18 22:20:18 +03:00
README Issue #18093: Factor out the programs that embed the runtime 2014-07-25 21:52:14 +10:00
abstract.c Issue #24802: Merge null termination fixes from 3.4 into 3.5 2015-11-07 02:56:11 +00:00
accu.c
boolobject.c
bytearrayobject.c Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size. 2015-12-19 20:05:25 +02:00
bytes_methods.c Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() 2015-02-03 01:25:42 +02:00
bytesobject.c Issue #20440: Massive replacing unsafe attribute setting code with special 2015-12-24 10:35:59 +02:00
capsule.c
cellobject.c
classobject.c Removed unintentional trailing spaces in non-external and non-generated C files. 2015-03-18 21:53:15 +02:00
codeobject.c Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size. 2015-12-19 20:05:25 +02:00
complexobject.c Issue #24802: Merge null termination fixes from 3.4 into 3.5 2015-11-07 02:56:11 +00:00
descrobject.c Issue #20440: Massive replacing unsafe attribute setting code with special 2015-12-24 10:35:59 +02:00
dict-common.h Issue #16991: Add a C implementation of collections.OrderedDict. 2015-05-29 22:21:39 -06:00
dictnotes.txt
dictobject.c Add _PyThreadState_UncheckedGet() 2016-01-20 11:12:38 +01:00
enumobject.c
exceptions.c Issue #20440: More use of Py_SETREF. 2015-12-27 15:41:34 +02:00
fileobject.c (Merge 3.4) Issue #25182: Fix compilation on Windows 2015-09-30 15:03:31 +02:00
floatobject.c Issue #24731: Fixed crash on converting objects with special methods 2015-11-25 15:52:04 +02:00
frameobject.c Issue #20440: Massive replacing unsafe attribute setting code with special 2015-12-24 10:35:59 +02:00
funcobject.c Issue #20440: Massive replacing unsafe attribute setting code with special 2015-12-24 10:35:59 +02:00
genobject.c Issue #24450: Add gi_yieldfrom to generators; cr_await to coroutines. 2015-07-03 00:23:30 -04:00
iterobject.c Issue #23985: Fixed integer overflow in iterator object. Patch by 2015-05-21 20:51:53 +03:00
listobject.c Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size. 2015-12-19 20:05:25 +02:00
listsort.txt Various clarifications based on feedback & questions over the years. 2013-08-24 15:15:19 -05:00
lnotab_notes.txt
longobject.c Issue #24731: Fixed crash on converting objects with special methods 2015-11-25 15:52:04 +02:00
memoryobject.c Fix Visual Studio warning. 2015-11-10 18:35:19 +01:00
methodobject.c More typos in 3.5 documentation and comments 2015-10-07 11:03:53 +00:00
moduleobject.c Issue #20440: Massive replacing unsafe attribute setting code with special 2015-12-24 10:35:59 +02:00
namespaceobject.c Issue #24257: Fixed incorrect uses of PyObject_IsInstance(). 2015-05-22 11:02:49 +03:00
object.c Merge typo fixes from 3.4 into 3.5 2015-10-07 11:01:47 +00:00
obmalloc.c Issue #23450: Fixed possible integer overflows. 2015-02-16 20:52:17 +02:00
odictobject.c Issue #25935: Garbage collector now breaks reference loops with OrderedDict. 2016-01-19 14:46:25 +02:00
rangeobject.c Issue #20440: Applied yet one patch for using Py_SETREF. 2015-12-27 12:36:18 +02:00
setobject.c merge 3.4 2016-01-01 11:56:16 -06:00
sliceobject.c Make Ellipsis and NotImplemented picklable through the reduce protocol. 2013-11-24 02:53:45 -08:00
structseq.c Issue #18520: Add a new PyStructSequence_InitType2() function, same than 2013-07-22 22:24:54 +02:00
tupleobject.c Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects. 2015-03-10 22:35:24 +01:00
typeobject.c set tp_new from the class in the hierarchy that actually owns the descriptor (closes #25731) 2016-01-18 21:11:18 -08:00
typeslots.inc add Py_tp_finalize slot (closes #24345) 2015-06-01 10:12:48 -05:00
typeslots.py PEP 0492 -- Coroutines with async and await syntax. Issue #24017. 2015-05-11 22:57:16 -04:00
unicodectype.c Removed unintentional trailing spaces in non-external and non-generated C files. 2015-03-18 21:53:15 +02:00
unicodeobject.c Issue #20440: More use of Py_SETREF. 2015-12-27 15:41:34 +02:00
unicodetype_db.h upgrade to Unicode 8.0.0 2015-06-27 15:45:56 -05:00
weakrefobject.c Issue #23783: Fixed memory leak in PyObject_ClearWeakRefs() in case of 2015-03-30 09:52:29 +03:00

README

Source files for various builtin objects