[issue29842] Make Executor.map work with infinite/large inputs correctly

2021-05-04 Thread Leonard Lausen
Change by Leonard Lausen : -- nosy: +leezu ___ Python tracker <https://bugs.python.org/issue29842> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39778] collections.OrderedDict and weakref.ref raises "refcount is too small" assertion

2020-02-27 Thread Leonard Lausen
Change by Leonard Lausen : -- type: -> crash ___ Python tracker <https://bugs.python.org/issue39778> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue39778] collections.OrderedDict and weakref.ref raises "refcount is too small" assertion

2020-02-27 Thread Leonard Lausen
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

[issue39660] Contextvars: Optional callbacks on state change

2020-02-20 Thread Leonard Lausen
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

[issue39660] Contextvars: Optional callbacks on state change

2020-02-20 Thread Leonard Lausen
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

[issue39660] Contextvars: Optional callbacks on state change

2020-02-16 Thread Leonard Lausen
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

[issue30140] Binary arithmetic does not always call subclasses first

2019-07-15 Thread Leonard Lausen
Change by Leonard Lausen : -- nosy: +leezu ___ Python tracker <https://bugs.python.org/issue30140> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32485] Multiprocessing dict sharing between forked processes

2018-05-14 Thread Leonard Lausen
Change by Leonard Lausen : -- nosy: +Leonard Lausen ___ Python tracker <https://bugs.python.org/issue32485> ___ ___ Python-bugs-list mailing list Unsubscribe: