Typed Python?

Fernando Perez fperez528 at yahoo.com
Mon Jul 5 01:59:41 CEST 2004

Nicolas Fleury wrote:

> Fernando Perez wrote:
>> I am one who would really like _optional_ static typing information to be
>> available in python, but for different reasons than the usually requested
>> here:
>> performance.  My field is scientific computing, and when you are inside a
>> simple for loop, manipulating arrays of homogeneous data, the overhead of
>> python's dynamicism is a killer.  Obviously what ends up happening is that we
> For performance, maybe Psyco is what you need, without the need fo
> static typing, but rather different compilation of code for different
> types, like with C++ templates.

Psyco sounds appealing, but it's an x86-only solution.  That won't be of much
help on a Cray or an Itanum cluster...



More information about the Python-list mailing list