Message244008
| Author |
mbussonn |
| Recipients |
BreamoreBoy, eric.snow, larry, mbussonn, ncoghlan, petr.viktorin, python-dev, steve.dower, zach.ware |
| Date |
2015年05月24日.23:36:15 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1432510575.59.0.605854932086.issue24268@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Hi,
Since the last few patches related to this, I seem to have an issue with `Python/importdl.c:get_encoded_name` (I guess) sometime returning the name with a leading dot. This lead to `PyInit_.modulename` being searched which fails.
My C-foo is extremely low, but changing [1] to `lastdot+1`
seem to do the trick for me (hence above supposition).
More especially in my case compiling Cython `failed to import Cython: dynamic module does not define module export function (PyInit_.Scanning)`, from `import Cython.Compiler.Scanning` I suppose. While it seem to does that ok with the `+1`.
I haven't found any related issues, and my read of pep 489 made me think this was not meant to change, Though I doubt my fix is correct.
Sorry if duplicate or already fixed, I searched as I could but did not found anything.
Thanks.
[1] https://hg.python.org/cpython/rev/e729b946cc03#l29.59 |
|