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
b3f0d349
Commit
b3f0d349
authored
Oct 05, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PyObject_ClearWeakRefs() is now a real function instead of a function pointer;
the implementation is in Objects/weakrefobject.c.
parent
502ed821
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
16 deletions
+1
-16
Include/object.h
Include/object.h
+1
-1
Objects/object.c
Objects/object.c
+0
-15
No files found.
Include/object.h
View file @
b3f0d349
...
...
@@ -345,7 +345,7 @@ extern DL_IMPORT(int) PyCallable_Check(PyObject *);
extern
DL_IMPORT
(
int
)
PyNumber_Coerce
(
PyObject
**
,
PyObject
**
);
extern
DL_IMPORT
(
int
)
PyNumber_CoerceEx
(
PyObject
**
,
PyObject
**
);
extern
DL_IMPORT
(
void
)
(
*
PyObject_ClearWeakRefs
)
(
PyObject
*
);
extern
DL_IMPORT
(
void
)
PyObject_ClearWeakRefs
(
PyObject
*
);
/* A slot function whose address we need to compare */
extern
int
_PyObject_SlotCompare
(
PyObject
*
,
PyObject
*
);
...
...
Objects/object.c
View file @
b3f0d349
...
...
@@ -1841,21 +1841,6 @@ PyObject_Free(void *p)
}
/* Hook to clear up weak references only once the _weakref module is
imported. We use a dummy implementation to simplify the code at each
call site instead of requiring a test for NULL.
*/
static
void
empty_clear_weak_refs
(
PyObject
*
o
)
{
return
;
}
void
(
*
PyObject_ClearWeakRefs
)(
PyObject
*
)
=
empty_clear_weak_refs
;
/* These methods are used to control infinite recursion in repr, str, print,
etc. Container objects that may recursively contain themselves,
e.g. builtin dictionaries and lists, should used Py_ReprEnter() and
...
...
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