cpython/Objects
Guido van Rossum 48b069a003
bpo-39481: Implementation for PEP 585 (#18239)
This implements things like `list[int]`,
which returns an object of type `types.GenericAlias`.
This object mostly acts as a proxy for `list`,
but has attributes `__origin__` and `__args__`
that allow recovering the parts (with values `list` and `(int,)`.

There is also an approximate notion of type variables;
e.g. `list[T]` has a `__parameters__` attribute equal to `(T,)`.
Type variables are objects of type `typing.TypeVar`.
2020-04-07 09:50:06 -07:00
..
clinic bpo-39573: Update clinic to use Py_IS_TYPE() function (GH-18507) 2020-02-14 08:50:19 +01:00
stringlib Update some www.unicode.org URLs to use HTTPS. (GH-18912) 2020-03-10 21:10:59 -07:00
README
abstract.c bpo-39481: Implementation for PEP 585 (#18239) 2020-04-07 09:50:06 -07:00
accu.c
boolobject.c bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464) 2019-05-30 19:13:39 -07:00
bytearrayobject.c bpo-35081: Move bytes_methods.h to the internal C API (GH-18492) 2020-02-12 22:32:34 +01:00
bytes_methods.c bpo-35081: Move bytes_methods.h to the internal C API (GH-18492) 2020-02-12 22:32:34 +01:00
bytesobject.c bpo-35081: Move bytes_methods.h to the internal C API (GH-18492) 2020-02-12 22:32:34 +01:00
call.c bpo-39882: Add _Py_FatalErrorFormat() function (GH-19157) 2020-03-25 19:27:36 +01:00
capsule.c bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464) 2019-05-30 19:13:39 -07:00
cellobject.c bpo-39573: Use Py_TYPE() macro in Objects directory (GH-18392) 2020-02-07 03:04:21 +01:00
classobject.c bpo-36347: stop using RESTRICTED constants (GH-12684) 2020-02-18 05:14:46 -08:00
codeobject.c bpo-39573: Use Py_TYPE() macro in Objects directory (GH-18392) 2020-02-07 03:04:21 +01:00
complexobject.c bpo-39573: Use Py_TYPE() macro in Objects directory (GH-18392) 2020-02-07 03:04:21 +01:00
descrobject.c bpo-39481: Implementation for PEP 585 (#18239) 2020-04-07 09:50:06 -07:00
dict-common.h
dictnotes.txt
dictobject.c bpo-39481: Implementation for PEP 585 (#18239) 2020-04-07 09:50:06 -07:00
enumobject.c bpo-39573: Use Py_REFCNT() macro (GH-18388) 2020-02-07 00:38:59 +01:00
exceptions.c bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601) 2020-03-04 14:15:20 +01:00
fileobject.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
floatobject.c bpo-35081: Move dtoa.h header to the internal C API (GH-18489) 2020-02-12 22:54:42 +01:00
frameobject.c bpo-39882: Add _Py_FatalErrorFormat() function (GH-19157) 2020-03-25 19:27:36 +01:00
funcobject.c bpo-36347: stop using RESTRICTED constants (GH-12684) 2020-02-18 05:14:46 -08:00
genericaliasobject.c bpo-39481: Implementation for PEP 585 (#18239) 2020-04-07 09:50:06 -07:00
genobject.c bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601) 2020-03-04 14:15:20 +01:00
interpreteridobject.c bpo-39573: Use Py_TYPE() macro in Objects directory (GH-18392) 2020-02-07 03:04:21 +01:00
iterobject.c bpo-39487: Merge duplicated _Py_IDENTIFIER identifiers in C code (GH-18254) 2020-01-30 15:20:25 -08:00
listobject.c bpo-39481: Implementation for PEP 585 (#18239) 2020-04-07 09:50:06 -07:00
listsort.txt Fixes in sorting descriptions (GH-18317) 2020-02-03 08:47:20 -08:00
lnotab_notes.txt bpo-38115: Deal with invalid bytecode offsets in lnotab (GH-16079) 2019-09-28 07:49:15 -07:00
longobject.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
memoryobject.c Give proper credits for the memoryview implementation. (#18626) 2020-02-24 11:15:26 +01:00
methodobject.c bpo-39947: Move Py_EnterRecursiveCall() to internal C API (GH-18972) 2020-03-13 10:19:38 +01:00
moduleobject.c bpo-39824: module_traverse() don't call m_traverse if md_state=NULL (GH-18738) 2020-03-17 18:09:46 +01:00
namespaceobject.c bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601) 2020-03-04 14:15:20 +01:00
object.c bpo-40170: PyObject_GET_WEAKREFS_LISTPTR() becomes a function (GH-19377) 2020-04-06 14:07:02 +02:00
obmalloc.c bpo-39882: Add _Py_FatalErrorFormat() function (GH-19157) 2020-03-25 19:27:36 +01:00
odictobject.c bpo-36144: OrderedDict Union (PEP 584) (#18967) 2020-03-13 09:06:04 -07:00
picklebufobject.c bpo-36785: PEP 574 implementation (GH-7076) 2019-05-26 17:10:09 +02:00
rangeobject.c bpo-37207: Add _PyArg_NoKwnames() helper function (GH-18980) 2020-03-16 15:06:20 +01:00
setobject.c bpo-39481: Implementation for PEP 585 (#18239) 2020-04-07 09:50:06 -07:00
sliceobject.c Make PyXXX_Fini() functions private (GH-15531) 2019-08-27 00:12:32 +02:00
structseq.c bpo-39573: Use Py_SET_SIZE() function (GH-18402) 2020-02-07 23:18:08 +01:00
tupleobject.c bpo-39481: Implementation for PEP 585 (#18239) 2020-04-07 09:50:06 -07:00
typeobject.c bpo-40170: PyObject_GET_WEAKREFS_LISTPTR() becomes a function (GH-19377) 2020-04-06 14:07:02 +02:00
typeslots.inc
typeslots.py
unicodectype.c
unicodeobject.c bpo-37388: Don't check encoding/errors during finalization (GH-19409) 2020-04-07 16:07:42 +02:00
unicodetype_db.h closes bpo-39926: Update Unicode to 13.0.0. (GH-18910) 2020-03-10 20:41:34 -07:00
weakrefobject.c bpo-40170: PyObject_GET_WEAKREFS_LISTPTR() becomes a function (GH-19377) 2020-04-06 14:07:02 +02:00

README

Source files for various builtin objects