Re: [Tutor] File upload from python shell

2007-10-14 Thread Alan Gauld
"Paulino" <[EMAIL PROTECTED]> wrote > How can I upload a file from python? Just to be clear. You want to send a file from your computer to another computer? The simplest way to do that is using ftp. There is an ftp module. However for that to work the receiving computer needs to be running an ft

Re: [Tutor] 2 problems in a small script

2007-10-14 Thread Dick Moores
At 06:48 PM 10/12/2007, Ian Witham wrote: On 10/12/07, Dick Moores <[EMAIL PROTECTED]> wrote: Please see the code and it's output here: < http://www.rcblue.com/Python/buggy_For_Web.py> I'm attempting to eliminate the elements (strings) of lstA that are not well-formed in that they contain

Re: [Tutor] File upload from python shell

2007-10-14 Thread David Clymer
On Sun, 2007-10-14 at 01:42 +0100, Paulino wrote: > Hello! > > > How can I upload a file from python? > > If it is a form to fill with values it's simple: > > > urlopen("http://site.com/action?key1=value1;key2=value2";) and I get the > form filled. > > > What about uploading a file programm

Re: [Tutor] Variables in workspace

2007-10-14 Thread Eli Brosh
Many thanks to Bob and Kent and all the good people in the tutor forum. The dir() and del work really well ! Eli מאת: bob gailer [mailto:[EMAIL PROTECTED] נשלח: ש 10/13/2007 17:35 אל: Kent Johnson עותק לידיעה: Eli Brosh; tutor@python.org נושא: Re: [Tutor] Variab

Re: [Tutor] upgrading Python

2007-10-14 Thread LandSurveyor
Thanks for the 'meaty' response. Therein was the nitty-gritty I could actually use. Learned a bunch too...had never used a link before. Didn't know why I would want to. BTW, I met with HUGE success! Anyway...my approach was to take the road of a user (with my own '/home' account, and no SU

Re: [Tutor] File upload from python shell

2007-10-14 Thread Luke Paireepinart
Paulino wrote: > Hello! > > > How can I upload a file from python? > > If it is a form to fill with values it's simple: > > > urlopen("http://site.com/action?key1=value1;key2=value2";) and I get the > form filled. > Only if the form uses the GET method. If your file upload form used GET, you co

Re: [Tutor] 2 problems in a small script

2007-10-14 Thread Dick Moores
**Blush** These lines were in my last post in this thread: "Done. I had no idea set could be used that way! With a couple of modifications, I used your ideas in both and (see the thread I started, )." They should have read

Re: [Tutor] upgrading Python

2007-10-14 Thread LandSurveyor
 Some interesting (!?) things happened when I upgraded from Python 2.3 to Python 2.5.1.  My editor of choice is Vim, the platform is MandrakeLinux 10.1...the digraphs I have incorporated from the Vim environment into my scripts no longer work.  The resultant error message referred me to pep-0263Wit

Re: [Tutor] upgrading Python

2007-10-14 Thread bhaaluu
On 10/14/07, LandSurveyor <[EMAIL PROTECTED]> wrote: > Long and the short of it, the 'make' and 'make install' continued in the > /usr/bin environ (i.e., departed from my '/home' directories). I did not at > first 'rm' the /usr/bin/python file-was too nervous to try it! What I did, > though wa

Re: [Tutor] File upload from python shell

2007-10-14 Thread Paulino
Luke Paireepinart escreveu: > Paulino wrote: >> Hello! >> >> >> How can I upload a file from python? >> >> If it is a form to fill with values it's simple: >> >> >> urlopen("http://site.com/action?key1=value1;key2=value2";) and I get >> the form filled. >> > Only if the form uses the GET method

Re: [Tutor] File upload from python shell

2007-10-14 Thread Luke Paireepinart
Paulino wrote: > Luke Paireepinart escreveu: >> Paulino wrote: >>> Hello! >>> >>> >>> How can I upload a file from python? >>> >>> If it is a form to fill with values it's simple: >>> >>> >>> urlopen("http://site.com/action?key1=value1;key2=value2";) and I get >>> the form filled. >>> >> Only i

Re: [Tutor] largest and smallest numbers

2007-10-14 Thread Dick Moores
At 06:01 PM 9/24/2007, Terry Carroll wrote: >On Mon, 24 Sep 2007, Christopher Spears wrote: > > > How can I find the largest float and complex numbers? > >That's an interesting question.. > >I just tried this: > >x = 2.0 >while True: > x = x*2 > print x > if repr(x) == "1.#INF": break >