Suggestion for improved ImportError message
Wojtek Walczak
gminick at nie.ma.takiego.adresu.w.sieci.pl
Thu Aug 14 06:10:56 EDT 2008
On Thu, 14 Aug 2008 01:35:44 +0000 (UTC), Kent Tenney wrote:
>> > Then go for it You can prepare a patch and ask on python-dev
>> > if the developers are interested.
>
> hehe, I'll get a C level patch accepted right after I
> out-swim Mike Phelps.
It's really not that hard. The only hard thing (harder than
writing the code) might be to win the acceptance of the core
developers that this change is really needed ;-)
>> > I was never hacking the import things on C level before,
>> > but a hint: you have to modify import_from function from
>> > Python/ceval.c
>
> Am I correct in thinking that PyPy would mean low level
> stuff like this will be Python instead of C?
> That would be nice.
I don't know PyPy, but I guess you're right here.
--
Regards,
Wojtek Walczak,
http://www.stud.umk.pl/~wojtekwa/
More information about the Python-list
mailing list