[Python-ideas] An Alternate Suite Delineation Syntax For Python? (was Re: [Python-Dev] [PATCH] Adding braces to __future__)

Nick Coghlan ncoghlan at gmail.com
Mon Dec 12 07:56:03 CET 2011


On Mon, Dec 12, 2011 at 4:47 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Nick Coghlan wrote:
>
>> It isn't that Python *can't* be tunnelled through whitespace
>> insensitive environments - it's that there's no *standard* mechanism
>> for doing so, so everyone that has the need reinvents the wheel in
>> their own idiosyncratic way.
>
>
> So perhaps an appropriate solution would be a PEP setting out
> such a standard, and maybe a library module implementing the
> transformation to and from?

Sure, that would be one way to go. It doesn't give you multi-line
lambda support or any of the other goodies, though.

Personally, I don't intend to take this idea any further than the
writeup I posted over on RTFD:
http://readthedocs.org/docs/ncoghlan_devs-python-notes/en/latest/pep_ideas/suite_expr.html

If someone else wants to pursue it, either as a Python reformatting
library or as an actual modification to the language grammar, more
power to 'em.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list