When I make a selection with a mapper I get back an <instance> object. Same goes for the mapper's relations.

Is there any way to make SQLAlchemy returning standard <list> objects?

Example:

orders = list()
print type(orders) #

<type 'list'>

orders = Order.mapper.select(limit=3)
print type(orders)
print orders

<type 'instance'>
[<Order id=1859>, <Order id=295>, <Order id=1360>] # Looks like a list, but is an instance!

orders = list(Order.mapper.select(limit=3))
print type(orders)
print orders

<type 'list'>
[<Order id=1859>, <Order id=295>, <Order id=1360>] # This is a list! But I had to convert it! And I'd also the relations to standard list objects.

Reply via email to