PythonMonkey v0.9.1 (dev)
|
Functions | |
typeof (jsval) | |
new (ctor) | |
simpleUncaughtExceptionHandler (loop, context) | |
Variables | |
dict | evalOpts = {'filename': __file__, 'fromPythonFrame': True} |
globalThis = pm.eval('globalThis') | |
pmGlobals = vars(pm) | |
exports = pm.eval(, evalOpts) | |
name = exports[index] | |
pythonmonkey.helpers.new | ( | ctor | ) |
new function - emits function which wraps JS new operator, emitting a lambda which constructs a new JS object upon invocation.
pythonmonkey.helpers.simpleUncaughtExceptionHandler | ( | loop, | |
context | |||
) |
A simple exception handler for uncaught JS Promise rejections sent to the Python event-loop See https://docs.python.org/3.11/library/asyncio-eventloop.html#error-handling-api
pythonmonkey.helpers.typeof | ( | jsval | ) |
typeof function - wraps JS typeof operator
dict pythonmonkey.helpers.evalOpts = {'filename': __file__, 'fromPythonFrame': True} |
pythonmonkey.helpers.exports = pm.eval(, evalOpts) |
pythonmonkey.helpers.globalThis = pm.eval('globalThis') |
pythonmonkey.helpers.name = exports[index] |
pythonmonkey.helpers.pmGlobals = vars(pm) |