Re: ftplib timeout in Python 2.4

2009-12-18 Thread Nico Grubert
Try the timelimited function from this recipe http://code.activestate.com/recipes/576780/ Works perfect! Thanks a lot, Jean! -- http://mail.python.org/mailman/listinfo/python-list

ftplib timeout in Python 2.4

2009-12-17 Thread Nico Grubert
Hi there, The ftplib has a timeout parameter in Python 2.6 and above. Is there a way to set a timeout in Python 2.4? Regards Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: ftplib timeout in Python 2.4

2009-12-17 Thread r0g
Nico Grubert wrote: Hi there, The ftplib has a timeout parameter in Python 2.6 and above. Is there a way to set a timeout in Python 2.4? Regards Nico I don't know of one so you may need a workaround. What platforms do you need to support? Roger. --

Re: ftplib timeout in Python 2.4

2009-12-17 Thread Nico Grubert
I don't know of one so you may need a workaround. What platforms do you need to support? Suse Linux Enterprise 10, 64 Bit with Python 2.4.4. I need the Python 2.4.4 for a running application Server (Zope). -- http://mail.python.org/mailman/listinfo/python-list

Re: ftplib timeout in Python 2.4

2009-12-17 Thread r0g
Nico Grubert wrote: I don't know of one so you may need a workaround. What platforms do you need to support? Suse Linux Enterprise 10, 64 Bit with Python 2.4.4. I need the Python 2.4.4 for a running application Server (Zope). OK, then one approach would be to use signals.alarm(timeout) to