[Python-ideas] checking for identity before comparing built-in objects

Sven Marnach sven at marnach.net
Mon Oct 8 01:43:25 CEST 2012

On Thu, Oct 04, 2012 at 05:08:40PM +0200, Victor Stinner wrote:
> I think that the optimization should be implemented for Unicode
> strings, but disabled in PyObject_RichCompareBool().

Actually, this change to PyObject_RichCompareBool() has been made
before, but was reverted after the discussion in



More information about the Python-ideas mailing list