This struct is a bundle of methods used by the JSObjectItemsProxy type.
More...
#include <JSObjectItemsProxy.hh>
This struct is a bundle of methods used by the JSObjectItemsProxy type.
◆ JSObjectItemsProxy_clear()
int JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_clear |
( |
JSObjectItemsProxy * |
self | ) |
|
|
static |
.tp_clear method
- Parameters
-
- Returns
- 0 on success
◆ JSObjectItemsProxy_dealloc()
void JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_dealloc |
( |
JSObjectItemsProxy * |
self | ) |
|
|
static |
Deallocation method (.tp_dealloc), removes the reference to the underlying JSObject before freeing the JSObjectItemsProxy.
- Parameters
-
◆ JSObjectItemsProxy_iter()
PyObject * JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_iter |
( |
JSObjectItemsProxy * |
self | ) |
|
|
static |
Return an iterator object to make JSObjectItemsProxy iterable, emitting (key, value) tuples.
- Parameters
-
- Returns
- PyObject* - iterator object
◆ JSObjectItemsProxy_iter_reverse()
PyObject * JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_iter_reverse |
( |
JSObjectItemsProxy * |
self | ) |
|
|
static |
reverse iterator method
- Parameters
-
- Returns
- PyObject* The resulting new dict
◆ JSObjectItemsProxy_length()
Py_ssize_t JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_length |
( |
JSObjectItemsProxy * |
self | ) |
|
|
static |
Length method (.sq_length), returns the number of key-value pairs in the JSObject, used by the python len() method.
- Parameters
-
- Returns
- Py_ssize_t The length of the JSObjectProxy
◆ JSObjectItemsProxy_mapping()
PyObject * JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_mapping |
( |
PyObject * |
self, |
|
|
void * |
Py_UNUSEDignored |
|
) |
| |
|
static |
mapping method
- Parameters
-
- Returns
- PyObject* The resulting new dict
◆ JSObjectItemsProxy_repr()
PyObject * JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_repr |
( |
JSObjectItemsProxy * |
self | ) |
|
|
static |
Compute a string representation of the JSObjectItemsProxy.
- Parameters
-
- Returns
- the string representation (a PyUnicodeObject) on success, NULL on failure
◆ JSObjectItemsProxy_traverse()
int JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_traverse |
( |
JSObjectItemsProxy * |
self, |
|
|
visitproc |
visit, |
|
|
void * |
arg |
|
) |
| |
|
static |
.tp_traverse method
- Parameters
-
self | - The JSObjectItemsProxy |
visit | - The function to be applied on each element of the list |
arg | - The argument to the visit function |
- Returns
- 0 on success
The documentation for this struct was generated from the following files: