[Python-ideas] Statement local functions and classes (aka PEP 3150 is dead, say 'Hi!' to PEP 403)
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Oct 13 23:01:35 CEST 2011
Georg Brandl wrote:
> Sorry, I don't think this looks like Python anymore. Defining a class
> just to get at a throwaway namespace? Using "@" as an identifier?
> Using ":" not as a suite marker?
>
> This doesn't have any way for a casual reader to understand what's
> going on.
I have to agree. I think this proposal is a huge step
backwards from the very elegant and self-explanatory
syntax of PEP 3150.
Withdrawing PEP 3150 altogether seems like an over-
reaction to me. A lot of its problems would go away
if the idea of trying to make the names local to the
suite were dropped. That part doesn't seem particularly
important to me -- we manage to live without the
for-loop putting its variable into a local scope,
even though it would be tidier if it did.
--
Greg
More information about the Python-ideas
mailing list