Non-Indented python
Peter Hansen
peter at engcorp.com
Wed Nov 28 18:47:58 EST 2001
Jeff Shannon wrote:
>
> Huaiyu Zhu wrote:
>
> > An easy and brutal solution is to mandate that tab is the only indent
> > charactor. A better long term solution is to write a smarter
> > python-mode for your editor.
>
> An easier and less brutal solution is to mandate that space is the only
> indent character. It's easier to teach your editor to convert tabs to
> spaces as you type them, than it is to teach every single person who might
> ever want to write a short Python script that spaces don't work.
I believe I like this approach a lot. Anyone know how to
run a script on cvs checkin to reject .py files containing
tabs?
--
----------------------
Peter Hansen, P.Eng.
peter at engcorp.com
More information about the Python-list
mailing list