A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-May/139744.html below:

[Python-Dev] PEP 492 quibble and request

[Python-Dev] PEP 492 quibble and request [Python-Dev] PEP 492 quibble and requestPaul Moore p.f.moore at gmail.com
Fri May 1 14:14:51 CEST 2015
On 1 May 2015 at 12:54, Steven D'Aprano <steve at pearwood.info> wrote:
> You mean we could write code like this?
>
> def await(x):
>     ...
>
>
> if condition:
>     async def spam():
>         await (eggs or cheese)
> else:
>     def spam():
>         await(eggs or cheese)
>
>
> I must admit that's kind of cool, but I'm sure I'd regret it.

You could, but there are people with buckets of tar and feathers
waiting for you if you do :-)
Paul
More information about the Python-Dev mailing list

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