One of the things I encountered with this though is that it errors
packing a Python unicode when compare_with/validate_with is UTF8Type,
which seems like a reasonable thing to want to do. This could be
fixed by casting to a string, but I wonder if it doesn't make sense to
special case UTF8Type. Maybe encode('utf8') on the way in and
decode('utf8') on the way out? Basically, require unicode types on
write, and return them on read.
My utf8-fu is weak though, so maybe this is a bad idea.
Thoughts?
--
Eric Evans
john.er...@gmail.com
I think that's the sanest way. If compare_with/validate_with are
UTF8Type, then what you insert is treated as unicode, and unicode is
what is returned on read.
--
Eric Evans
john.er...@gmail.com
Cool, this is pretty nice!
I suppose we need to slice by equally sensible types as well then...
cf.get('mykey', column_start=datetime.now())
This certainly has an appeal over "manually" synthesizing uuid1s for slicing.
/d