mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Flow import func through to lazy imports object and __lazy_import__
This commit is contained in:
parent
41ab092407
commit
058bc6e884
5 changed files with 64 additions and 33 deletions
|
|
@ -14,14 +14,14 @@ PyAPI_DATA(PyTypeObject) PyLazyImport_Type;
|
|||
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
PyObject *lz_builtins;
|
||||
PyObject *lz_import_func;
|
||||
PyObject *lz_from;
|
||||
PyObject *lz_attr;
|
||||
} PyLazyImportObject;
|
||||
|
||||
|
||||
PyAPI_FUNC(PyObject *) _PyLazyImport_GetName(PyObject *lazy_import);
|
||||
PyAPI_FUNC(PyObject *) _PyLazyImport_New(PyObject *builtins, PyObject *from, PyObject *attr);
|
||||
PyAPI_FUNC(PyObject *) _PyLazyImport_New(PyObject *import_func, PyObject *from, PyObject *attr);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue