summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-01-26 00:27:40 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-01-26 00:27:40 (GMT)
commit4d45c1069b014581c7be4b38a89c36bc57d3c216 (patch)
treece1758ed18ff27499f0ac69d84ff6e24f192d737
parent93035c44fd49359e47947fa23aded502d3a4155e (diff)
downloadcpython-4d45c1069b014581c7be4b38a89c36bc57d3c216.zip
cpython-4d45c1069b014581c7be4b38a89c36bc57d3c216.tar.gz
cpython-4d45c1069b014581c7be4b38a89c36bc57d3c216.tar.bz2
Update out-of-date comments.
-rw-r--r--Objects/setobject.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index f789434..8a2f351 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -23,7 +23,7 @@
All arithmetic on hash should ignore overflow.
- Unlike the dictionary implementation, the lookkey functions can return
+ Unlike the dictionary implementation, the lookkey function can return
NULL if the rich comparison returns an error.
*/
@@ -1028,10 +1028,8 @@ set_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
t=set(a); a.clear(); a.update(b); b.clear(); b.update(t); del t
The function always succeeds and it leaves both objects in a stable state.
- Useful for creating temporary frozensets from sets for membership testing
- in __contains__(), discard(), and remove(). Also useful for operations
- that update in-place (by allowing an intermediate result to be swapped
- into one of the original inputs).
+ Useful for operations that update in-place (by allowing an intermediate
+ result to be swapped into one of the original inputs).
*/
static void