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
70b9f499
Commit
70b9f499
authored
Nov 19, 2003
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecation of sets.Set.update().
parent
37249c55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
Lib/sets.py
Lib/sets.py
+0
-4
Misc/NEWS
Misc/NEWS
+1
-2
No files found.
Lib/sets.py
View file @
70b9f499
...
...
@@ -504,10 +504,6 @@ class Set(BaseSet):
def
update
(
self
,
iterable
):
"""Add all values from an iterable (such as a list or file)."""
import
warnings
warnings
.
warn
(
"The update() method deprecated; "
"Use union_update() instead."
,
DeprecationWarning
,
2
)
self
.
_update
(
iterable
)
def
clear
(
self
):
...
...
Misc/NEWS
View file @
70b9f499
...
...
@@ -161,8 +161,7 @@ Library
- sets.py now runs under Py2.2. In addition, the argument restrictions
for most set methods (but not the operators) have been relaxed to
allow any iterable. Also the Set.update() has been deprecated because
it duplicates Set.union_update().
allow any iterable.
- _strptime.py now has a behind-the-scenes caching mechanism for the most
recent TimeRE instance used along with the last five unique directive
...
...
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