On 2016-02-18 10:57, grsm...@atlanticbb.net wrote:
> Tim, the 'crazy-other-result format' is the
> result returned by the database, nothing
> I can do about that :)

then, much like converting byte-strings to unicode strings as early
as possible and converting them back to byte-strings as late as
possible, I'd do the same with your DB results:  change them into
real Python lists as soon as they come out of the DB, operate on them
throughout your code as real lists, and only convert them back to
crazy-other-format at the time you write them back to the DB.

My condolences on having to deal with ugly data.  Been there, done
that, still stuck with it. :-)

-tkc


-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to