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

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to