R
Roy Smith
Nicolas Fleury said:It's important to note that nobody is against the PEP syntax. We are
only talking about adding things to it
In think the above is a contradiction in terms.
Nicolas Fleury said:It's important to note that nobody is against the PEP syntax. We are
only talking about adding things to it
Nicolas said:Since the current syntax would be there, the no-indentation syntax can
be explained in terms of the indentation syntax:
"""
To avoid over-indentation, a with-statement can avoid defining a new
indentation block. In that case, the end of the with block is the end
of the current indentation block.
with EXPR as VAR
REST OF BLOCK
is equivalent to
with EXPR as VAR:
BLOCK
"""
What do you think? I fail to see the complexity...
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.