syntax for preset locals without using dummy args with defaults

Beni Cherniavsky cben at
Wed Jan 15 09:00:56 CET 2003

On 2003-01-14, Andrew McGregor wrote:

> How about:
> with:
>   z = some_expression
>   z1 = some_other_expression
>   # for consistency, should allow this too.
>   def quux(bar):
>       do_something()
> do:
>   def foo(x, y=default):
>       do_stuff()
Yes, this is probably optimal (or very close) if we want it at all.

Beni Cherniavsky <cben at>

Holy resolution for a holy war: the Torah stores most numbers as
little-endian (e.g. "seven and twenty and a hundred years")!

More information about the Python-list mailing list