[Python-ideas] gofmt for Python: standardized styling as a language feature

Barry Warsaw barry at python.org
Fri Mar 20 23:07:47 CET 2015


On Mar 19, 2015, at 04:55 PM, Guido van Rossum wrote:

>Have you used Emacs? The python-mode written by Tim Peters and maintained
>by Barry Warsaw has some pretty amazing reformatting capabilities (though I
>rarely use them, because my fingers automatically type correctly formatted
>code :-).

I must admit to a long-standing lack of enthusiasm for Elisp hacking, so much
of the recent credit for python-mode's development goes to Andreas Röhler. :)

Simple additions of pyflakes (some folks like flake8) and whitespace-mode make
python-mode really fantastic for quickly spotting questionable code.  My
fingers too are well-trained but sometimes my brain gets in the way, and then
Emacs will clearly show me lines that need clean up.  I'd like that better
than something that automatically reformats my code.

Cheers,
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150320/41a119ca/attachment-0001.sig>


More information about the Python-ideas mailing list