alternatives to making blocks like { } or other ??

Mel Wilson mwilson at the-wire.com
Thu May 20 16:52:16 EDT 2004


In article <9ace45f.0405200616.7e5110ba at posting.google.com>,
asmirnov1234567890 at yahoo.com (Andrei Smirnov) wrote:
>Please, Python writers, do provide braces as compatibility mode.
>
>Give the chance to the world!

   The idea is a serious violation of the "One obvious way
to do it" rule.  The thread has already dealt with the
confusion created by two obvious ways to do it:  when the
compiler uses {} and the humans use indentation.

   The best solution would be for somebody to volunteer to
write a program that would take Python source, marked up
with block brackets (perhaps '##{' and '##}', perhaps not)
and create properly indented Python.  If you volunteered for
this you could also throw in the facility to mark up
correctly indented Python source that you wanted to go on to
modify.  I doubt the facility is going to show up in Python
any other way anytime soon.  Python 13.0 maybe.

        Regards.        Mel.



More information about the Python-list mailing list