New submission from Gavin Panella:
The following will sleep:
async def one():
await asyncio.sleep(10)
async def two():
await one()
loop.run_until_complete(two())
but the following will not:
async def one():
return asyncio.sleep(10)
async def two():
await
Gavin Panella added the comment:
It's inconsistent that defaultdict([]) should be rejected:
>>> defaultdict([])
Traceback (most recent call last):
File "", line 1, in
TypeError: first argument must be callable or None
but defaultdict.fromkeys([]) is okay:
New submission from Gavin Panella :
The logging module create a global _lock in what looks like a
thread-unsafe manner:
{{{
_lock = None
def _acquireLock():
"""
Acquire the module-level lock for serializing access to shared data.
This should be released wi
Changes by Gavin Panella :
--
nosy: +allenap
___
Python tracker
<http://bugs.python.org/issue6598>
___
___
Python-bugs-list mailing list
Unsubscribe: