diff Python/import.c @ 38471:9268c30782c0 legacy-trunk

Correct None refcount issue in Mac modules. (Are they still used?)
author Georg Brandl <georg@python.org>
date Sun, 28 May 2006 21:57:35 +0000
parents 3204aa9e2b22
children 9e821435a612
line wrap: on
line diff
--- a/Python/import.c	Sun May 28 21:42:54 2006 +0000
+++ b/Python/import.c	Sun May 28 21:57:35 2006 +0000
@@ -2059,7 +2059,7 @@
 /* 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.