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
d1c2a8e2
Commit
d1c2a8e2
authored
8 years ago
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #27809: builtin___build_class__() uses fast call
parent
6e2333df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
Python/bltinmodule.c
Python/bltinmodule.c
+2
-6
No files found.
Python/bltinmodule.c
View file @
d1c2a8e2
...
...
@@ -169,12 +169,8 @@ builtin___build_class__(PyObject *self, PyObject *args, PyObject *kwds)
NULL
,
0
,
NULL
,
0
,
NULL
,
0
,
NULL
,
PyFunction_GET_CLOSURE
(
func
));
if
(
cell
!=
NULL
)
{
PyObject
*
margs
;
margs
=
PyTuple_Pack
(
3
,
name
,
bases
,
ns
);
if
(
margs
!=
NULL
)
{
cls
=
PyEval_CallObjectWithKeywords
(
meta
,
margs
,
mkw
);
Py_DECREF
(
margs
);
}
PyObject
*
margs
[
3
]
=
{
name
,
bases
,
ns
};
cls
=
_PyObject_FastCallDict
(
meta
,
margs
,
3
,
mkw
);
if
(
cls
!=
NULL
&&
PyCell_Check
(
cell
))
PyCell_Set
(
cell
,
cls
);
Py_DECREF
(
cell
);
...
...
This diff is collapsed.
Click to expand it.
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