Does PySqlPool work with Python 2.4.4?

Asked by Mash

Hi, I'm a python newbie and am working on a webapp that requires Python 2.4.4. One of its' dependencies is PySqlPool.

I keep getting a Syntax error on the finally: clause -

>>>
File "D:\Python24\lib\site-packages\PySQLPool\PySQLQuery.py", line 119

    finally:

          ^

SyntaxError: invalid syntax
<<<

Is this a Python compatibility issue? Ref: http://coding.derkeiler.com/Archive/Python/comp.lang.python/2007-06/msg03531.html

Question information

Language:
English Edit question
Status:
Answered
For:
PySQLPool Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nikoleta Verbeck (nerdynick) said :
#1

Unfortunately at this time its not 2.4 compatible as Finally was introduced in 2.5. I might be able to create a compatibility layer to allow for 2.4 users to use PySQLPool, or if you wish to whip this up I would be happy to port it into the main code base.

Revision history for this message
Nikoleta Verbeck (nerdynick) said :
#2

I think I've resolved this error to allow for support of 2.4. I don't have a 2.4 instance at my disposal at this time. So if you wish to give this a test run check out the current head from http://pysqlpool.googlecode.com/svn/branches/0.3.5/PySQLPool

If you need I can export you a copy in a tar.gz or zip.

Can you help with this problem?

Provide an answer of your own, or ask Mash for more information if necessary.

To post a message you must log in.