Newbie: White space

Preston Landers prestonlanders at my-deja.com
Mon Apr 10 11:14:10 EDT 2000


Unlike most programming languages, whitespace is crucial to Python.  You
will not understand anything in Python until you run and go read the
tutorial:

http://www.python.org/doc/current/tut/tut.html

It's an easy read!

---Preston

In article <8bc1oo$qjc$1 at yeppa.connect.com.au>,
  "Ryan Abrahams" <abrahams_nospam_ at wizard.net.au> wrote:
> I am new to python, I am actualy using it for rendering (via the
Lightflow
> Python Module, at www.lightflowtech.com (and no I don't work for
them)) and
> what I wanted to know was does Python check white space, because I had
some
> code like this:
>
> s.lightBegin()
>     s.lightOn( Sunlight )
>     Surface2 = s.newMaterial("standard", [ "ka", vector3( 0.5, 0.5,
0.0 ),
> "kc", vector3( 0.4, 0.2, 0.0 ), "kd", 0.5, "km", 0.1 ] )
> s.lightEnd()
>
> and Python chucks a spit at the s.lightOn( Sunlight ) line. Now I have
been
> trying to figure it out, maybe python does not support whitespace,
because
> changing the code to
>
> s.lightBegin()
> s.lightOn( Sunlight )
> Surface2 = s.newMaterial("standard", [ "ka", vector3( 0.5, 0.5, 0.0 ),
"kc",
> vector3( 0.4, 0.2, 0.0 ), "kd", 0.5, "km", 0.1 ] )
> s.lightEnd()
>
> and compiling it works perfectly. So is it Python that does not
support hte
> white space, or perhaps the module I am including.
>
> Thanks
> Ryan
>
>

--
|| Preston Landers <prestonlanders at my-deja.com> ||


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list