Re: [Tutor] problems with running IDLE under Windows 95

2007-05-09 Thread Alexander Kapshuk
Hello to All of the Python Community, I'd like to thank all those who replied to my last email about Python not installing under Windows 95. That problem's been overcome. Although, after installing Python 2.5.1 I ran into another difficulty. IDLE wouldn't start. Another thing I did

Re: [Tutor] Running and passing variables to/from Fortran

2007-05-09 Thread Bob Gailer
John Washakie wrote: > I have access to the source code. Did you tell us why you want to keep the code in FORTRAN? Would converting it to Python solve the issue? -- Bob Gailer 510-978-4454 ___ Tutor maillist - Tutor@python.org http://mail.python.o

Re: [Tutor] Type Conversion

2007-05-09 Thread Rikard Bosnjakovic
On 5/9/07, Alan Gauld <[EMAIL PROTECTED]> wrote: > Please don;t hijack a thread to ask something unrelkated. > Start a new threead it helps keep things clear and makkes > it easier to find responses later. What do you mean by hijack a thread? Her subject "Type conversion" is the only occurence i

Re: [Tutor] Alright... I'm new...

2007-05-09 Thread Eike Welk
The attachment is also wrong! Delete the first character ('>') from the program and it will be syntactically correct. The addition of the '>' character is a bug in my mail program (KMail) I think. It is probably a remnant of the first two characters of a UTF8 file. Eike.

Re: [Tutor] Alright... I'm new...

2007-05-09 Thread Eike Welk
Excuse me, there is one character too much in the example program. This time I send it as an attachment. Eike. test.py Description: application/python ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Queueing

2007-05-09 Thread Kent Johnson
Paulo Nuin wrote: > Hi Everyone > > I need to a write a script that would do a queuing job on a cluster > running openMosix Linux. I have checked the Queue module and that part I > can say it is covered. My problem regards on thecode to check if the > process has ended. As some most of the jobs

Re: [Tutor] Alright... I'm new...

2007-05-09 Thread Eike Welk
On Thursday 10 May 2007 00:13, Jeff Molinari wrote: > I know I'm in the very early stages of programming. I'm just a > big newb. But it just isn't clicking. I understand, as stated > before, what I've been taught. But I don't understand how it could > all come together to create a program. I unde

Re: [Tutor] Queueing

2007-05-09 Thread Alan Gauld
"Paulo Nuin" <[EMAIL PROTECTED]> wrote > I need to a write a script that would do a queuing job on a cluster > running openMosix Linux. I have checked the Queue module and that > part I > can say it is covered. My problem regards on thecode to check if the > process has ended. While you may wel

Re: [Tutor] Alright... I'm new...

2007-05-09 Thread Alan Gauld
"Jeff Molinari" <[EMAIL PROTECTED]> wrote > when I think programs or software I think interactivity. > I'm just not sure where this is leading me. > > I want to creat a fully functional program that actually > does something USEFUL. It doesn't have to be big. > But it has to actually do so

Re: [Tutor] Another string-manipulation question

2007-05-09 Thread Kent Johnson
Alan Gilfoy wrote: > Given a string, how would I?: > 2. Make sure that there are no symbols (non-letter, non-number) in the > string, and, if one is found, remove it. > > Pseudocode time, as to a potential approach- > > for each character in the string: > if character not in > "abcdefgh

Re: [Tutor] Alright... I'm new...

2007-05-09 Thread John Washakie
> > I want to create a fully functional program that actually does something > USEFUL. And just what would that be? Ask yourself that.. then perhaps folks on the list could guide you in the right direction... -j ___ Tutor maillist - Tutor@python.org h

[Tutor] Queueing

2007-05-09 Thread Paulo Nuin
Hi Everyone I need to a write a script that would do a queuing job on a cluster running openMosix Linux. I have checked the Queue module and that part I can say it is covered. My problem regards on thecode to check if the process has ended. As some most of the jobs would be run in different no

[Tutor] Alright... I'm new...

