]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
* Fix SF #1257731. Make __contains__(), remove(), and discard() only do
authorRaymond Hettinger <python@rcn.com>
Fri, 12 Aug 2005 20:48:39 +0000 (20:48 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 12 Aug 2005 20:48:39 +0000 (20:48 +0000)
commitb02c35e2081847cff27b55861184444fd22bc4f0
tree10d376f259df7ce7a0d3713de6bbad3ae615930a
parentcf52c0784364c09818ffd3fcaabffec667dba01d
* Fix SF #1257731.  Make __contains__(), remove(), and discard() only do
  a frozenset conversion when the initial search attempt fails with a
  TypeError and the key is some type of set.  Add a testcase.

* Eliminate a duplicate if-stmt.
Objects/setobject.c