mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-123930: Better error for "from imports" when script shadows module (#123929)
This commit is contained in:
parent
3f24bde0b6
commit
500f5338a8
6 changed files with 344 additions and 173 deletions
|
@ -11,6 +11,8 @@ extern "C" {
|
|||
extern void _PyModule_Clear(PyObject *);
|
||||
extern void _PyModule_ClearDict(PyObject *);
|
||||
extern int _PyModuleSpec_IsInitializing(PyObject *);
|
||||
extern int _PyModuleSpec_GetFileOrigin(PyObject *, PyObject **);
|
||||
extern int _PyModule_IsPossiblyShadowing(PyObject *);
|
||||
|
||||
extern int _PyModule_IsExtension(PyObject *obj);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue