Re: Pickling/unpickling Cookie.SimpleCookie fails with protocol=2

2006-02-24 Thread Erwin S. Andreasen
"Erwin S. Andreasen" <[EMAIL PROTECTED]> writes: > Pickling a Cookie.SimpleCookie (or SmartCookie) when using protocol=2 > seems to do something very strange. Protocol 0/1 work fine: Oh well, it seems that it's a well-known bug that has been around for more than 2 yea

Pickling/unpickling Cookie.SimpleCookie fails with protocol=2

2006-02-23 Thread Erwin S. Andreasen
Pickling a Cookie.SimpleCookie (or SmartCookie) when using protocol=2 seems to do something very strange. Protocol 0/1 work fine: $ python2.4 Python 2.4.2 (#2, Nov 20 2005, 17:04:48) [GCC 4.0.3 2005 (prerelease) (Debian 4.0.2-4)] on linux2 Type "help", "copyright", "credits" or "license" for

Re: except clause not catching IndexError

2006-02-22 Thread Erwin S. Andreasen
Derek Schuff <[EMAIL PROTECTED]> writes: > I have some code like this: [...] > except IndexError: #happens if theres a partial line at the > end of file > print "indexerror" > break > > However, when I run it, it seems that I'm not catchin

Making dynamic data available via ODBC with Python

2005-02-07 Thread Erwin S. Andreasen
I have a Python application server that manages several different data sets, permits various reports to be run on them and the data to be downloaded as tab-delimetered files, all via a web interface. I'd like to explore the possibilities of making the data directly available in Windows applicatio

Re: Excel module for Python

2005-01-16 Thread Erwin S. Andreasen
Simon Brunning <[EMAIL PROTECTED]> writes: > On Wed, 12 Jan 2005 23:19:44 +0800, sam <[EMAIL PROTECTED]> wrote: >> >> No, I don't use MS windows. I need to generate Excel file by printing >> data to it, just like Perl module Spreadsheet::WriteExcel. > If you need to write out formulae, formrattin