Re: Python newbie question re Strings and integers

2008-09-22 Thread Bruno Desthuilliers
rmac a écrit : Ah! Arghh!!! You are so correct on the usage of the ':' Python syntax is a little different from what I am used to. I don't know what you're used to, but chances are that more than the syntax differs !-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python newbie question re Strings and integers

2008-09-20 Thread Bruno Desthuilliers
rmac a écrit : the following code attempts to extract a symbol name from a string: extensionStart = int(filename.rfind('.')) rfind returns an int, so passing it to the int type constructor is useless. filenameStart = int(filename.rfind('/')) idem #print 'Extension Start - ' +

Re: Python newbie question re Strings and integers

2008-09-18 Thread rmac
Ah! Arghh!!! You are so correct on the usage of the ':' Python syntax is a little different from what I am used to. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python newbie question re Strings and integers

2008-09-18 Thread Miki
>     currentSymbol=filename[int(filenameStart),int(extensionStart)] Should be currentSymbol=filename[int(filenameStart):int(extensionStart)] (change , to :) You don't need to convert to int all the time, rfind will return an integer. Also you can use os.path for this from os.path import

Re: Python newbie question re Strings and integers

2008-09-18 Thread Christian Heimes
rmac wrote: the following code attempts to extract a symbol name from a string: extensionStart = int(filename.rfind('.')) filenameStart = int(filename.rfind('/')) #print 'Extension Start - ' + str(extensionStart) #print 'FileName Start - ' + str(filenameStart) currentSymbol=f

Python newbie question re Strings and integers

2008-09-18 Thread rmac
the following code attempts to extract a symbol name from a string: extensionStart = int(filename.rfind('.')) filenameStart = int(filename.rfind('/')) #print 'Extension Start - ' + str(extensionStart) #print 'FileName Start - ' + str(filenameStart) currentSymbol=filename[int(f

Re: python newbie - question about lexical scoping

2007-12-02 Thread Bruno Desthuilliers
Bruno Desthuilliers a écrit : (snip) > class Foo(object): > bar = {'baz':'bing'} > def __init__(self): > self.bar = self.bar Hem... Should re-read before posting :( It's of course: def __init__(self): self.bar = self.bar.copy() -- http://mail.python.org/mailman/listinfo/pyt

Re: python newbie - question about lexical scoping

2007-12-02 Thread hdante
On Dec 1, 11:31 pm, "Matt Barnicle" <[EMAIL PROTECTED]> wrote: > >> On Dec 1, 4:47 pm, Matt Barnicle <[EMAIL PROTECTED]> wrote: > > aye yaye aye... thanks for the pointers in the right direction.. i > > fiddled around with the code for a while and now i've reduced it to the > > *real* issue... i

Re: python newbie - question about lexical scoping

2007-12-02 Thread Bruno Desthuilliers
Matt Barnicle a écrit : >>>On Dec 1, 4:47 pm, Matt Barnicle <[EMAIL PROTECTED]> wrote: >> >>aye yaye aye... thanks for the pointers in the right direction.. i >>fiddled around with the code for a while and now i've reduced it to the >>*real* issue... i have a class dict variable that apparently

Re: python newbie - question about lexical scoping

2007-12-02 Thread Hrvoje Niksic
"Matt Barnicle" <[EMAIL PROTECTED]> writes: >> i have a class dict variable that apparently holds its value across >> instantiations of new objects.. [...] > ok, i see... python has a concept i'm not accustomed to I don't doubt that Python managed to confuse you here, but in this case there is n

Re: python newbie - question about lexical scoping

2007-12-01 Thread Matt Barnicle
>> On Dec 1, 4:47 pm, Matt Barnicle <[EMAIL PROTECTED]> wrote: > aye yaye aye... thanks for the pointers in the right direction.. i > fiddled around with the code for a while and now i've reduced it to the > *real* issue... i have a class dict variable that apparently holds its > value across in

Re: python newbie - question about lexical scoping

2007-12-01 Thread Matt Barnicle
>> On Dec 1, 4:47 pm, Matt Barnicle <[EMAIL PROTECTED]> wrote: > aye yaye aye... thanks for the pointers in the right direction.. i > fiddled around with the code for a while and now i've reduced it to the > *real* issue... i have a class dict variable that apparently holds its > value across in

Re: python newbie - question about lexical scoping

2007-12-01 Thread Tim Roberts
Matt Barnicle <[EMAIL PROTECTED]> wrote: >hi everyone.. i've been chugging along learning python for a few months >now and getting answers to all needed questions on my own, but this one >i can't figure out nor can i find information on the internet about it, >possibly because i don't understa

Re: python newbie - question about lexical scoping

2007-12-01 Thread Matt Barnicle
> On Dec 1, 4:47 pm, Matt Barnicle <[EMAIL PROTECTED]> wrote: >> hi everyone.. i've been chugging along learning python for a few months >> now and getting answers to all needed questions on my own, but this one >> i can't figure out nor can i find information on the internet about it, >> possibly

Re: python newbie - question about lexical scoping

2007-12-01 Thread Matt Barnicle
> On Dec 1, 4:47 pm, Matt Barnicle <[EMAIL PROTECTED]> wrote: >> hi everyone.. i've been chugging along learning python for a few months >> now and getting answers to all needed questions on my own, but this one >> i can't figure out nor can i find information on the internet about it, >> possibly

Re: python newbie - question about lexical scoping

2007-11-30 Thread John Machin
On Dec 1, 4:47 pm, Matt Barnicle <[EMAIL PROTECTED]> wrote: > hi everyone.. i've been chugging along learning python for a few months > now and getting answers to all needed questions on my own, but this one > i can't figure out nor can i find information on the internet about it, > possibly becau

python newbie - question about lexical scoping

2007-11-30 Thread Matt Barnicle
hi everyone.. i've been chugging along learning python for a few months now and getting answers to all needed questions on my own, but this one i can't figure out nor can i find information on the internet about it, possibly because i don't understand the right words to type into google.. i ha

Re: handling tabular data in python--newbie question

2007-08-29 Thread hyena
Thanks Bruno and Steve for the quick answer! >What make you think such a thing ? I am also using R and java from time to time, and think it is very covinient that in R tables are handled as matrixs or data frames. Thus I expect python has something similiar. :) And I went for Steve's first sugg

