Re: Looking At Python Programming

  • From: Alex Hall <mehgcap@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Sat, 4 Jun 2011 18:08:50 -0400

This is why I am a huge fan of using the sounds4stuff jaws scheme with
your favorite text editor, assuming you are using jaws. It plays piano
notes for each indentation level, and once you settle on the
indentation you like, you can change the scheme. By default it plays
notes every two spaces indented, so two spaces gets a C note and four
gets a D, but I much prefer single-space indentation, so I set it to
play C for one space, D for 2, E for 3, and so on. I can now always
know where I am in terms of indentation, and listening for oddities is
a breeze.

On 6/4/11, David Tseng <davidct1209@xxxxxxxxx> wrote:
> First, usually it helps to also include the output of the console as
> it's helpful to get the line number the interpreter flagged.
>
> With that said, Edit.py should not have any indents since you're not
> defining any block structures like functions or conditionals.  You've
> got a +1 indent on the "script, ... = ..." line and a +2 indent
> thereafter.
>
>
>
> As for args.py, you're indentation's entirely off.  0 indent for "def
> ..." (the function keyword in python), and +4 (or whatever you want
> just stay consistent) for statements within functions.
>
> As a final aside, when I first learned python a while back when in
> undergrad, I found it immensely helpful to fire up the interactive
> python shell and start typing.  This includes function definitions,
> calling function definitions, etc.  It's a huge perk/advantage of
> using an interpreted language like python.  Plus, you get immediate
> reinforcement on your correctness of syntax/understanding.  /off
> soapbox.
>
>
>
> On 6/4/11, Harmony Neil <harmonylm@xxxxxxxxxxxxxx> wrote:
>> I can't remember if attachments are permitted on this list or not, so I
>> apologize in advance. I've been looking at functions and stuff in the
>> python
>> tutorials and although I copied them character for character, as far as I
>> know, I get an error saying that there is an unexpected indentation. Would
>> anyone be able to let me know if you find any problems with the
>> indentation?
>>
>> Thanks,
>>
>> Harmony.
>>
>>
> __________
> View the list's information and change your settings at
> //www.freelists.org/list/programmingblind
>
>


-- 
Have a great day,
Alex (msg sent from GMail website)
mehgcap@xxxxxxxxx; http://www.facebook.com/mehgcap
__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: