Alexander Belopolsky
Alexander Belopolsky
If the leaked object is a class or a function, `inspect.getsource` may indeed help, but such objects are usually bound in modules an are unlikely to get leaked. For objects...
You can see some simple examples in the [Python Manual](https://docs.python.org/3/library/asyncio-task.html#example-hello-world-coroutine). Ideally something like ```q p)async def hello_world(x):' await asyncio.sleep(10) print("Hello World!") .z.ps:.p.callable .p.pyeval"hello_world" ``` would result in "Hello World!" printed...
I had to break the proposed order in #4650 recently. Please see 4dcb09d42acdbbf09e07b94a0004ab56df2f5a7a. Is my case special enough to break the rules?
The main() method of trace and profile modules attempt to emulate the environment in which traced code runs when invoked directly, but it fails in several respects. The specific problem...
I don't have much to offer for this discussion. Let me just mention that the timedelta repr has recently been [reworked upstream](http://bugs.python.org/issue30302) to show keyword arguments. You may find some...
@mdickinson - my only concern was with the floor log10 computation that I felt could be done better. If it looks good enough to you, I have no objections to...
> You can use `Dockerfile.llvmlatest` to reproduce the results. @lemire - do you mean this [Dockerfile.llvmlatest](https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/blob/575fde5a60ab72e627d00a9272eb611aa0116d67/2019/05/03/Dockerfile.llvmlatest)?
It appears that @kelas rediscovered an optimization that [has been applied](https://github.com/simdjson/simdjson/pull/317/files) to [simdjson](https://github.com/simdjson/simdjson) a few years ago. I still find it puzzling that an auto-unrolled loop results in a better...
According to @jkeiser, de-unrolling did not affect performance and was applied for purely aesthetic reasons. See the original [Simplify and optimize flatten_bits](https://github.com/simdjson/simdjson/pull/313) patch.
Here is a demonstration based on @kelas's code of clang seemingly inserting an extra instruction in manually unrolled code: https://godbolt.org/z/r75P1GzM8 Unroll: ```asm bsf r10, rcx add r10d, edx mov esi,...