mw66
mw66
Ubuntu / python3.6
Can you avoid to import many different Python files into D? I find the easiest way to use pyd is to write a single wrapper .py file which import every...
I want to ask a related question: how can I pass a D (native) array to the Python side? I don't care copyless or not, as long as I can...
My intention is that: since D code and Python code run in the same memory space, is it possible for them to directly share the same raw pointer to the...
So, how? can you show a small example 😀 ? I tried to pass a D array using d_to_python_numpy_ndarray, and changed the contents on the Python side, but when I...
Thanks for the example. Yes, in this way it can share the raw pointer on both sides.
I'm not sure if this is related, but I'm experiencing a problem: a Python func call hangs somewhere in a multi threaded program ``` (gdb) where #0 0x00007ffff3e08fb9 in futex_reltimed_wait_cancelable...
Just an update: play with Python GIL is no fun. I think the best practice to use PyD / Python is to keep it running in the same single D...
Same problem with (int, bool) literal pair, different behavior from v0.13.3: ``` Assert.equal(0, false); /.dub/packages/fluent-asserts-1.0.0/fluent-asserts/source/fluentasserts/core/base.d(506): 0 should equal false. 0 is not equal to false. Diff: [-false][+0] Expected:false Actual:0 ```...
Find another related one, and is more serious: this assert failed in v1.0.0, but works fine in v0.13.3. ``` double dn = 43.5001 / 4.35; Assert.greaterThan(dn, 10.0); // 10.00002298850574712643 /.dub/packages/fluent-asserts-1.0.0/fluent-asserts/source/fluentasserts/core/base.d(506):...