[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:42:09 CET 2011

On Mon, Dec 12, 2011 at 4:09 PM, Bruce Leban <bruce at leapyear.org> wrote:
> This isn't a perfect design. In particular %{> wouldn't be necessary if the
> template language parses the embedded code, but it's sufficient to
> illustrate the point.

Sure, but that's just perpetuating the status quo - you can fairly
easily create a Python *inspired* templating language right now by
building your suite delimeters into your template syntax (e.g. Django
and Jinja2 favour explicit suite closing snippets like "{% endfor

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.


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

More information about the Python-ideas mailing list