Re: New to Python: Features

From: Josiah Carlson (jcarlson_at_uci.edu)
Date: 10/06/04


Date: Wed, 06 Oct 2004 00:51:36 -0700
To: Richard Blackwood <richardblackwood@cloudthunder.com>, python-list@python.org


> Weird, I guess that means I can manipulate them in this way. Wonder if
> I can add keywords...

Nope, changing the contents of that module won't change the behavior of
the interpretor.

> ><SNIP>
> >Don't be frustrated. It is dynamically typed, but it is STRONGLY typed.
> >
> >Anything that you would want to do with a static typed language, can be
> >done with Python.
> >
> Thanks. Doesn't this make my scripts slower though?

If you want speed, pick another language. Just kidding.

In the case of speed, I find my brain speed to be a far more important
resource than processor speed; which is where Python wins hands-down for
me. I can write good Python almost as fast as I can think and type,
which gets me around 400 lines/day on average, or the equivalent of
1600-4000 lines of C/C++ or Java.

> >Pyrex can compile a subset of Python to C.
> >
> Great, I'll check that out. I guess that will allow me to extend the
> language in C.

Yes, though Pyrex is not required for C<->Python interaction. You can
do it all by hand, though SWIG and Boost Python seem to work pretty well.

> AWE-SOME Josiah. I don't know how to thank you. If I was **** off that
> might do you some good eh? Alright then. Thanks.

Firstborn? I'm just kidding of course. No, really, I plan on making my
own babies someday; with cadaver parts and lightning - no, I mean
naturally with my wife. Serves me right for catching bits of http://www.imdb.com/title/tt0368730/ today.

 - Josiah



Relevant Pages

  • Re: Python for Fortran programmers
    ... proposition for Python in the Fortran community", ... compiled language such as Fortran or C++, but I would still prefer to ... greater number of programming errors that are typically detected by a ...
    (comp.lang.fortran)
  • Re: Basic inheritance question
    ... used 'this' in C++ and Java. ... but in Python it doesn't. ... language, they would write a lot of ten liners that is changed a LOT ... Add three levels of inheritence and a couple globals and you'll find out ...
    (comp.lang.python)
  • Re: Pythons simplicity philosophy
    ... the correct Python idiom, ''.join. ... However, if you agree with Paul Graham's theories on language design, ... 'sum' itself lost substantial generality between my original ...
    (comp.lang.python)
  • Re: Is there a "Large Scale Python Software Design" ?
    ... around 20 developers, assuming colocation... ... situation with Python, yet, only with Fortran, C, C++. ... It sure beats "retrofitting" unit tests post facto. ... Jones' estimates for Java's language level; ...
    (comp.lang.python)
  • Re: About alternatives to Matlab
    ... Python will almost certainly be notably slower than moderately ... the powerful and flexible Python language. ... particularly that an OCaml user can easily switch back and forth ... The knowledge is there for the compiler to use but I don't believe any of ...
    (comp.lang.python)