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 a basic count(). Session has __iter__ and __contains__. __len__ could be used to indicate when the session gets too large and should be cleared. I already suggested this some months ago but attracted no attention. ;-) Best regards Klaus --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---