Are *.pyd's universal?

2009-10-29 Thread Bakes
Can I use a pyd compiled on linux in a Windows distribution? Or must I recompile it for windows users? -- http://mail.python.org/mailman/listinfo/python-list

Catch script hangs

2009-09-27 Thread Bakes
Due to an ftp server issue, my python script sometimes hangs whilst downloading, unable to receive any more data. Is there any way that I could have python check, maybe through a thread or something, whether it has hanged (or just, if it's still active after 10 seconds, stop it?). I have looked at

Get error message from FTPLib

2009-09-23 Thread Bakes
I am using ftplib for a project, using a try/except loop. I would like to find out the exception, but I am a python newbie and do not know how. How, in a try/except loop would I find the ftplib exception? -- http://mail.python.org/mailman/listinfo/python-list

Re: Odd/Weird errors with FTPLib

2009-09-14 Thread Bakes
On Sep 15, 1:32 am, MRAB wrote: > Bakes wrote: > > On Sep 13, 11:47 pm, MRAB wrote: > >> Bakes wrote: > >>> On 13 Sep, 22:41, Chris Rebert wrote: > >>>> On Sun, Sep 13, 2009 at 2:34 PM, Bakes wrote: > >>>>> I am using a simple py

Re: Odd/Weird errors with FTPLib

2009-09-14 Thread Bakes
On Sep 13, 11:47 pm, MRAB wrote: > Bakes wrote: > > On 13 Sep, 22:41, Chris Rebert wrote: > >> On Sun, Sep 13, 2009 at 2:34 PM, Bakes wrote: > >>> I am using a simple python script to download my logfiles. This is on > >>> a while loop, the logfile gr

Re: Odd/Weird errors with FTPLib

2009-09-13 Thread Bakes
On 13 Sep, 22:41, Chris Rebert wrote: > On Sun, Sep 13, 2009 at 2:34 PM, Bakes wrote: > > I am using a simple python script to download my logfiles. This is on > > a while loop, the logfile grows rapidly, so it is necessary for python > > to start downloading the new scr

Odd/Weird errors with FTPLib

2009-09-13 Thread Bakes
I am using a simple python script to download my logfiles. This is on a while loop, the logfile grows rapidly, so it is necessary for python to start downloading the new script as soon as it has finished the old. It works fine (for about 20 minutes), then crashes. I have removed a couple of except

regexp help

2009-08-27 Thread Bakes
If I were using the code: (?P[0-9]+) to get an integer between 0 and 9, how would I allow it to register negative integers as well? -- http://mail.python.org/mailman/listinfo/python-list

Re: FTP Offset larger than file.

2009-07-28 Thread Bakes
On Jul 28, 5:36 pm, Dave Angel wrote: > Bakes wrote: > > On 28 July, 15:18, Bakes wrote: > > >> On 28 July, 15:01, Hrvoje Niksic wrote: > > >>> Bakes writes: > > >>>> The error I get is: > >>>> ftplib.error_temp: 451-Res

Re: FTP Offset larger than file.

2009-07-28 Thread Bakes
On 28 July, 15:18, Bakes wrote: > On 28 July, 15:01, Hrvoje Niksic wrote: > > > > > Bakes writes: > > > The error I get is: > > > ftplib.error_temp: 451-Restart offset 24576 is too large for file size > > > 22852. > > > 451 Restart offset

Re: FTP Offset larger than file.

2009-07-28 Thread Bakes
On 28 July, 15:01, Hrvoje Niksic wrote: > Bakes writes: > > The error I get is: > > ftplib.error_temp: 451-Restart offset 24576 is too large for file size > > 22852. > > 451 Restart offset reset to 0 > > which tells me that the local file is larger than the exter

FTP Offset larger than file.

2009-07-28 Thread Bakes
time > for i in range(1, 2): > time.sleep(0.2) > print i > f = open("data1.log","a") > f.write('%s: This logfile is being automatically generated to help > Bakes test his python ftptail. \n' % i) > f.close() and us