[Python-Dev] other "magic strings" issues

Alex Martelli aleaxit at yahoo.com
Fri Nov 7 15:58:36 EST 2003

On Friday 07 November 2003 20:47, Skip Montanaro wrote:
> The only clear loser is the 'char in set' case, no doubt due to its
> current Python implementation, however testing a character for membership
> in a short string seems to be faster than using the .is*() methods to me.

Very interesting!  To me, this suggests fixing this performance bug -- there
is no reason that I can see why the .is* methiods should be _slower_.  Would
a performance bugfix (no implementation change, just a speedup) be OK for
2.3.3, I hope?  That would motivate me to work on it soonest...


More information about the Python-Dev mailing list