matpi
matpi
Use `NULL == ptr` to avoid issues when forgetting an equal sign?
the `check_memory.py` script gives spurious non-freed objects in relation with threading. Investigate which test(s) create(s) those effects and whether we can solve them.
When `JS_SetPropertyStr` in `add_callable` returns `-1`, should raise the exception with `quickjs_exception_to_python` rather than raising a generic error. This is potentially a breaking change.
`object_call` accepts keyword arguments but does not use them. Either handle them or disallow them.
Make the variable and functions names more consistent. - js_ prefix for some functions? - clearly distinguish between e.g. variables of types JSContext and ContextData.
Fix #63, fix #66. Supersedes #67. As proposed over there, this stores Python exception into a JS object rather than globally. On the QuickJS side, the object uses as an...
As discussed in my roadmap presented in #67. This feature goes hand-in-hand with the job execution from #65. QuickJS does not seem to support throwing an error from the promise...
```python >>> import quickjs >>> ctx = quickjs.Context() >>> def test(): ... raise Exception ... >>> ctx.add_callable("test", test) >>> ctx.eval("async function a() {await test()}") >>> ctx.eval("a()") Segmentation fault (core dumped)...
When an exception happens in a Python callable added via `(Context|Function).add_callable`, the [error message](https://github.com/PetterS/quickjs/blob/master/module.c#L572) is not specific, which makes it hard to debug. Of course, one could wrap each callable...
The parameter `loc` to matplotlib's `legend` is commonly a string or index referring to a predefined location, but it can also be a 2-tuple of float axis coordinates. Trying to...