[Python-ideas] gofmt for Python: standardized styling as a language feature
Nicholas Chammas
nicholas.chammas at gmail.com
Wed Mar 18 02:54:11 CET 2015
On Tue, Mar 17, 2015 at 8:04 PM, Terry Reedy <tjreedy at udel.edu> wrote:
pep8, autopep8, and similar applications do not belong in the stdlib. They
> are easily installed with, for instance, 'pip install autopep8'.
I am not proposing putting autopep8 in the standard library. I am proposing
that an auto-styler be included with Python as a first-class utility. The
emphasis here is on *included* and *first-class*.
That auto-styler may well be based somehow on autopep8, but that is a
separate discussion about *implementation*. I am first checking that the
*idea* is sound. I can’t tell if you had any objections to that idea. Yes,
I know that today I can install and use autopep8 as a third-party utility
using pip, but autopep8 today is neither included with Python nor a
first-class utility.
(FWIW, couldn’t autopep8 somehow be adapted to be an included module that
can be invoked via python -m <https://www.python.org/dev/peps/pep-0338/> —
e.g. python -m compileall, python -m SimpleHTTPServer — just as far as the
mechanics are concerned? As I noted in my original post, I’m not in a
position yet to specifically propose how an included auto-styler would
work, but let’s say for argument’s sake that 1) we decided we liked the
idea and 2) autopep8 fit the bill for promotion to an included utility, and
3) we addressed Andrew’s points.)
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150317/05fc9634/attachment-0001.html>
More information about the Python-ideas
mailing list