Re: [Python-Dev] ImportError message suggestion

2008-08-19 Thread Matt Giuca
I think this is not the place to be discussing the patch (the tracker is), but while I think of it, I'll just say: You need to DECREF the fn variable (both PyObject_GetAttrStringand PyString_FromString ret

Re: [Python-Dev] ImportError message suggestion

2008-08-19 Thread Matt Giuca
> ImportError: cannot import name annotate from /usr//image.pyc That could be handy. Not sure it's necessary, however, and exposes some system information in the error message. I can imagine a web app which prints out exception messages, and this would mean the server file structure is printed t

Re: [Python-Dev] ImportError message suggestion

2008-08-19 Thread Aahz
On Tue, Aug 19, 2008, Kent Tenney wrote: > > I can't write the C code myself, or evaluate the patch. Maybe not, but maybe you can upload them to the bug tracker -- that's the only way this will get looked at. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ Adopt A P

[Python-Dev] ImportError message suggestion

2008-08-19 Thread Kent Tenney
Howdy, I brought this up on c.l.p., was encouraged to try it here. http://groups.google.com/group/comp.lang.python/browse_thread/thread/88474a32877026fc/ == from image import annotate ImportError: cannot import name annotate I found the problem via