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
cff84af7
Commit
cff84af7
authored
Aug 22, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverse the search order for the Don Beaudry hook so that the first
class wins. Makes more sense.
parent
66c663b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Python/ceval.c
Python/ceval.c
+3
-4
No files found.
Python/ceval.c
View file @
cff84af7
...
...
@@ -2683,7 +2683,7 @@ build_class(methods, bases, name)
PyObject
*
bases
;
/* tuple containing classes */
PyObject
*
name
;
/* string */
{
int
i
;
int
i
,
n
;
if
(
!
PyTuple_Check
(
bases
))
{
PyErr_SetString
(
PyExc_SystemError
,
"build_class with non-tuple bases"
);
...
...
@@ -2699,9 +2699,8 @@ build_class(methods, bases, name)
"build_class witn non-string name"
);
return
NULL
;
}
for
(
i
=
PyTuple_Size
(
bases
);
--
i
>=
0
;
)
{
/* XXX Is it intentional that the *last* base gets a
chance at this first? */
n
=
PyTuple_Size
(
bases
);
for
(
i
=
0
;
i
<
n
;
i
++
)
{
PyObject
*
base
=
PyTuple_GET_ITEM
(
bases
,
i
);
if
(
!
PyClass_Check
(
base
))
{
/* Call the base's *type*, if it is callable.
...
...
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