Re: [Tutor] How to import this program, and other questions

2007-01-20 Thread Dick Moores
At 06:34 AM 1/20/2007, Dick Moores wrote: Tutors, I recently learned a bit about using the clnum package (see < http://calcrpnpy.sourceforge.net/clnumManual.html>), and am trying to write a set of functions that I could import to do very precise division, raising any number to any power, etc.,

Re: [Tutor] Staring myself blind

2007-01-20 Thread Bob Gailer
Toon Pieton wrote: > Hey friendly users! > > In a program I'm writing, I'm getting a Tab/space error, with the > usual 1) identation is incorrect or 2) mixes tabs and spaces. I just > can't seem to find. I tried selecting everything and untabbing it, no > workie. I searched an searched and searc

Re: [Tutor] Staring myself blind

2007-01-20 Thread Danny Yoo
> This is also a possible code smell. Unless my code estimation is way off, I > don't believe that code shouldn't be so long. Oh good grief. Forgive me for the double negative there. I meant: "I don't believe the code should be that long." ___ Tutor

Re: [Tutor] Staring myself blind

2007-01-20 Thread Danny Yoo
On Sat, 20 Jan 2007, Toon Pieton wrote: > In a program I'm writing, I'm getting a Tab/space error, with the usual > 1) identation is incorrect or 2) mixes tabs and spaces. I just can't > seem to find. I tried selecting everything and untabbing it, no workie. > I searched an searched and searc

Re: [Tutor] Redirect from a CGI script

2007-01-20 Thread Danny Yoo
On Sat, 20 Jan 2007, Python wrote: > On Sat, 2007-01-20 at 10:13 -0800, Danny Yoo wrote: >> The last line of the program looks suspicious. If it helps, let me >> rearrange the program that you've written to: >> >> ### >> print "Content-type:text/

Re: [Tutor] Redirect from a CGI script

2007-01-20 Thread Python
On Sat, 2007-01-20 at 10:13 -0800, Danny Yoo wrote: > > On Sat, 20 Jan 2007, Paulino wrote: > > > Still doesn't work. > > [some text cut] > > > I tryed all the sugestions from Andre with no succes. > > > > The cgi script as only these two lines: > > 'print "Content-type:text/html\r\n" > > '

[Tutor] Staring myself blind

2007-01-20 Thread Toon Pieton
Hey friendly users! In a program I'm writing, I'm getting a Tab/space error, with the usual 1) identation is incorrect or 2) mixes tabs and spaces. I just can't seem to find. I tried selecting everything and untabbing it, no workie. I searched an searched and searched, but couldnt find anything t

Re: [Tutor] How to import this program, and other questions

2007-01-20 Thread Dick Moores
At 10:01 AM 1/20/2007, Alan Gauld wrote: >"Dick Moores" <[EMAIL PROTECTED]> wrote > > > I've succeed with a script, clnumDivision.py, (see it > > at < http://www.rcblue.com/Python/clnumDivision_for-web.py>) > > but it is not one function, but a script with 3 functions plus a > > main(). So my first

Re: [Tutor] Redirect from a CGI script

2007-01-20 Thread Danny Yoo
On Sat, 20 Jan 2007, Paulino wrote: > Still doesn't work. [some text cut] > I tryed all the sugestions from Andre with no succes. > > The cgi script as only these two lines: > 'print "Content-type:text/html\r\n" > 'print "Location:http://python.org/\r\n\r"; Ok, good. The last li

Re: [Tutor] How to import this program, and other questions

2007-01-20 Thread Alan Gauld
"Dick Moores" <[EMAIL PROTECTED]> wrote > I've succeed with a script, clnumDivision.py, (see it > at < http://www.rcblue.com/Python/clnumDivision_for-web.py>) > but it is not one function, but a script with 3 functions plus a > main(). So my first question is how can I use this as a function

Re: [Tutor] 'elp!!!!!!!1Totally Clueless Newbie In Distress

2007-01-20 Thread Roel Schroeven
Karl Wittgenstein schreef: > Ok,got the script working almost fine now...The only problem is that the > program window closes before we can get a glimpse of the answer...I use > SPE under WinXP, and have seen this problem in every script i try... Any program running in a console window does that

Re: [Tutor] Redirect from a CGI script

2007-01-20 Thread Python
On Sat, 2007-01-20 at 15:22 +, Paulino wrote: > Still doesn't work. That's not terribly useful. What status did tamperdata report? What did you see in the browser window? Did you get a 302 status? Try (specify the right URL for your script) telnet localhost 80 GET /cgi-bi

Re: [Tutor] 'elp!!!!!!!1Totally Clueless Newbie In Distress

2007-01-20 Thread David Rock
* Karl Wittgenstein <[EMAIL PROTECTED]> [2007-01-20 13:10]: > Ok,got the script working almost fine now...The only problem is that the > program window closes before we can get a glimpse of the answer...I use SPE > under WinXP, and have seen this problem in every script i try...This is the > script

Re: [Tutor] Redirect from a CGI script

2007-01-20 Thread Paulino
Still doesn't work. This should be a server issue, once I use a very basic server: 'from BaseHTTPServer import HTTPServer 'from CGIHTTPServer import CGIHTTPRequestHandler 'HTTPServer(("localhost", 80),CGIHTTPRequestHandler).serve_forever() I tryed also with the Karrigel embeded server and not

