Update out-of-date comments.
This commit is contained in:
parent
93035c44fd
commit
4d45c1069b
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
All arithmetic on hash should ignore overflow.
|
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.
|
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
|
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.
|
The function always succeeds and it leaves both objects in a stable state.
|
||||||
Useful for creating temporary frozensets from sets for membership testing
|
Useful for operations that update in-place (by allowing an intermediate
|
||||||
in __contains__(), discard(), and remove(). Also useful for operations
|
result to be swapped into one of the original inputs).
|
||||||
that update in-place (by allowing an intermediate result to be swapped
|
|
||||||
into one of the original inputs).
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user