[Python-ideas] Inline assignments using "given" clauses

Serhiy Storchaka storchaka at gmail.com
Sat May 5 11:35:10 EDT 2018


05.05.18 18:26, Nick Coghlan пише:
> 3. writing back to the local namespace via exec doesn't work 
> consistently at function scope (and assuming PEP 558 is eventually 
> accepted, will some day reliably *never* work)

At end you can convert the source of the whole script to a string 
literal and write the whole script in one line. The problem solved!



More information about the Python-ideas mailing list