Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51660

Re: Script that converts between indentation and curly braces in Python code

References <09DBD544-FA04-48DC-8FEA-1E788FE1C6A6@gmail.com> <CAAM7w92xAY1z5yVrv6cdL-cAHHFeg8mW+fSAPKsH9u5QHM842w@mail.gmail.com> <CAPTjJmrrs-zh0RXZ70vOSSg1PcXRm8u_h5jpos51JHHzu+JHTw@mail.gmail.com>
Date 2013-07-31 10:19 -0400
Subject Re: Script that converts between indentation and curly braces in Python code
From Joel Goldstick <joel.goldstick@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.27.1375280362.1251.python-list@python.org> (permalink)

Show all headers | View raw


So, why do you want to do this?  As has been pointed out, its a
difficult and likely sizable task to build such a parser.  In the end
you get something that isn't a computer language -- even tho it looks
like one.  And it also is probably just as big a job to convert it
back to python.  So, what is the point?

Pardon me for making assumptions, but this seems to be a variation on
the theme of 'I don't like python, it doesn't have curly braces'.  So
if you need curly braces, you have many other languages to choose
from.  Python isn't one of them.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Script that converts between indentation and curly braces in Python code Joel Goldstick <joel.goldstick@gmail.com> - 2013-07-31 10:19 -0400

csiph-web