Expand description
Various types defined by the Python interpreter such as int
, str
and tuple
.
Modules§
- Iteration over Python collections.
Structs§
- Represents any Python object.
- Represents a Python
bool
. - Represents a Python
bytearray
. - Represents a Python
bytes
object. - Represents a builtin Python function object.
- Represents a Python Capsule as described in Capsules:
- PyCodeNon-
Py_LIMITED_API
and non-PyPy
and non-GraalPy
Represents a Python code object. - Represents a Python
complex
object. - PyDateNon-
Py_LIMITED_API
Bindings arounddatetime.date
- PyDateTimeNon-
Py_LIMITED_API
Bindings fordatetime.datetime
- PyDeltaNon-
Py_LIMITED_API
Bindings fordatetime.timedelta
- Represents a Python
dict
. - PyDictItemsNeither
PyPy
norGraalPy
Represents a Pythondict_items
. - PyDictKeysNeither
PyPy
norGraalPy
Represents a Pythondict_keys
. - PyDictValuesNeither
PyPy
norGraalPy
Represents a Pythondict_values
. - Represents the Python
Ellipsis
object. - Represents a Python
float
object. - PyFrameNon-
Py_LIMITED_API
and non-PyPy
and non-GraalPy
Represents a Python frame. - Represents a Python
frozenset
- Allows building a Python
frozenset
one item at a time - PyFunctionNon-
Py_LIMITED_API
and non-PyPy
and non-GraalPy
Represents a Python function object. - Represents a Python
int
object. - A Python iterator object.
- Represents a Python
list
. - Represents a Python
int
object. - Represents a reference to a Python object supporting the mapping protocol.
- Represents a Python
memoryview
. - Represents a Python
module
object. - Represents the Python
None
object. - Represents the Python
NotImplemented
object. - Represents a reference to a Python object supporting the sequence protocol.
- Represents a Python
set
- Represents a Python
slice
. - Return value from
PySlice::indices
. - Represents a Python
string
(a Unicode string object). - PySuperNeither
PyPy
norGraalPy
Represents a Pythonsuper
object. - PyTimeNon-
Py_LIMITED_API
Bindings fordatetime.time
- Represents a Python traceback.
- Represents a Python
tuple
object. - Represents a reference to a Python
type object
. - PyTzInfoNon-
Py_LIMITED_API
Bindings fordatetime.tzinfo
. - Represents a Python
string
(a Unicode string object).
Enums§
- PyStringDataNon-
Py_LIMITED_API
Represents raw data backing a Pythonstr
.
Traits§
- Python objects that have a base type.
- Conversion trait that allows a sequence of tuples to be converted into
PyDict
Primary use case for this trait iscall
andcall_method
methods as keywords argument. - This trait represents the Python APIs which are usable on all Python objects.
- Implementation of functionality for
PyBool
. - Implementation of functionality for
PyByteArray
. - Implementation of functionality for
PyBytes
. - Implementation of functionality for
PyCapsule
. - Implementation of functionality for
PyComplex
. - PyDateAccessNon-
Py_LIMITED_API
Trait for accessing the date components of a struct containing a date. - PyDeltaAccessNon-
Py_LIMITED_API
Trait for accessing the components of a struct containing a timedelta. - Implementation of functionality for
PyDict
. - Implementation of functionality for
PyFloat
. - Implementation of functionality for
PyFrozenSet
. - Implementation of functionality for
PyList
. - Implementation of functionality for
PyMapping
. - Implementation of functionality for
PyModule
. - Implementation of functionality for
PySequence
. - Implementation of functionality for
PySet
. - Implementation of functionality for
PySlice
. - Implementation of functionality for
PyString
. - PyTimeAccessNon-
Py_LIMITED_API
Trait for accessing the time components of a struct containing a time. - Implementation of functionality for
PyTraceback
. - Implementation of functionality for
PyTuple
. - Implementation of functionality for
PyType
. - PyTzInfoAccessNon-
Py_LIMITED_API
Trait for accessing the components of a struct containing a tzinfo.
Functions§
- timezone_utcNon-
Py_LIMITED_API
Deprecated form oftimezone_utc_bound
. - timezone_utc_boundNon-
Py_LIMITED_API
Equivalent todatetime.timezone.utc