Re: handling tabular data in python--newbie question

2007-08-29 Thread Steve Holden
hyena wrote: > Hi, > Just jump in python few days. I am wondering how to store and index a > table in python effectively and easily.I think the basic data types are not > very straight foward to handle a table (eg, from csv or data base.) > > I have a csv file, the first row of it is column

Re: handling tabular data in python--newbie question

2007-08-29 Thread Bruno Desthuilliers
hyena a écrit : > Hi, > Just jump in python few days. I am wondering how to store and index a > table in python effectively and easily.I think the basic data types are not > very straight foward to handle a table (eg, from csv or data base.) What make you think such a thing ? > I have a csv

handling tabular data in python--newbie question

2007-08-29 Thread hyena
Hi, Just jump in python few days. I am wondering how to store and index a table in python effectively and easily.I think the basic data types are not very straight foward to handle a table (eg, from csv or data base.) I have a csv file, the first row of it is column names and the rest rows

Re: Fortran vs Python - Newbie Question

2007-03-28 Thread Mel Wilson
Terry Reedy wrote: > "Tim Roberts" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > | Once upon a time, > | Basic enthusiasts would have used the word "tokenized" to describe .pyc > files. > > Perhaps, but they would, I think, have been wrong. Tokenized Basic to the > best of my

Re: Fortran vs Python - Newbie Question

2007-03-28 Thread Terry Reedy
"Tim Roberts" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Well, I'm being a bit argumentative here, but it's hard to deny that the | use of "compiled" in the context of .pyc (or .javac) is very different from | the use of "compiled" in the context of running gcc. Besides the f

Re: Fortran vs Python - Newbie Question

