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.
| Author | schmir |
|---|---|
| Recipients | schmir |
| Date | 2008年06月27日.20:35:27 |
| SpamBayes Score | 1.9770678e-05 |
| Marked as misclassified | No |
| Message-id | <1214598929.49.0.609710487655.issue3221@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The following short program work in python 2.5, but does die with a SystemError in python2.6: ~/ cat t.py #! /usr/bin/env python res = dict(__package__='foo') exec "from os import path" in res ~/ python2.5 t.py ~/ python2.6 t.py Traceback (most recent call last): File "t.py", line 4, in <module> exec "from os import path" in res File "<string>", line 1, in <module> SystemError: Parent module 'foo' not loaded I think this has been introduced with svn revision 42649 (http://hgpy.de/py/trunk/rev/54c72e1678d68ebbf274) Part of the diff reads: modules = PyImport_GetModuleDict(); parent = PyDict_GetItemString(modules, buf); if (parent == NULL) - parent = Py_None; + PyErr_Format(PyExc_SystemError, + "Parent module '%.200s' not loaded", buf); return parent; /* We expect, but can't guarantee, if parent != None, that: |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年06月27日 20:35:29 | schmir | set | spambayes_score: 1.97707e-05 -> 1.9770678e-05 recipients: + schmir |
| 2008年06月27日 20:35:29 | schmir | set | spambayes_score: 1.97707e-05 -> 1.97707e-05 messageid: <1214598929.49.0.609710487655.issue3221@psf.upfronthosting.co.za> |
| 2008年06月27日 20:35:28 | schmir | link | issue3221 messages |
| 2008年06月27日 20:35:27 | schmir | create | |