Python code-writing for the blind. Was (Re: newbie: stani's pythoneditor if-else)

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Thu Sep 13 01:51:04 EDT 2007


En Tue, 11 Sep 2007 14:28:35 -0300, Hamilton, William   
<whamil1 at entergy.com> escribi�:

> Can you set SPE to use a single space rather than the typical four
> spaces?  Python should accept it just fine.  You'll still have problems
> reading other people's code.  Maybe you can write a quick script that
> converts code down to one-space indents.

The existing demo script reindent.py (in tools/Scripts) does exactly that,  
but using 4 spaces. Just replace the number 4 in its source code by a  
variable name (it occurs only twice) and it's done.

-- 
Gabriel Genellina




More information about the Python-list mailing list