Skip to content

Commit 529a160

Browse files
gh-117953: Share More Machinery Code Between Builtin and Dynamic Extensions (gh-118204)
This change will make some later changes simpler. It also brings more consistent behavior and lower maintenance costs.
1 parent 7ccacb2 commit 529a160

File tree

3 files changed

+197
-156
lines changed

3 files changed

+197
-156
lines changed

Include/internal/pycore_importdl.h

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ extern int _Py_ext_module_loader_info_init(
3636
struct _Py_ext_module_loader_info *info,
3737
PyObject *name,
3838
PyObject *filename);
39+
extern int _Py_ext_module_loader_info_init_for_builtin(
40+
struct _Py_ext_module_loader_info *p_info,
41+
PyObject *name);
3942
extern int _Py_ext_module_loader_info_init_from_spec(
4043
struct _Py_ext_module_loader_info *info,
4144
PyObject *spec);

0 commit comments

Comments
 (0)