Yelp / doloop

Task loop for keeping things updated
Other
10 stars 10 forks source link

drop Python 2.5, support Python 2.6+, 3.x #10

Closed coyotemarin closed 8 years ago

coyotemarin commented 13 years ago

Yelp is moving off Python 2.5, so it should be feasible for doloop to be a Python 2.6+ library that also works on Python 3.

coyotemarin commented 13 years ago

We could also leave it up to sqlalchemy to fix this (Issue #2).

eklitzke commented 13 years ago

FWIW if you use https://github.com/quora/mysql-ctypes then doloop will be compatible with PyPy; it's also supposed to have a compatible API. Or you could just make it configurable, I don't think there's a reason why it has to be hardcoded to one thing or another.

coyotemarin commented 13 years ago

doloop currently only uses MySQLdb for error handling; otherwise, it just expects a connection object of some sort.

Is there a portable way to handle exceptions from the various database interfaces?

coyotemarin commented 13 years ago

Actually, to answer my own question, it looks like mysql-ctypes imports exceptions from MySQLdb.

I should just do a survey of different MySQL implementations to see how they raise OperationalErrors. The name OperationalError is specified in PEP249, and there can't be too many variations on how the error code and message are stored in the exception.

coyotemarin commented 12 years ago

Tests have been in unittest2 for some time now. So making doloop a Python 2.6+ library should be do-able.

Here are some suggested MySQL libraries to use with Python 3.x.

coyotemarin commented 12 years ago

(Also note that doloop has been agnostic as to MySQL library for some time.)