[Tutor] Indentation Issue and Blind People

Ricardo Aráoz ricaraoz at gmail.com
Mon Dec 3 11:57:21 CET 2007


jim stockford wrote:
>     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?
> 

Why not just use Tabs. Just one character, might be easy on Braille
(know nothing about it), and almost every editor will convert from tabs
to any quantity of spaces you require. Just modify your program to play
the piano notes on tabs and you're done.

> 
> 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


More information about the Tutor mailing list