Purpose of operator package

I V ivlenin at gmail.com
Tue May 13 19:30:22 EDT 2008


On Wed, 14 May 2008 00:38:44 +0200, Christian Heimes wrote:
> Eric Anderson schrieb:
>> Seems like unnecessary code but obviously I know nothing about Python.
> 
> Correct, the truth example isn't a good example. "if argv" is better.

I hadn't heard of operator.truth before. Does it do anything different 
from bool(x) ?



More information about the Python-list mailing list