On Sun, Jan 06, 2002 at 10:38:28PM -0800, Jacob Meuser wrote:
>people use all spaces.  Not everyone uses 8 space tab stops either.  How
>does python deal with these issues?

It's a syntax error to mix tabs and spaces in the same block of code.
Python used to try to guess and map tabs to spaces if there were both, but
because people use different tab width settings it just wasn't working.

>What about line continuation wrt
>observing an 80 character width maximum?

Newlines in parenthesis are ignored, otherwise you need to use a backslash
to continue a line.  The only place I usually end up with the backslash is
in long strings though:

   callFunc(a,
         b, c)
   print 'Results ' \
         'are:', res

>What I like about perl and *sh as compared to python is that they are more
>like C (which is where scripting languages and OSes come form), and other

*sh is like C?  Calling perl "like C" is pushing it, but shell?  I remember
an early announcement of csh where they said "it's like C" and I tried it
and couldn't imagine what they were smoking to think that.

Perl may be like C in a chunk of it's syntax, but for me it failed the
"small, simple, powerful" requirement.  C is very simple, everything makes
sense to me, and it's very easy to wrap my mind around.  I was just sick of
having to deal with strings and arrays at such a low level.

While Python doesn't *LOOK* a lot like C (it actually looks more like the
pseudo-code that a C programmer would use, IMHO), I think it's more C-like
in phylosophy.  Small, simple, powerful.

>This thread has convinced me to take a closer look at python, however.
>What's the situation with python on Win* ?

It works great under Windows, and has (apparently) quite a nice binding for
doing COM and other Windows-centric work.  If you want portability, Python
seems to be quite a bit further ahead than Perl.  The list of platforms it
runs on is quite impressive.  It's probably not on as many platforms as
Java, but it's close.  Except that there's "Jython", which is a 100% Java
implementation of Python -- so it can run anywhere that Java can.

Sean
-- 
 Follow the dream, not the competition.
                 -- Nemesis Racing Team
Sean Reifschneider, Inimitably Superfluous <[EMAIL PROTECTED]>
tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python

Reply via email to