Hi Walter, On 2015-04-28 10:23 AM, Walter Dörwald wrote: >> Key properties of coroutines: >> >> * ``async def`` functions are always coroutines, even if they do not >> contain ``await`` expressions. >> >> * It is a ``SyntaxError`` to have ``yield`` or ``yield from`` >> expressions in an ``async`` function. > > Does this mean it's not possible to implement an async version of > os.walk() if we had an async version of os.listdir()? > > I.e. for async code we're back to implementing iterators "by hand" > instead of using generators for it. For now yes. Unfortunately, we don't have time to implement coroutine-generators properly in 3.5. Thanks, Yury
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4