len

len(s)

Returns the length (the number of items) of an object. The argument may be a sequence (string, tuple or list) or a mapping (dictionary).

To make this function work on your own classes, implement the __len__ method.

 

A Django site. this page was rendered by a django application in 0.00s 2012-02-12 01:43:04.969647. hosted by webfaction.