homepage

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 dmalcolm
Recipients dmalcolm
Date 2012年08月09日.20:04:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344542648.98.0.69001231241.issue15610@psf.upfronthosting.co.za>
In-reply-to
Content
I've been testing various 3rd-party python code against 3.3b1, and see
 ValueError: level must be >= 0
exceptions where C code is using PyImport_ImportModuleEx.
PyImport_ImportModuleEx reads as
 63 #define PyImport_ImportModuleEx(n, g, l, f) \
 64 PyImport_ImportModuleLevel(n, g, l, f, -1)
within http://hg.python.org/cpython/file/aaa68dce117e/Include/import.h as of now (2012年08月09日)
Within PyImport_ImportModuleLevel there's this check:
 1280 if (level < 0) {
 1281 PyErr_SetString(PyExc_ValueError, "level must be >= 0");
 1282 goto error;
 1283 }
which thus always fires.
So it would seem that currently any usage of PyImport_ImportModuleEx will fail.
History
Date User Action Args
2012年08月09日 20:04:09dmalcolmsetrecipients: + dmalcolm
2012年08月09日 20:04:08dmalcolmsetmessageid: <1344542648.98.0.69001231241.issue15610@psf.upfronthosting.co.za>
2012年08月09日 20:04:08dmalcolmlinkissue15610 messages
2012年08月09日 20:04:07dmalcolmcreate

AltStyle によって変換されたページ (->オリジナル) /