Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
8f4001ee
Commit
8f4001ee
authored
Oct 24, 1996
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in returning __bases__ for base classes.
Added missing PyErr_Clear() call.
parent
5be28270
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
+20
-8
lib/Components/ExtensionClass/ExtensionClass.c
lib/Components/ExtensionClass/ExtensionClass.c
+10
-4
lib/Components/ExtensionClass/src/ExtensionClass.c
lib/Components/ExtensionClass/src/ExtensionClass.c
+10
-4
No files found.
lib/Components/ExtensionClass/ExtensionClass.c
View file @
8f4001ee
/*
$Id: ExtensionClass.c,v 1.
2 1996/10/23 18:36:56
jim Exp $
$Id: ExtensionClass.c,v 1.
3 1996/10/24 21:07:49
jim Exp $
Extension Class
...
...
@@ -56,6 +56,10 @@
(540) 371-6909
$Log: ExtensionClass.c,v $
Revision 1.3 1996/10/24 21:07:49 jim
Fixed bug in returning __bases__ for base classes.
Added missing PyErr_Clear() call.
Revision 1.2 1996/10/23 18:36:56 jim
Changed a bunch of single quotes to double and got rid of
some superfluous semicolns that caused warning on SGI.
...
...
@@ -80,7 +84,7 @@ static char ExtensionClass_module_documentation[] =
" - They provide access to unbound methods,
\n
"
" - They can be called to create instances.
\n
"
"
\n
"
"$Id: ExtensionClass.c,v 1.
2 1996/10/23 18:36:56
jim Exp $
\n
"
"$Id: ExtensionClass.c,v 1.
3 1996/10/24 21:07:49
jim Exp $
\n
"
;
#include "Python.h"
...
...
@@ -942,13 +946,13 @@ CCL_getattr(self, name)
}
if
(
strcmp
(
n
,
"bases__"
)
==
0
)
{
if
(
self
->
base
d
)
if
(
self
->
base
s
)
{
Py_INCREF
(
self
->
bases
);
return
self
->
bases
;
}
else
return
PyTuple_New
(
0
)
return
PyTuple_New
(
0
)
;
}
}
...
...
@@ -1197,6 +1201,8 @@ dictionary_setattr:
default_setattr:
PyErr_Clear
();
UNLESS
(
-
1
!=
PyMapping_SetItemString
(
INSTANCE_DICT
(
self
),
name
,
v
))
return
-
1
;
...
...
lib/Components/ExtensionClass/src/ExtensionClass.c
View file @
8f4001ee
/*
$Id: ExtensionClass.c,v 1.
2 1996/10/23 18:36:56
jim Exp $
$Id: ExtensionClass.c,v 1.
3 1996/10/24 21:07:49
jim Exp $
Extension Class
...
...
@@ -56,6 +56,10 @@
(540) 371-6909
$Log: ExtensionClass.c,v $
Revision 1.3 1996/10/24 21:07:49 jim
Fixed bug in returning __bases__ for base classes.
Added missing PyErr_Clear() call.
Revision 1.2 1996/10/23 18:36:56 jim
Changed a bunch of single quotes to double and got rid of
some superfluous semicolns that caused warning on SGI.
...
...
@@ -80,7 +84,7 @@ static char ExtensionClass_module_documentation[] =
" - They provide access to unbound methods,
\n
"
" - They can be called to create instances.
\n
"
"
\n
"
"$Id: ExtensionClass.c,v 1.
2 1996/10/23 18:36:56
jim Exp $
\n
"
"$Id: ExtensionClass.c,v 1.
3 1996/10/24 21:07:49
jim Exp $
\n
"
;
#include "Python.h"
...
...
@@ -942,13 +946,13 @@ CCL_getattr(self, name)
}
if
(
strcmp
(
n
,
"bases__"
)
==
0
)
{
if
(
self
->
base
d
)
if
(
self
->
base
s
)
{
Py_INCREF
(
self
->
bases
);
return
self
->
bases
;
}
else
return
PyTuple_New
(
0
)
return
PyTuple_New
(
0
)
;
}
}
...
...
@@ -1197,6 +1201,8 @@ dictionary_setattr:
default_setattr:
PyErr_Clear
();
UNLESS
(
-
1
!=
PyMapping_SetItemString
(
INSTANCE_DICT
(
self
),
name
,
v
))
return
-
1
;
...
...
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