[Tutor] Indentation Issue and Blind People

jim stockford jim at well.com
Fri Nov 30 20:34:05 CET 2007


    you might consider keeping your code at two
spaces and when/if the need arises to share
your code, write a little filter program that
translates the two-space indents to four.
    very interesting idea to play piano notes.
how'd you do that?


On Nov 30, 2007, at 10:58 AM, james.homme at highmark.com wrote:

>
> Hi,
> I am just getting started with Python, as in learning the syntax for 
> basic
> statements and how to write functions and all. Here is my question.
> Usually, if you are a person who is blind, you run the risk of having
> trouble keeping your code indented properly. There are ways to do it, 
> but
> they are often time-consuming. Can I get a program that I can use that 
> will
> take my Python code as input and make sure it is indented properly? Or,
> does Python let you write code, compile it, and indent it later? For 
> anyone
> who may be interested, I have created a scheme for my screen reader 
> that
> plays piano notes at indentations of two space increments. I made the 
> code
> indent that way because four spaces is a lot to have on a braille 
> display.
> If four spaces is more acceptable, I could globally replace two spaces 
> with
> four.
>
> Thanks.
>
> Jim
>
> James D Homme, , Usability Engineering, Highmark Inc.,
> james.homme at highmark.com, 412-544-1810
>
> "Never doubt that a thoughtful group of committed citizens can change 
> the
> world.  Indeed, it is the only thing that ever has." -- Margaret Mead
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>



More information about the Tutor mailing list