2007-03-28 Thread Michael Tobis
I feel obligated to fan the flames a bit by pointing to http://www.fortranstatement.com/ a site which advocates discontinuing development of Fortran and does a good job of summarizing the problems with the contemporary development of that language. I am not convinced that a new high performance la

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Alex Gibson
"Beliavsky" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mar 26, 10:16 am, [EMAIL PROTECTED] (Cameron Laird) wrote: >> In article >> <[EMAIL PROTECTED]>,[EMAIL PROTECTED] >> <[EMAIL PROTECTED]> wrote: > >> >Is there a mac version?? >> >Thanks >> >Chris >> >> Yes. >> >> Sever

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Tim Roberts
Steven D'Aprano <[EMAIL PROTECTED]> wrote: >On Mon, 26 Mar 2007 06:40:49 -0700, kyosohma wrote: > >> Fortran also appears to be a compiled language, whereas Python is an >> interpreted language. > >Sheesh. Do Java developers go around telling everybody that Java is an >interpreted language? I don'

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Steven D'Aprano
On Tue, 27 Mar 2007 12:11:01 -0600, Erik Johnson wrote: > But seriously... I'm not a language or architecture guru. Is there any > real difference between a JVM and an interpreter? I mean, I have some > general feel that bytecode is a lower-level, more direct and more efficient > thing to be

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Beliavsky
On Mar 27, 6:32 am, [EMAIL PROTECTED] (Cameron Laird) wrote: > In article <[EMAIL PROTECTED]>,Beliavsky <[EMAIL PROTECTED]> wrote: > > . > . > . > > > > >Your experience with Fortran is dated -- see below. > > >> I'll be more c

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Mark Morss wrote: > Well, the discussion was about Python vs. Fortran, and Pyrex, as I > understand it, is a tool for linking C to Python. I think it's more than that. It's more a subset of Python with a little static typing. Ciao, Marc 'BlackJack' Rintsch -- ht

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Erik Johnson
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sheesh. Do Java developers go around telling everybody that Java is an > interpreted language? I don't think so. > > What do you think the "c" in ".pyc" files stands for? "Cheese"? On the contrary... Sun is very care

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Mark Morss
On Mar 27, 12:55 pm, Jaap Spies <[EMAIL PROTECTED]> wrote: > Mark Morss wrote: > > > Maybe somebody reading this will be able to convince me to look again > > at Numpy/Scipy, but for the time being I will continue to do my > > serious numerical computation in Fortran. > > What I am missing in this

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Jaap Spies
Mark Morss wrote: > > Maybe somebody reading this will be able to convince me to look again > at Numpy/Scipy, but for the time being I will continue to do my > serious numerical computation in Fortran. > What I am missing in this discussion is a link to Pyrex to speed up Python: Pyrex is almost

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Mark Morss
On Mar 26, 12:59 pm, "Erik Johnson" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > OK... > > I've been told that Both Fortran and Python are easy to read, and are > > quite useful in creating scientific apps for the number crunching, but > > then

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Beliavsky <[EMAIL PROTECTED]> wrote: . . . >Your experience with Fortran is dated -- see below. > >> >> I'll be more clear: Fortran itself is a distinguished >> language with many meritorious im

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Chris Smith
Carl Banks wrote: > On Mar 26, 10:11 am, "Andy Dingley" <[EMAIL PROTECTED]> wrote: > >>On 26 Mar, 14:20, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >> >> >>>what are the advantages of using Python for >>>creating number crunching apps over Fortran?? >> >>If you have to ask, you've not experien

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Alex Martelli
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I've been told that Both Fortran and Python are easy to read, and are > quite useful in creating scientific apps for the number crunching, but Incidentally, and a bit outside what you asked: if your "number crunching" involves anything beyond linear

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Alex Martelli
Cameron Laird <[EMAIL PROTECTED]> wrote: ... > >If you're just trying to learn and check things out, it might be better > >to get a more recent Python from python.org (2.5 or 2.4.4) and the > >various other packages as and when you need them (you can use the > >MacEnthon list as a guide:-). You

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Beliavsky
On Mar 26, 10:16 am, [EMAIL PROTECTED] (Cameron Laird) wrote: > In article <[EMAIL PROTECTED]>,[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >Is there a mac version?? > >Thanks > >Chris > > Yes. > > Several, in fact--all available at no charge. The Python > world is different from what experienc

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Beliavsky
On Mar 26, 10:31 am, "Carl Banks" <[EMAIL PROTECTED]> wrote: > > You can write programs in Python that do usefully complicated things, > > and you can get them to work in a reasonable time. Fortran can't do > > this, for anything more than the trivial. "Classic" Fortran tasks of > > the past are

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Beliavsky
On Mar 26, 9:06 am, stef <[EMAIL PROTECTED]> wrote: > As said by others, "Portability, scalability & RAD" as an advantage of > Python are probably far more important. All of those claimed advantages can be debated, although they may exist for some tasks. (1) Portability. Fortran has been run on

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Steven D'Aprano
On Mon, 26 Mar 2007 15:53:56 -0700, sturlamolden wrote: > Python is a very high-level language. That means there are certain > things that put constraint on the attained speed. Most importantly: > keep the number of interpreter evals as scarce as possible. If you > make a for loop, the interpreter

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Beliavsky
On Mar 26, 8:42 am, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > You can get the speed of fortran in Python by using libraries like > Numeric without losing the readability of Python. Numeric and Numpy will faster than raw Python for array operations, but I don't think they will match well-

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread sturlamolden
On Mar 26, 7:13 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thanks you all for giving a little insight into what Python can > actually do, I think I've read enough to convince me that Python is > generally a very flexible, fast, powerful language that can be used in > a wide variety of ap

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Beliavsky
On Mar 26, 8:40 am, [EMAIL PROTECTED] wrote: > On Mar 26, 8:20 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > OK... > > I've been told that Both Fortran and Python are easy to read, and are > > quite useful in creating scientific apps for the number crunching, but > > then Python is a tad

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Tal Einat
On Mar 26, 3:20 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > OK... > I've been told that Both Fortran and Python are easy to read, and are > quite useful in creating scientific apps for the number crunching, but > then Python is a tad slower than Fortran because of its a high level > langua

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Steven D'Aprano
On Mon, 26 Mar 2007 06:40:49 -0700, kyosohma wrote: > Fortran also appears to be a compiled language, whereas Python is an > interpreted language. Sheesh. Do Java developers go around telling everybody that Java is an interpreted language? I don't think so. What do you think the "c" in ".pyc" fi

RE: Fortran vs Python - Newbie Question

2007-03-26 Thread Sells, Fred
: python-list@python.org Subject: Fortran vs Python - Newbie Question OK... I've been told that Both Fortran and Python are easy to read, and are quite useful in creating scientific apps for the number crunching, but then Python is a tad slower than Fortran because of its a high level lan

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread [EMAIL PROTECTED]
On 26 Mar, 17:59, "Erik Johnson" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > OK... > > I've been told that Both Fortran and Python are easy to read, and are > > quite useful in creating scientific apps for the number crunching, but > > then Pyt

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Erik Johnson
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > OK... > I've been told that Both Fortran and Python are easy to read, and are > quite useful in creating scientific apps for the number crunching, but > then Python is a tad slower than Fortran because of its a high level > language nat

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Carl Banks
On Mar 26, 9:42 am, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On 26 Mar 2007 06:20:32 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > >OK... > >I've been told that Both Fortran and Python are easy to read, and are > > Python is hugely easier to read. > > >quite useful in creating s

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Robert Kern
Alex Martelli wrote: > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >... >>> So I'ld suggest to start with downloading the Enthought edition of Python, >>> and you can judge for yourself within 10 minutes, >>> if it's fast enough. >>> >>> cheers, >>> Stef Mientki >> Is there a mac version?? >

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alex Martelli <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > ... >> > So I'ld suggest to start with downloading the Enthought edition of Python, >> > and you can judge for yourself within 10 minutes, >> > if it's fast enough. >> > >> > c

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: . . . >Is there a mac version?? >Thanks >Chris > Yes. Several, in fact--all available at no charge. The Python world is different from what experie

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: . . . >> You can get the speed of fortran in Python by using libraries like >> Numeric without losing the readability of Python. >> > >Can you back th

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > On Mar 26, 8:20 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >> OK... >> I've been told that Both Fortran and Python are easy to read, and are >> quite useful in creating scientific apps for the number crunching, but >> then Python is a tad slower than Fortran be

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread sturlamolden
On Mar 26, 3:20 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I've been told that Both Fortran and Python are easy to read, and are > quite useful in creating scientific apps for the number crunching, but > then Python is a tad slower than Fortran because of its a high level > language natu

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Carl Banks
On Mar 26, 10:11 am, "Andy Dingley" <[EMAIL PROTECTED]> wrote: > On 26 Mar, 14:20, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > what are the advantages of using Python for > > creating number crunching apps over Fortran?? > > If you have to ask, you've not experienced enough Fortran to know

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Ramon Diaz-Uriarte
On 26 Mar 2007 06:20:32 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > OK... > I've been told that Both Fortran and Python are easy to read, and are > quite useful in creating scientific apps for the number crunching, but > then Python is a tad slower than Fortran because of its a high level

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: >On 26 Mar 2007 06:20:32 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >>OK... >>I've been told that Both Fortran and Python are easy to read, and are > >Python is hugely easier to read. > >>quite useful in crea

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Alex Martelli
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: ... > > So I'ld suggest to start with downloading the Enthought edition of Python, > > and you can judge for yourself within 10 minutes, > > if it's fast enough. > > > > cheers, > > Stef Mientki > > Is there a mac version??

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread irstas
On Mar 26, 4:47 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > You can get the speed of fortran in Python by using libraries like > > Numeric without losing the readability of Python. > > Can you back this up with some source?? > Chris If you execute one command in Python which tells a sup

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread [EMAIL PROTECTED]
On 26 Mar, 15:06, stef <[EMAIL PROTECTED]> wrote: > >> You can get the speed of fortran in Python by using libraries like > >> Numeric without losing the readability of Python. > > > Can you back this up with some source?? > > Chris > > Is this really the most important issue in your choice ? > > A

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Andy Dingley
On 26 Mar, 14:20, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > what are the advantages of using Python for > creating number crunching apps over Fortran?? If you have to ask, you've not experienced enough Fortran to know its sheer horror. You can write programs in Python that do usefully com

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread stef
> > >> You can get the speed of fortran in Python by using libraries like >> Numeric without losing the readability of Python. >> >> > > Can you back this up with some source?? > Chris > > Is this really the most important issue in your choice ? As said by others, "Portability, scalabi

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Jean-Paul Calderone
On 26 Mar 2007 06:47:18 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >On Mar 26, 2:42 pm, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: >> On 26 Mar 2007 06:20:32 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >> >> >OK... >> >I've been told that Both Fortran and Python are easy to

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread [EMAIL PROTECTED]
On Mar 26, 2:42 pm, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On 26 Mar 2007 06:20:32 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > >OK... > >I've been told that Both Fortran and Python are easy to read, and are > > Python is hugely easier to read. > > >quite useful in creating s

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Bart Ogryczak
On Mar 26, 3:20 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > OK... > I've been told that Both Fortran and Python are easy to read, and are > quite useful in creating scientific apps for the number crunching, but > then Python is a tad slower than Fortran because of its a high level > langua

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Michele Simionato
On Mar 26, 9:20 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > OK... > I've been told that Both Fortran and Python are easy to read, and are > quite useful in creating scientific apps for the number crunching, but > then Python is a tad slower than Fortran because of its a high level > langua

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread kyosohma
On Mar 26, 8:20 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > OK... > I've been told that Both Fortran and Python are easy to read, and are > quite useful in creating scientific apps for the number crunching, but > then Python is a tad slower than Fortran because of its a high level > langua

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Jean-Paul Calderone
On 26 Mar 2007 06:20:32 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >OK... >I've been told that Both Fortran and Python are easy to read, and are Python is hugely easier to read. >quite useful in creating scientific apps for the number crunching, but >then Python is a tad slower than Fo

Fortran vs Python - Newbie Question

2007-03-26 Thread [EMAIL PROTECTED]
OK... I've been told that Both Fortran and Python are easy to read, and are quite useful in creating scientific apps for the number crunching, but then Python is a tad slower than Fortran because of its a high level language nature, so what are the advantages of using Python for creating number cru

Re: Python Newbie question

2006-10-13 Thread Larry Bates
[EMAIL PROTECTED] wrote: > Is it possible to combine or bundle separate .exe files into the > compiled python .exe when using py2exe? If possible, how would that be > described within setup.py . and how/where would I specify such .exe > should be ran first in the pre-compiled scripts? My goal i

Python Newbie question

2006-10-12 Thread insideview
Is it possible to combine or bundle separate .exe files into the compiled python .exe when using py2exe? If possible, how would that be described within setup.py . and how/where would I specify such .exe should be ran first in the pre-compiled scripts? My goal is to get the total package down t

Re: python newbie question

2006-02-26 Thread Christoph Haas
On Sunday 26 February 2006 22:44, [EMAIL PROTECTED] wrote: > I am new to python, can you please tell me how can I convert my python > script into an executable on linux? > i.e. instead of typing 'python myscript.py abc', I just need to do > 'myscript.py abc'? Use the shebang syntax. Use this as a

Re: python newbie question

2006-02-26 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > I am new to python, can you please tell me how can I convert my python > script into an executable on linux? > i.e. instead of typing 'python myscript.py abc', I just need to do > 'myscript.py abc'? > and how can I get the input argument from my script , in my example,

python newbie question

2006-02-26 Thread ken . carlino
I am new to python, can you please tell me how can I convert my python script into an executable on linux? i.e. instead of typing 'python myscript.py abc', I just need to do 'myscript.py abc'? and how can I get the input argument from my script , in my example, how can I read 'abc'? Thank you. --