[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: Re: Use cases for del
From: Ron Adam <rrr () ronadam ! com>
Date: 2005-07-08 20:52:40
Message-ID: sIBze.146175$VH2.106421 () tornado ! tampabay ! rr ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic