Purpose of operator package

Matthew Woodcraft mattheww at chiark.greenend.org.uk
Wed May 14 12:58:41 EDT 2008


I V  <ivlenin at gmail.com> wrote:
> I hadn't heard of operator.truth before. Does it do anything different 
> from bool(x) ?

Not really. It was occasionally useful before the bool type existed;
now it's just a leftover.

-M-



More information about the Python-list mailing list