[Python-Dev] module extension search order - can it be changed?

Michael Hudson mwh@python.net
Fri, 28 Feb 2003 15:07:37 +0000


"Mark Hammond" <mhammond@skippinet.com.au> writes:

> [Michael]
>> It Would Be Nice (tm) if the code that printed tracebacks could be
>> made cleverer in some fashion.
>
> I guess this could be a 2-stage thing:
> * Delegate the dumping of tracebacks in C code back to the traceback module.
> I guess that the existing code would need to remain if an error is raised
> printing it, but in general, traceback does a fine job.

Yes, I've thought about this several times.  I always get scared by
the general copmlexity of it all, and bootstrapping issues.

> * Give linecache some additional smarts.  Once we are back in Python land,
> the possibilities become vast.

While we're at it, linecache's charming habit of occasionally giving
out of date information is Pure Evil.  Performance my arse, lying to
the user is worse.

Cheers,
M.

-- 
  Hey, if I thought I was wrong, I'd change my mind.  :)
                                    -- Grant Edwards, comp.lang.python