This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Possible bug in import.c (2.1.2)
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: jeffsasmor, jvr
Priority: normal Keywords:

Created on 2002-03-07 00:43 by jeffsasmor, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (2)
msg9556 - (view) Author: Jeff Sasmor (jeffsasmor) Date: 2002-03-07 00:43
Referencing the source distribution; file 
Python/import.c:

lines 1881 through 1884 read:

if (parent == NULL) {
 PyErr_Format(PyExc_ImportError,
 "reload(): parent %.200s not in sys.modules",name); 

It might be more correct to subsitute the variable
parentname here (rather than 'name') since it is
the parentname'd module that wasn't found.  Perhaps
there was some other intent in mind.....
msg9557 - (view) Author: Just van Rossum (jvr) * (Python triager) Date: 2002-03-10 20:42
Logged In: YES 
user_id=92689

No:
1) I read the error string as "the parent of 'name' is not 
in sys.modules", which is indeed what's intended.
2) parentname is a PyObject* and name is a char*
(I assume it is correct to close this bug)
History
Date User Action Args
2022-04-10 16:05:04adminsetgithub: 36216
2002-03-07 00:43:03jeffsasmorcreate