As a general rule you should avoid taking the boolean value of objects. You never know what the result will be and how expensive the underlying operations are (e.g. computing the length of a BTree can be *very* expensive).


On 2. Jul 2007, at 14:24, Markus Kemmerling wrote:

But I wouldn't have expected a non built-in type, that *also* supports the mapping API, to be considered as `False` as long as the mapping is empty ...

Anything that happens, happens.  --Douglas Adams

Zope3-dev mailing list

Reply via email to