Use cases for del
Ron Adam
rrr at ronadam.com
Fri Jul 8 16:52:40 EDT 2005
George Sakkis wrote:
> I get:
>
> None: 0.549999952316
> String: 0.498000144958
> is None: 0.450000047684
What do yo get for "name is 'string'" expressions?
Or is that a wrong way too?
On my system testing "if string is string" is slightly faster than "if
True/ if False" expressions.
But the actual different is so small as to be negligible. I'm just kind
of curious why testing is objects isn't just as fast as testing is string?
Cheers,
Ron
More information about the Python-list
mailing list