Re: [Tutor] 'elp!!!!!!!1Totally Clueless Newbie In Distress

2007-01-20 Thread Karl Wittgenstein
Ok,got the script working almost fine now...The only problem is that the program window closes before we can get a glimpse of the answer...I use SPE under WinXP, and have seen this problem in every script i try...This is the script,as redone by a Smart Caring Dude on this list: global altura_aero

Re: [Tutor] 'elp!!!!!!!1Totally Clueless Newbie In Distress

2007-01-20 Thread Karl Wittgenstein
Sorry for the swear words... 2007/1/20, Kent Johnson <[EMAIL PROTECTED]>: Karl Wittgenstein wrote: > "input('Something') displays the prompt 'Something' and then waits for > input up to a new line. When you enter the input it will execute the > next statement which may be another input()." > It

Re: [Tutor] 'elp!!!!!!!1Totally Clueless Newbie In Distress

2007-01-20 Thread Kent Johnson
Karl Wittgenstein wrote: > "input('Something') displays the prompt 'Something' and then waits for > input up to a new line. When you enter the input it will execute the > next statement which may be another input()." > It should be so,man,I believe you.But believe me when I say that THIS > DAMN IN

Re: [Tutor] 'elp!!!!!!!1Totally Clueless Newbie In Distress

2007-01-20 Thread Karl Wittgenstein
"input('Something') displays the prompt 'Something' and then waits for input up to a new line. When you enter the input it will execute the next statement which may be another input()." It should be so,man,I believe you.But believe me when I say that THIS DAMN INTERPRETER DOES NOT ACT ACCORDINGLY!

[Tutor] How to import this program, and other questions

2007-01-20 Thread Dick Moores
Tutors, I recently learned a bit about using the clnum package (see < http://calcrpnpy.sourceforge.net/clnumManual.html>), and am trying to write a set of functions that I could import to do very precise division, raising any number to any power, etc., where the numbers can be strings in the form

Re: [Tutor] 'elp!!!!!!!1Totally Clueless Newbie In Distress

2007-01-20 Thread Kent Johnson
Karl Wittgenstein wrote: > I would also like to ask what skills you think I should develop so I can > approach programming more > ' natively', and would like to clarify the following issue: > input("Something") usually displays Something when prompting for > input;why is that the case

Re: [Tutor] 'elp!!!!!!!1Totally Clueless Newbie In Distress

2007-01-20 Thread Kent Johnson
Karl Wittgenstein wrote: > Thank you again,and once more in advance - if you would be so kind as to > point me learning material...My spare time is very short,between > graduation and work,so I would appreciate very didatic material...Thank > you guys again! Try one of the tutorials listed here

Re: [Tutor] 'elp!!!!!!!1Totally Clueless Newbie In Distress

2007-01-20 Thread Karl Wittgenstein
I would also like to ask what skills you think I should develop so I can approach programming more ' natively', and would like to clarify the following issue: input("Something") usually displays Something when prompting for input;why is that the case when I run a single line of code and isn't when

Re: [Tutor] Set changing order of items?

2007-01-20 Thread Kent Johnson
Adam Cripps wrote: > Many thanks all - I've got there in the end, using a tuple inside a > set, ditching the question number and then rendering the sum for > output in my main gui module. > > However, this does raise another issue now (which I had thought would > happen, but was putting it off unt

Re: [Tutor] 'elp!!!!!!!1Totally Clueless Newbie In Distress

2007-01-20 Thread Karl Wittgenstein
First of all let me thank you and Geoframer for your patience;it was very kind that you bothered answering this,as I realize this is very basic stuff.You people are Smart and Caring Dudes,which is a powerful combo for educators!! "Out of curiosity, what materials are you using to learn how to pro

Re: [Tutor] Set changing order of items?

2007-01-20 Thread Adam Cripps
On 1/20/07, Kent Johnson <[EMAIL PROTECTED]> wrote: > Adam Cripps wrote: > > On 1/19/07, Simon Brunning <[EMAIL PROTECTED]> wrote: > >> On 1/19/07, Adam Cripps <[EMAIL PROTECTED]> wrote: > >>> I'm adding strings to a Set to prevent duplicates. However, the > >>> strings are meant to be in the corre

Re: [Tutor] Are there any MAC OSX python users here?

2007-01-20 Thread Alan Gauld
"Tony Cappellini" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm trying to help some people run a python cmd line program on OSX. > > Would you email me off list if you have OSX and run python apps form > the cmd > line? I do. They need to start Applications-Utilities->Termi

[Tutor] python certification

2007-01-20 Thread Ketan Maheshwari
Hi All: I am looking forward to obtain some kind of certification for Python. Is there anything like that exist? Could someone give me pointers for details. Regards: Ketan ___ Tutor maillist - Tutor@python.org http://mail.python.or

[Tutor] Are there any MAC OSX python users here?

2007-01-20 Thread Tony Cappellini
I'm trying to help some people run a python cmd line program on OSX. Would you email me off list if you have OSX and run python apps form the cmd line? thanks ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor