[Chandler-dev] Harmful usage of len()

Heikki Toivonen heikki at osafoundation.org
Wed Jun 6 10:14:57 PDT 2007


D John Anderson wrote:
> Is it ever the case that __nonzero__ would return a value inconstant
> from using __len__ so using it instead of len would cause a bug?

I don't think that is possible with the builtins. With custom objects we
are of course free to create our own bugs :)

-- 
  Heikki Toivonen


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://lists.osafoundation.org/pipermail/chandler-dev/attachments/20070606/fcaa57d8/signature.pgp


More information about the chandler-dev mailing list