PyCallable | |
PyContext | |
PyEllipsis | |
PyIterable | An iterable Python object. |
PyIterator | |
PyNotImplemented | |
PyObject | This is an actual python object. It consists of a |
PyRef | A reference to a Python object. |
Either | |
PyArithmaticValue |
BufferProtocol | |
IdProtocol | |
IntoPyObject | Implemented by any type that can be returned from a built-in Python function. |
ItemProtocol | The python item protocol. Mostly applies to dictionaries.Allows getting, setting and deletion of keys-value pairs. |
PyClassDef | |
PyClassImpl | |
PyObjectPayload | |
PyValue | |
TryFromObject | Implemented by any type that can be created from a Python object. |
TryIntoRef | Allows coercion of a types into PyRefs, so that we can write functions that can takerefs, pyobject refs or basic types. |
TypeProtocol |
PyAttributes | For attributes we do not use a dict, but a hashmap. This is probablyfaster, unordered, and only supports strings as keys.TODO: class attributes should maintain insertion order (use IndexMap here) |
PyComparisonValue | |
PyEllipsisRef | |
PyNotImplementedRef | |
PyObjectRef | The |
PyResult | Use this type for functions which return a python object or an exception.Both the python object and the python exception are |