[Python-Dev] ImportError message suggestion
matt.giuca at gmail.com
Tue Aug 19 19:17:37 CEST 2008
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
references). If this makes no sense, read up on reference
- Do you really want "?" if you can't get the filename for some reason --
why not just not say anything?
- Perhaps don't create a new variable "fn", use one of the many defined
at the top of the eval function.
Otherwise, looks like it will do the job.
But I haven't tested it, just eyeballed it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev