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
6ca42602
Commit
6ca42602
authored
May 28, 2016
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Plain Diff
merge 3.5
parents
dc4f7c09
c352620c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
+3
-10
Lib/test/test_descr.py
Lib/test/test_descr.py
+0
-8
Misc/NEWS
Misc/NEWS
+2
-1
Objects/typeobject.c
Objects/typeobject.c
+1
-1
No files found.
Lib/test/test_descr.py
View file @
6ca42602
...
...
@@ -4564,14 +4564,6 @@ order (MRO) for bases """
self
.
assertRegex
(
repr
(
method
),
r"<bound method qualname of <object object at .*>>"
)
def
test_deleting_new_in_subclasses
(
self
):
class
X
:
def
__init__
(
self
,
a
):
pass
X
.
__new__
=
None
del
X
.
__new__
X
(
1
)
# should work
class
DictProxyTests
(
unittest
.
TestCase
):
def
setUp
(
self
):
...
...
Misc/NEWS
View file @
6ca42602
...
...
@@ -204,7 +204,8 @@ Core and Builtins
- Issue #25791: If __package__ != __spec__.parent or if neither __package__ or
__spec__ are defined then ImportWarning is raised.
- Issue #25731: Fix set and deleting __new__ on a class.
- Issue #22995: [UPDATE] Comment out the one of the pickleability tests in
_PyObject_GetState() due to regressions observed in Cython-based projects.
- Issue #25961: Disallowed null characters in the type name.
...
...
Objects/typeobject.c
View file @
6ca42602
...
...
@@ -6790,7 +6790,7 @@ update_one_slot(PyTypeObject *type, slotdef *p)
sanity checks and constructing a new argument
list. Cut all that nonsense short -- this speeds
up instance creation tremendously. */
specific
=
(
void
*
)
((
PyTypeObject
*
)
PyCFunction_GET_SELF
(
descr
))
->
tp_new
;
specific
=
(
void
*
)
type
->
tp_new
;
/* XXX I'm not 100% sure that there isn't a hole
in this reasoning that requires additional
sanity checks. I'll buy the first person to
...
...
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