2007-05-09 Thread Jeff Molinari
I've always been interested in learing to write my own programs but I never new where to start. Now I heard python is not only powerful but easy to use therefor making it good for begginers. So I looked it up, Downloaded python 2.5, I'm just in the middle of the first part of the first chapter (

[Tutor] Lexer implementation

2007-05-09 Thread Jason Doege
Hi All, Is there a classical way to implement a lexer in Python without using a parser toolkit? Something like the lexer MJD illustrates in Higher Order Perl, section 8.1.2. It's even better if it can act on a stream instead of a string. Best regards, Jason Doege _

Re: [Tutor] Another string-manipulation question

2007-05-09 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alan Gilfoy > Sent: Wednesday, May 09, 2007 2:42 PM > To: tutor@python.org > Subject: [Tutor] Another string-manipulation question > > Given a string, how would I?: > > 1. Make sure only the first

Re: [Tutor] Running and passing variables to/from Fortran

2007-05-09 Thread John Washakie
I have access to the source code. And I probably could pass the data to stdout, so maybe .popen would work! I'll have a look... thanks! ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Another string-manipulation question

2007-05-09 Thread Alan Gilfoy
Given a string, how would I?: 1. Make sure only the first letter string_name[0], is capitalized. This would involve using string_name.lower() to lowercase everything else, but how do I use .upper(), or some other method, to capitalize only the first character? 2. Make sure that there are no s

Re: [Tutor] Python fast enough for ad server?

2007-05-09 Thread jim stockford
there's also the question of the delivery architecture: if there are multiple machines in a clustered configuration, even something such as DNS round robin, then improving performance is a matter of throwing machines at the front end. On May 9, 2007, at 1:17 PM, Alan Gauld wrote: > > "OkaMth

Re: [Tutor] Assembling multiple strings into one

2007-05-09 Thread Kent Johnson
Alan Gilfoy wrote: > I have a program producing a list of multiple strings. > The amount of strings in the list varies. > I want to assemble a string that is: > > list item 0 + space + list item 1 + space, > and so on, going through every string in the list. ' '.join(myList) Kent ___

Re: [Tutor] Python fast enough for ad server?

2007-05-09 Thread Alan Gauld
"OkaMthembo" <[EMAIL PROTECTED]> wrote > I need to write an ad-serving application and i'm > using Win XP as my dev platform. The real issue is what are you using for your deployment platform,. If its Win XP then Python is probably fast enough since XP cannot handle huge volumes anyway. If

[Tutor] Assembling multiple strings into one

2007-05-09 Thread Alan Gilfoy
I have a program producing a list of multiple strings. The amount of strings in the list varies. I want to assemble a string that is: list item 0 + space + list item 1 + space, and so on, going through every string in the list. -- "Computers were the first God-Satan collaboration project." "Blind

Re: [Tutor] Type Conversion

2007-05-09 Thread Alan Gauld
"Jessica Brink" <[EMAIL PROTECTED]> wrote > I am doing a simple program that takes input from the user Please don;t hijack a thread to ask something unrelkated. Start a new threead it helps keep things clear and makkes it easier to find responses later. Mike has answered your question in th

Re: [Tutor] canvas -> CLASSES

2007-05-09 Thread Alan Gauld
"Teresa Stanton" <[EMAIL PROTECTED]> wrote > CLASSES: This is where I start getting confused. No kidding! :-) > put it into a class, and for some reason it all starts to get > jumbled here, > which it shouldn't because I write in C++. C++ OOP and Python are significantly different and some of

Re: [Tutor] Type Conversion

2007-05-09 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Jessica Brink > Sent: Wednesday, May 09, 2007 12:38 PM > To: Teresa Stanton; Python Tutor > Subject: [Tutor] Type Conversion > > I am doing a simple program that takes input from the user (a > t

[Tutor] Type Conversion

2007-05-09 Thread Jessica Brink
I am doing a simple program that takes input from the user (a temp. in degrees Celsius) and converts it to a temperature in Fahrenheit. The following program works: def conversion (): C = input ("Enter the temperature in degrees Celcius:\n") F = (9.0 / 5.0) * C + 32 print F conve

Re: [Tutor] Python fast enough for ad server?

2007-05-09 Thread Eric Walstad
Hey OkaMthenbo, OkaMthembo wrote: > Hi guys, > > I need to write an ad-serving application and i'm using Win XP as my dev > platform. Naturally, i want it to be as painless as possible and i was > thinking of writing it 100% in Python. However, i have not written any > big apps in the language an

Re: [Tutor] canvas -> CLASSES

2007-05-09 Thread Teresa Stanton
CLASSES: This is where I start getting confused. I've re-written the maze, per the guidance of John Fouhy (by the way, pretty cool!). Wish I had thought of doing it that way to begin with, lol. In any case, I'm trying to put it into a class, and for some reason it all starts to get jumbled he

[Tutor] Python fast enough for ad server?

2007-05-09 Thread OkaMthembo
Hi guys, I need to write an ad-serving application and i'm using Win XP as my dev platform. Naturally, i want it to be as painless as possible and i was thinking of writing it 100% in Python. However, i have not written any big apps in the language and i wonder if Python would have the performanc