Skip to content

Commit 4d45c10

Browse files
committed
Update out-of-date comments.
1 parent 93035c4 commit 4d45c10

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Objects/setobject.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
2424
All arithmetic on hash should ignore overflow.
2525
26-
Unlike the dictionary implementation, the lookkey functions can return
26+
Unlike the dictionary implementation, the lookkey function can return
2727
NULL if the rich comparison returns an error.
2828
*/
2929

@@ -1028,10 +1028,8 @@ set_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
10281028
t=set(a); a.clear(); a.update(b); b.clear(); b.update(t); del t
10291029
10301030
The function always succeeds and it leaves both objects in a stable state.
1031-
Useful for creating temporary frozensets from sets for membership testing
1032-
in __contains__(), discard(), and remove(). Also useful for operations
1033-
that update in-place (by allowing an intermediate result to be swapped
1034-
into one of the original inputs).
1031+
Useful for operations that update in-place (by allowing an intermediate
1032+
result to be swapped into one of the original inputs).
10351033
*/
10361034

10371035
static void

0 commit comments

Comments
 (0)