[Python-Dev] Re: tp_clear return value

Neil Schemenauer nas@python.ca
Thu, 10 Apr 2003 14:04:55 -0700


Tim Peters wrote:
> [martin@v.loewis.de]
> > Beautiful is better than ugly.
> 
> Whish is another reason <wink> it would be nice to get rid of the endlessly
> repeated masses of ugly
> 
> 	if (err)
> 		return err;
> 
> incantations out of the many tp_traverse slots, in return for putting a
> little bit of setjmp/longjmp ugliness in exactly four functions hiding in a
> single module.

I agree that concentrating the ugliness is good.  However, how portable
is setjmp/longjmp?  The manual page I have says C99.  Can we rely on it
being available?  If not, could we just disable the gcmodule functions
that depend on it?

  Neil