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
c83356ca
Commit
c83356ca
authored
Jun 17, 2019
by
Hai Shi
Committed by
Benjamin Peterson
Jun 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
closes bpo-37300: Remove unnecessary Py_XINCREF in classobject.c. (GH-14120)
parent
5600b5e1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
Misc/NEWS.d/next/Core and Builtins/2019-06-16-02-38-25.bpo-37300.WJkgKV.rst
...ore and Builtins/2019-06-16-02-38-25.bpo-37300.WJkgKV.rst
+1
-0
Objects/classobject.c
Objects/classobject.c
+1
-1
No files found.
Misc/NEWS.d/next/Core and Builtins/2019-06-16-02-38-25.bpo-37300.WJkgKV.rst
0 → 100644
View file @
c83356ca
Remove an unnecssary Py_XINCREF in classobject.c.
Objects/classobject.c
View file @
c83356ca
...
...
@@ -110,7 +110,7 @@ PyMethod_New(PyObject *func, PyObject *self)
im
->
im_weakreflist
=
NULL
;
Py_INCREF
(
func
);
im
->
im_func
=
func
;
Py_
X
INCREF
(
self
);
Py_INCREF
(
self
);
im
->
im_self
=
self
;
im
->
vectorcall
=
method_vectorcall
;
_PyObject_GC_TRACK
(
im
);
...
...
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