PythonMonkey   v1.1.1 (dev)
Loading...
Searching...
No Matches
PyBaseProxyHandler.cc File Reference

Struct for creating JS proxy objects. More...

#include "include/PyBaseProxyHandler.hh"
#include <jsapi.h>
#include <Python.h>
Include dependency graph for PyBaseProxyHandler.cc:

Functions

PyObject * idToKey (JSContext *cx, JS::HandleId id)
 Convert jsid to a PyObject to be used as dict keys.
 
bool idToIndex (JSContext *cx, JS::HandleId id, Py_ssize_t *index)
 

Detailed Description

Struct for creating JS proxy objects.

Author
Caleb Aikens (caleb.nosp@m.@dis.nosp@m.tribu.nosp@m.tive.nosp@m..netw.nosp@m.ork) and Philippe Laporte (phili.nosp@m.ppe@.nosp@m.distr.nosp@m.ibut.nosp@m.ive.n.nosp@m.etwo.nosp@m.rk)
Date
2023-04-20

Function Documentation

◆ idToIndex()

bool idToIndex ( JSContext *  cx,
JS::HandleId  id,
Py_ssize_t *  index 
)

◆ idToKey()

PyObject * idToKey ( JSContext *  cx,
JS::HandleId  id 
)

Convert jsid to a PyObject to be used as dict keys.