[This message has also been posted.]
On Wed, 28 Jan 2009 01:28:31 +0200, a...@svilendobrev.com
<a...@svilendobrev.com> wrote:

> i have recently stumbled on similar - the rowproxy's __hash__ was
> missing. so i have to tuple() them before usage.  Then there was
> Mike's question, what should the RowProxy emulate?  the tuple of the
> row, or something else?

Er, what question was that? Did I miss something?

I'd like to add to my original question a request to make these
objects pickleable as tuples. My understanding is that it just
involves adding some method to the class.

                                                Regards, Faheem.

>> Today I attempted to serialize the return value of the form
>>
>> result = conn.execute(text(""))
>>
>> Till now I thought that the return type was a list of tuples, while
>> in fact it is a list of objects of type <class
>> 'sqlalchemy.engine.base.RowProxy'>. Hence cPickle refused to
>> serialize till I did some conversion.
>>
>> Just wondering what the reason for this is.
>>
>>                             Regards, Faheem.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to