]> granicus.if.org Git - python/commit
Variant of SF patch 423181
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 11 May 2001 14:48:41 +0000 (14:48 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 11 May 2001 14:48:41 +0000 (14:48 +0000)
commit1b0feb4ada9b1ff604f9d3100254f9071a96713f
tree937bae85551e5eb1c1583df03af0fe1702df713f
parent6278799f8e34bf01de68f989f5f100913fb5e2f5
Variant of SF patch 423181

For rich comparisons, use instance_getattr2() when possible to avoid
the expense of setting an AttributeError.  Also intern the name_op[]
table and use the interned strings rather than creating a new string
and interning it each time through.
Objects/classobject.c