[Python-ideas] Modern language design survey for "assign and compare" statements

Steven D'Aprano steve at pearwood.info
Sun May 20 19:11:00 EDT 2018

On Sun, May 20, 2018 at 02:53:46PM -0400, Juancarlo Añez wrote:
> This shouldn't be:
> if os.fork() as child_pid:
>     parent(child_pid)
> else:
>    child()
> print(child_pid)  # child_pid is undefined

Why on earth would it be undefined?

Anyway, if you want to propose an alternative to PEP 572, you ought to 
write your own competing PEP.


More information about the Python-ideas mailing list