[sqlalchemy] Re: Please add some __len__ methods

2007-10-23 Thread klaus
Seems like I am learning more python on this list than I ever wanted... On 22 Okt., 15:37, Michael Bayer <[EMAIL PROTECTED]> wrote: > On Oct 22, 2007, at 6:32 AM, klaus wrote: > > > > > Hi all, > > I wonder why some classes/objects implement part of a list interface - > > but without a __len__ me

[sqlalchemy] Re: Please add some __len__ methods

2007-10-22 Thread Michael Bayer
On Oct 22, 2007, at 6:32 AM, klaus wrote: > > Hi all, > I wonder why some classes/objects implement part of a list interface - > but without a __len__ method. Obvious examples are: > > Query has __iter__ and __getitem__, both of which access the database. > __len__ would be a nice alternative to

[sqlalchemy] Re: Please add some __len__ methods

2007-10-22 Thread King Simon-NFHD78
> -Original Message- > From: sqlalchemy@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of klaus > Sent: 22 October 2007 11:33 > To: sqlalchemy > Subject: [sqlalchemy] Please add some __len__ methods > > > Hi all, > I wonder why some classes/objects implement part of a list inte