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
87b5d919
Commit
87b5d919
authored
Apr 18, 2007
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert 53667
parent
e6e383f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
Misc/NEWS
Misc/NEWS
+1
-0
Objects/setobject.c
Objects/setobject.c
+7
-7
No files found.
Misc/NEWS
View file @
87b5d919
...
...
@@ -14,6 +14,7 @@ Core and builtins
- Revert SF #1615701: dict.update() does *not* call __getitem__() or keys()
if subclassed. This is to remain consistent with 2.5.
Also revert revision 53667 with made a similar change to set.update().
What'
s
New
in
Python
2.5.1
c1
?
...
...
Objects/setobject.c
View file @
87b5d919
...
...
@@ -912,7 +912,7 @@ set_update_internal(PySetObject *so, PyObject *other)
{
PyObject
*
key
,
*
it
;
if
(
PyAnySet_Check
Exact
(
other
))
if
(
PyAnySet_Check
(
other
))
return
set_merge
(
so
,
other
);
if
(
PyDict_CheckExact
(
other
))
{
...
...
@@ -1207,7 +1207,7 @@ set_intersection(PySetObject *so, PyObject *other)
if
(
result
==
NULL
)
return
NULL
;
if
(
PyAnySet_Check
Exact
(
other
))
{
if
(
PyAnySet_Check
(
other
))
{
Py_ssize_t
pos
=
0
;
setentry
*
entry
;
...
...
@@ -1331,7 +1331,7 @@ set_difference_update_internal(PySetObject *so, PyObject *other)
if
((
PyObject
*
)
so
==
other
)
return
set_clear_internal
(
so
);
if
(
PyAnySet_Check
Exact
(
other
))
{
if
(
PyAnySet_Check
(
other
))
{
setentry
*
entry
;
Py_ssize_t
pos
=
0
;
...
...
@@ -1380,7 +1380,7 @@ set_difference(PySetObject *so, PyObject *other)
setentry
*
entry
;
Py_ssize_t
pos
=
0
;
if
(
!
PyAnySet_Check
Exact
(
other
)
&&
!
PyDict_CheckExact
(
other
))
{
if
(
!
PyAnySet_Check
(
other
)
&&
!
PyDict_CheckExact
(
other
))
{
result
=
set_copy
(
so
);
if
(
result
==
NULL
)
return
NULL
;
...
...
@@ -1487,7 +1487,7 @@ set_symmetric_difference_update(PySetObject *so, PyObject *other)
Py_RETURN_NONE
;
}
if
(
PyAnySet_Check
Exact
(
other
))
{
if
(
PyAnySet_Check
(
other
))
{
Py_INCREF
(
other
);
otherset
=
(
PySetObject
*
)
other
;
}
else
{
...
...
@@ -1570,7 +1570,7 @@ set_issubset(PySetObject *so, PyObject *other)
setentry
*
entry
;
Py_ssize_t
pos
=
0
;
if
(
!
PyAnySet_Check
Exact
(
other
))
{
if
(
!
PyAnySet_Check
(
other
))
{
PyObject
*
tmp
,
*
result
;
tmp
=
make_new_set
(
&
PySet_Type
,
other
);
if
(
tmp
==
NULL
)
...
...
@@ -1599,7 +1599,7 @@ set_issuperset(PySetObject *so, PyObject *other)
{
PyObject
*
tmp
,
*
result
;
if
(
!
PyAnySet_Check
Exact
(
other
))
{
if
(
!
PyAnySet_Check
(
other
))
{
tmp
=
make_new_set
(
&
PySet_Type
,
other
);
if
(
tmp
==
NULL
)
return
NULL
;
...
...
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