well other folks have been asking that it return a generator object which dynamically executes the query at the moment you ask for a slice of it. you can always go with orders = list(Order.mapper.select(limit=3)) to assure the type. any particular reason "list" is so important ? whats python without duck typing? On Mar 26, 2006, at 2:55 PM, Koen Bok wrote: When I make a selection with a mapper I get back an <instance> object. Same goes for the mapper's relations. |
- [Sqlalchemy-users] Return lists in mapping Koen Bok
- Re: [Sqlalchemy-users] Return lists in mapping Michael Bayer