[Jim Fulton]
> Ugh. Part of the problem is that all of those calls are unchecked,
> Dang us.  If they were checked, then, who knows, we might have
> gotten informative exceptions.

They certainly "should" be checked, but as a pragmatic matter
PyInt_FromLong(1) can't fail -- Python allocates an int object for 1
(and for about 100 other popular little integers) when it starts up,
and PyInt_FromLong() just returns a new reference to these
pre-existing objects whenever possible.  So, wrt:

> I'd say the first step should be to add checks

that's probably not going to help.  I'd make it the fourth thing <wink>.
_______________________________________________
Python-Dev mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to