[Python-Dev] PEP 492 quibble and request (original) (raw)
Paul Moore p.f.moore at gmail.com
Fri May 1 14:14:51 CEST 2015
- Previous message (by thread): [Python-Dev] PEP 492 quibble and request
- Next message (by thread): [Python-Dev] PEP 492 quibble and request
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [Python-Dev] PEP 492 quibble and request
- Next message (by thread): [Python-Dev] PEP 492 quibble and request
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]