[DB-SIG] BLOB data types
Robert Brewer
fumanchu at amor.org
Sat Jan 1 03:53:52 CET 2005
Andy Dustman wrote:
> What's the current view on the best object class to use for
> Binary/BLOB objects? PEP-249 recommends buffer, but buffer
> appears deprecated. MySQLdb used to strings, but currently
> uses array. mxODBC appears to use strings. psycopg appears
> to use buffer.
>
> Take a look at this for additional comments:
>
> https://sourceforge.net/tracker/index.php?func=detail
> &aid=975831&group_id=22307&atid=374932
>
> Anyone got any strong feelings about this?
Won't Python strings be encoded, and therefore often choke on values between 128 and 255? To my naive mind, unicode objects would be the preferred choice.
Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org
More information about the DB-SIG
mailing list