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
faf9c960
Commit
faf9c960
authored
May 05, 1991
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed class members to instances and class methods to instance methods
,.
parent
e8122f19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Include/classobject.h
Include/classobject.h
+6
-6
No files found.
Include/classobject.h
View file @
faf9c960
...
...
@@ -30,15 +30,15 @@ It should be possible to use other object types as base classes,
but currently it isn't. We'll see if we can fix that later, sigh...
*/
extern
typeobject
Classtype
,
Instancetype
,
Class
methodtype
;
extern
typeobject
Classtype
,
Instancetype
,
Instance
methodtype
;
#define is_classobject(op) ((op)->ob_type == &Classtype)
#define is_instanceobject(op) ((op)->ob_type == &
Classmember
type)
#define is_
classmethodobject(op) ((op)->ob_type == &Class
methodtype)
#define is_instanceobject(op) ((op)->ob_type == &
Instance
type)
#define is_
instancemethodobject(op) ((op)->ob_type == &Instance
methodtype)
extern
object
*
newclassobject
PROTO
((
object
*
,
object
*
));
extern
object
*
newinstanceobject
PROTO
((
object
*
));
extern
object
*
new
class
methodobject
PROTO
((
object
*
,
object
*
));
extern
object
*
new
instance
methodobject
PROTO
((
object
*
,
object
*
));
extern
object
*
class
methodgetfunc
PROTO
((
object
*
));
extern
object
*
class
methodgetself
PROTO
((
object
*
));
extern
object
*
instance
methodgetfunc
PROTO
((
object
*
));
extern
object
*
instance
methodgetself
PROTO
((
object
*
));
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