Re: python code with indention

2005-02-09 Thread Sean Blakey
On Wed, 09 Feb 2005 10:10:29 -0800 (PST), Xah Lee <[EMAIL PROTECTED]> wrote: > i thought it is trivial for the Python parser to spit out a version > with matching brackets. Similarly, perhaps some opensourcing student > has modified a parser to read in a matching brackets delimited version > of Pyt

Re: python code with indention

2005-02-09 Thread Fredrik Lundh
Xah Lee wrote: >i thought it is trivial for the Python parser to spit out a version > with matching brackets. Similarly, perhaps some opensourcing student > has modified a parser to read in a matching brackets delimited version > of Python. $ python Tools\scripts\pindent.py You must specify -c(om

Re: python code with indention

2005-02-09 Thread Xah Lee
i thought it is trivial for the Python parser to spit out a version with matching brackets. Similarly, perhaps some opensourcing student has modified a parser to read in a matching brackets delimited version of Python. Xah [EMAIL PROTECTED] http://xahlee.org/PageTwo_dir/more.html -- http://ma

Re: python code with indention

2005-02-08 Thread EP
> Original Message > From: "Xah Lee" <[EMAIL PROTECTED]> > is it possible to write python code without any indentation? Perhaps our zen-like response to this question should have been: >>>pass -- http://mail.python.org/mailman/listinfo/python-list

Re: python code with indention

2005-02-08 Thread Steve Holden
Timo Virkkala wrote: Xah Lee wrote: is it possible to write python code without any indentation? 1) Why in the name of Xah Lee would you even want to? 2) If you need to ask questions this simple, are you sure you are the right person to write tutorials? 3) Do you even read the replies you get? S

Re: python code with indention

2005-02-08 Thread Caleb Hattingh
is it possible to write python code without any indentation? Xah You can, of course, write a silly little inline script without any control structures that will all line up at the left margain. So what? John Roth I agree, John, I don't get it. The vast majority of programmers (albiet from my l

Re: python code with indention

2005-02-08 Thread Timo Virkkala
Xah Lee wrote: is it possible to write python code without any indentation? 1) Why in the name of Xah Lee would you even want to? 2) If you need to ask questions this simple, are you sure you are the right person to write tutorials? 3) Do you even read the replies you get? -- Timo Virkkala -- htt

Re: python code with indention

2005-02-08 Thread Bernhard Herzog
Nick Vargish <[EMAIL PROTECTED]> writes: > "Xah Lee" <[EMAIL PROTECTED]> writes: > >> is it possible to write python code without any indentation? > > Not if Turing-completeness is something you desire. It's possible to implement a turing machine with a single list comprehension. No indentation

Re: python code with indention

2005-02-08 Thread John Roth
"Xah Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] is it possible to write python code without any indentation? Xah Depends on what you mean by "python code." If you mean using the full facilities of the language, then the answer is clearly no - indentation is not optional. You

Re: python code with indention

2005-02-08 Thread Nick Vargish
"Xah Lee" <[EMAIL PROTECTED]> writes: > is it possible to write python code without any indentation? Not if Turing-completeness is something you desire. Nick -- # sigmask || 0.2 || 20030107 || public domain || feed this to a python print reduce(lambda x,y:x+chr(ord(y)-1),' Ojdl!Wbshjt

Re: python code with indention

2005-02-07 Thread Christopher De Vries
On Mon, Feb 07, 2005 at 03:43:15PM -0500, Dan Perl wrote: > > "Xah Lee" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > is it possible to write python code without any indentation? > > I read just today in a tutorial that "Python on the other hand, does not > even allow change

Re: python code with indention

2005-02-07 Thread Dan Perl
"Xah Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > is it possible to write python code without any indentation? I read just today in a tutorial that "Python on the other hand, does not even allow changes in code's indentation". Maybe the author of that tutorial can help?

Re: python code with indention

2005-02-07 Thread Brian van den Broek
Xah Lee said unto the world upon 2005-02-07 14:39: is it possible to write python code without any indentation? Xah [EMAIL PROTECTED] http://xahlee.org/PageTwo_dir/more.html print "It would seem it is indeed possible." print print "Note: although I know this, I don't consider myself an " print "

Re: python code with indention

2005-02-07 Thread Reinhold Birkenfeld
Xah Lee wrote: > is it possible to write python code without any indentation? Yes. Reinhold -- http://mail.python.org/mailman/listinfo/python-list

python code with indention

2005-02-07 Thread Xah Lee
is it possible to write python code without any indentation? Xah [EMAIL PROTECTED] http://xahlee.org/PageTwo_dir/more.html -- http://mail.python.org/mailman/listinfo/python-list