[Python-Dev] are NULL checks in Objects/abstract.c reallyneeded?

Raymond Hettinger python@rcn.com
Thu, 13 Mar 2003 15:16:03 -0500


> > Can we get most of the same benefit by using 
> > an assert() rather than NULL-->SystemError?
> 
> No.  assert() causes the program to fail.  SystemError() raises an
> exception and lets the program keep going.  Those are vastly different
> effects.

Of course.  My thought was that either one will come to the
attention of the extension writer before the extension goes out.
But then, if the code in question never got excercised, then it
would crash in the hands of a user.


Raymond Hettinger

#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################