mirror of
https://github.com/python/cpython.git
synced 2025-07-27 21:24:32 +00:00
Correct None refcount issue in Mac modules. (Are they
still used?)
This commit is contained in:
parent
c26025c562
commit
5f6861df93
5 changed files with 5 additions and 5 deletions
|
@ -2059,7 +2059,7 @@ PyImport_ImportModuleLevel(char *name, PyObject *globals, PyObject *locals,
|
|||
/* Return the package that an import is being performed in. If globals comes
|
||||
from the module foo.bar.bat (not itself a package), this returns the
|
||||
sys.modules entry for foo.bar. If globals is from a package's __init__.py,
|
||||
the package's entry in sys.modules is returned.
|
||||
the package's entry in sys.modules is returned, as a borrowed reference.
|
||||
|
||||
The *name* of the returned package is returned in buf, with the length of
|
||||
the name in *p_buflen.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue