[Patches] getpath patch (repost)

Fred L. Drake fdrake@acm.org
Tue, 23 May 2000 08:20:27 -0700 (PDT)


On Tue, 23 May 2000, M.-A. Lemburg wrote:
 > The fatal error produces the core dump... so its not all
 > that bad ;-)

  Sigh.  Perhaps we need a non-coring Py_FatalErrorXXX()?  I don't think a
core dump is justifiable or desirable for something better explained on
stderr.  This is *not* a condition that occurs after user code begins
execution, and should be treated differently.  If I pass a bad command
line parameter, I get a useful message, no core file, and a meaningful
result code.  I don't see a reason not to do differently here; the error
comes from a different source (bad installation rather than a user error),
but the user needs to be able to scream and shout to the sysadmin, *not*
clean up core dumps.

 > It could be solved by adding an exceptions.py fall-back builtin
 > solution to the interpreter. Fredrik had a pointer for something
 > like this... perhaps the two patches should go in together ?!

  Perhaps; but in that case, why use the external module?  Unless this is
the "partially frozen" interpreter we've talked about here a few times?


  -Fred


-- 
Fred L. Drake, Jr.  <fdrake at acm.org>