Why would I learn Python over other languages?

Nick Smallbone nick at nick8325.freeserve.co.uk
Fri Jul 9 07:54:05 EDT 2004


"bruno modulix" <onurb at xiludom.gro> wrote in message
news:40edc84f$0$20016$636a15ce at news.free.fr...

<snip>

>
> The same in Python
>
> try:
>    for line in File("mytext.txt"):
>      print line
> except IOError, e:
>      print "Erreur", e
>

Umm, that won't work. Should be file instead of File.

> The exception handling being useless in such a context (but still
> probably mandatory in the Java version...), you can make it :
>
> for line in File("mytext.txt"):  print line
>
> If you go for low-level programming in an interpreted language, choose
> Java. If you prefer fun and productivity, you know where to find it.
>
> Consider this : starting from scratch in both languages, you'll probably
> have your application up and running in Python way before you begin to
> figure out how to write it with Java.
>
> Consider this too : There is a Java implementation of Python. So you can
> have you'r cake and eat it too. (well, almost, since you'll still have
> to learn the Java API, but what...)
>
> > and pointers to sites and docs where to start.
>
> http://www.python.org
>
> > Thank you in advance.
> HTH
> Bruno

Nick





More information about the Python-list mailing list