Whitespace delimiters suck

Glen Starchman glen at electricorb.com
Fri Jan 28 07:47:47 EST 2000


class test:
indent
def test_function():
indent
print "foo"
dedent
dedent

or, even:

class test: indent(1) def test_function():indent(2) print "foo" dedent(1)
dedent(2)

;-)

"Eric S. Johansson" wrote:

> Paul Magwene <paul.magwene at yale.edu> wrote:
>
> > Eric S. Johansson <esj at harvee.billerica.ma.us> wrote in message news:86np80
> > [snip[
> >> anyone trying to program using speech recognition.  Why would they
> >> do this you might ask?  Probably because they were injured from
> >> programming using keyboards.
>
> > Yes, but isn't it possible to set the speech recognition software so when
> > you say "indent" it tabs right, and when you say "dedent" it tabs left?
>
> yes it is possible but then you lose the words "indent" and "dedent"
> for most uses.  One needs to be a little more careful when picking phrases
> for command use.
>
> But as it turns out, indent vs. outdent commands are among the more minor
> problems when programming by voice.  More major problems include navigation,
> high precision spacing, lots of funny characters such as . & __ and of course
> spelling.  Speech recognition is extremely good at spelling ordinary
> English words.  It gets seriously cranky when you try to force it to use
> English pronunciations with non-English spellings.
>
> a project working on developing speech driven programming technologies
> can be found at: http://ai.iit.nrc.ca/II_public/VoiceCode/
>
> --- eric
>
> --
> Eric S. Johansson    esj at inguide.com    esj at harvee.billerica.ma.us
> This message was composed almost entirely using NaturallySpeaking




More information about the Python-list mailing list