>Simple question: Is it possible to stop a running function after certain>predefined time?
>>I would like to convert this routine to Python using pycurl module, or maybe>even standard urllib.urlretrieve.
If you use urllib.urlretrieve, you can pass in a callback
function that gets called after eve
Just what I needed - thanks everyone. I never realised '\r' was actually good for something other than Windows line breaks!
Olly
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Does anyone know how I can update a line of console output without
creating a new line? I'm not explaning this too well, so here's an
example.
When you download a file with wget, the console display looks like this:
14%
[===>
] 344,192
On 10/4/05, Andrew P <[EMAIL PROTECTED]> wrote:
Oops, Paul is probably right. I thought urllib2 opened local
files in the absence of an identifier like "http://". Bad assumption on my part. I remembered that
behavior from somewhere else, maybe urllib.
The following function could be useful here
On 10/4/05, Andrew P <[EMAIL PROTECTED]> wrote:
Oops, Paul is probably right. I thought urllib2 opened local
files in the absence of an identifier like "http://". Bad assumption on my part. I remembered that
behavior from somewhere else, maybe urllib.
The following function could be useful here
On 10/3/05, Liam Clarke <[EMAIL PROTECTED]> wrote:
I'd recommend http://www.python.org/pypi andhttp://www.vex.net/parnassus/
Thanks for those - they're both full of possibilities.
Olly
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mail
On 10/3/05, Kent Johnson <[EMAIL PROTECTED]> wrote:
> Should be straightforward, but I don't> want to do it only to find there's a module with a> get_file_from_web(url, destination, progress_callback) function in it.That is spelled urllib.urlretrieve
(url, destination, progress_callback) :-)
Proves
Hi all
I'm pretty new to Python - I've worked through Dive Into Python, but
not done a lot else. One thing I have realised is that pretty much
whatever you want to do in Python, someone else has already done it and
stuck it in a library. My question is, how do you find these libraries.
Here's an
On 08/09/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
below is my program. what i would like to do is to get the last line toprint the number of years that the user enters and also the principal
There are a couple (at least!) of ways to get the values into the string that you print.
The first
On 04/09/05, Byron <[EMAIL PROTECTED]> wrote:
>>I want to make a program to lock folders (so the user can only access>>them if he knows the password) under win32, the only problem is that I>>have no idea how to start or what to do. Do you guys have any ideas of
>>how to do it?
There's a program ca
10 matches
Mail list logo