Change by Leonard Lausen :
--
nosy: +leezu
___
Python tracker
<https://bugs.python.org/issue29842>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Leonard Lausen :
--
type: -> crash
___
Python tracker
<https://bugs.python.org/issue39778>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Leonard Lausen :
Below sample program, will raise "Modules/gcmodule.c:110: gc_decref: Assertion
"gc_get_refs(g) > 0" failed: refcount is too small" on Python 3.8.2 debug build.
On 3.7.6 debug build, "Modules/gcmodule.c:277: visit_decref: Asserti
Leonard Lausen added the comment:
> No, but there's C API that you can use to get/set contextvars. If a C library
> is hard coded to use threadlocals I'm afraid there's nothing we can do about
> it except fixing their C code to make state storage pluggable.
I agree t
Leonard Lausen added the comment:
Consider a `lib = ctypes.CDLL(lib_path, ctypes.RTLD_LOCAL)` which provides APIs
`lib.compute`, `lib.set_state` and a Python interface wrapping both in `def
compute`, `def set_state`. Let's assume `lib.set_state` sets a thread-local
state in the li
New submission from Leonard Lausen :
contextvars provide APIs to manage, store, and access context-local state.
Unfortunately, if Python is used as a frontend for a native libray (eg accessed
via ctypes), and in case that the state of interest is managed in the native
library, contextvar API
Change by Leonard Lausen :
--
nosy: +leezu
___
Python tracker
<https://bugs.python.org/issue30140>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Leonard Lausen :
--
nosy: +Leonard Lausen
___
Python tracker
<https://bugs.python.org/issue32485>
___
___
Python-bugs-list mailing list
Unsubscribe: