A counter-proposal to __future__ in PEP 236
Martin von Loewis
loewis at informatik.hu-berlin.de
Fri Mar 2 11:06:24 EST 2001
Lloyd Sommerer <lsommerer at sewardweb.com> writes:
> This is obviously very distinct from its use with slices. But it seems
> reasonable to me that new python programmers would wonder if this:
>
> directive: nested_scopes
>
> might be equivalent to:
>
> directive:
> nested_scope
Indeed, that is also what I would expect, and there is nothing wrong
with that expectation. The confusing part would be that you'd expect
to put statements into the directive block, when you really only put
individual names there.
Regards,
Martin
More information about the Python-list
mailing list