mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Improve Python tree-shaking
This commit is contained in:
parent
5bb2275788
commit
4f41f2184d
169 changed files with 4182 additions and 2411 deletions
8
third_party/python/Modules/_weakref.c
vendored
8
third_party/python/Modules/_weakref.c
vendored
|
@ -16,6 +16,14 @@
|
|||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_weakref");
|
||||
PYTHON_PROVIDE("_weakref.CallableProxyType");
|
||||
PYTHON_PROVIDE("_weakref.ProxyType");
|
||||
PYTHON_PROVIDE("_weakref.ReferenceType");
|
||||
PYTHON_PROVIDE("_weakref._remove_dead_weakref");
|
||||
PYTHON_PROVIDE("_weakref.getweakrefcount");
|
||||
PYTHON_PROVIDE("_weakref.getweakrefs");
|
||||
PYTHON_PROVIDE("_weakref.proxy");
|
||||
PYTHON_PROVIDE("_weakref.ref");
|
||||
|
||||
#define GET_WEAKREFS_LISTPTR(o) \
|
||||
((PyWeakReference **) PyObject_GET_WEAKREFS_LISTPTR(o))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue