Defines the GtfDict object interface.
More...
#include <Python.h>
#include "../../hashmap_ext.h"
Go to the source code of this file.
|
| int | GtfDict_containsValue (GtfDict *self, PyObject *other) |
| | Internal function for checking if the other dict is contained within self. Linked as contains and contains()
|
| |
| PyObject * | GtfDict_keys (GtfDict *restrict self) |
| | GtfDict.keys()
|
| |
| PyObject * | GtfDict_getitem (GtfDict *restrict self, PyObject *restrict key) |
| | A custom getitem that also checks the core attributes.
|
| |
Defines the GtfDict object interface.
◆ GtfDict_check
| #define GtfDict_check |
( |
|
o | ) |
PyType_IsSubtype(Py_TYPE(o), &GtfDictType) |
Checks if the object can be interpreted as a GtfDict.
- Parameters
-
- Returns
- true if the object can be interpreted as a GtfDict, false otherwise
◆ GtfDict_containsValue()
| int GtfDict_containsValue |
( |
GtfDict * |
self, |
|
|
PyObject * |
other |
|
) |
| |
Internal function for checking if the other dict is contained within self. Linked as contains and contains()
- Parameters
-
| self | |
| other | the other object that might be contained |
- Returns
- C bool describing
- See also
- GtfDict_contains