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
a182d9a7
Commit
a182d9a7
authored
Mar 23, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the necessary field for weak reference support to the function and
method types.
parent
5f398d1e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
Include/classobject.h
Include/classobject.h
+1
-0
Include/funcobject.h
Include/funcobject.h
+1
-0
No files found.
Include/classobject.h
View file @
a182d9a7
...
...
@@ -32,6 +32,7 @@ typedef struct {
PyObject
*
im_func
;
/* The callable object implementing the method */
PyObject
*
im_self
;
/* The instance it is bound to, or NULL */
PyObject
*
im_class
;
/* The class that defined the method */
PyObject
*
im_weakreflist
;
/* List of weak references */
}
PyMethodObject
;
extern
DL_IMPORT
(
PyTypeObject
)
PyClass_Type
,
PyInstance_Type
,
PyMethod_Type
;
...
...
Include/funcobject.h
View file @
a182d9a7
...
...
@@ -16,6 +16,7 @@ typedef struct {
PyObject
*
func_doc
;
PyObject
*
func_name
;
PyObject
*
func_dict
;
PyObject
*
func_weakreflist
;
}
PyFunctionObject
;
extern
DL_IMPORT
(
PyTypeObject
)
PyFunction_Type
;
...
...
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