[issue28725] Awaiting an awaitable returned from an async function does nothing

2016-11-17 Thread Gavin Panella
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

[issue23372] defaultdict.fromkeys should accept a callable factory

2016-09-19 Thread Gavin Panella
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: >&

[issue7403] Race condition in logging._acquireLock()?

2009-11-27 Thread Gavin Panella
New submission from Gavin Panella ga...@gromper.net: 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

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-07-30 Thread Gavin Panella
Changes by Gavin Panella ga...@gromper.net: -- nosy: +allenap ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6598 ___ ___ Python-bugs-list mailing