Nic Watson added the comment:
I'll add one more system I/O call that's not GIL-wrapped in the mmap module
that can take some time: mmap itself.
mmap on Linux with MAP_POPULATE (0x8000) as the flags can take quite a bit of
time. That's the flag that prefaults t
New submission from Nic Watson :
Goal: to distinguish inside a CancelledError exception handler whether the
current running task is being cancelled, or another task that the current task
is pending on was cancelled.
Example:
import asyncio
async def task2func():
await asyncio.sleep(2
Nic Watson added the comment:
Excellent answer by twisteroid Ambassador.
Resolved
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Nic Watson:
The assertion:
File "/usr/lib/python3.6/uuid.py", line 150, in __init__
assert isinstance(bytes, bytes_), repr(bytes)
is too specific (and IMHO, unpythonic). One may want to pass a bytearray or a
memoryview. See int.from_bytes for an example
Change by Nic Watson :
--
nosy: +jnwatson
___
Python tracker
<https://bugs.python.org/issue29930>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Nic Watson :
Currently, passing a generator of coroutines or futures as the first parameter
of asyncio.wait raises a TypeError. This is in conflict with the documentation
calling the first parameter a "sequence".
Line in question.
https://github.com/python/cp
New submission from Nic Watson :
Summary: essentially asyncio.add_signal_handler doesn't work when called off
the main thread. One might consider this a documentation failure.
(Note: there's also a bigger issue with cleanup, which I'll submit separately)
Exception in
New submission from Nic Watson :
If a signal handler callback is registered on an event loop, and the event loop
has close() called on it, the close will fail.
Exception:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/home/nic/.pyenv/versions/3.7.0/lib/pyth
Change by Nic Watson :
--
nosy: +jnwatson
___
Python tracker
<https://bugs.python.org/issue30945>
___
___
Python-bugs-list mailing list
Unsubscribe: