The __len__ method

__len__(self) => integer

Called to implement the built-in function len. Should return the length of the object, an integer >= 0. Also, an object that doesn’t define a __nonzero__ method and whose __len__ method returns zero is considered to be false in a Boolean context.

 

A Django site. this page was rendered by a django application in 0.01s 2008-11-21 15:04:44.561977. hosted by webfaction.