Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4d45c106
Commit
4d45c106
authored
Jan 25, 2015
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update out-of-date comments.
parent
93035c44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
Objects/setobject.c
Objects/setobject.c
+3
-5
No files found.
Objects/setobject.c
View file @
4d45c106
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
All arithmetic on hash should ignore overflow.
All arithmetic on hash should ignore overflow.
Unlike the dictionary implementation, the lookkey function
s
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)
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment