Re: [Python-3000] PyInt_AS_LONG error checking

2007-10-23 Thread Georg Brandl
Martin v. Löwis schrieb: >> PyInt_AS_LONG is #defined as PyLong_AsLong since the int/long unification. >> >> However, most places that use this macro (and also places that >> use PyInt_AsLong) assume it cannot fail which means that an exception >> won't be properly propagated in that case. >> >>

Re: [Python-3000] PyInt_AS_LONG error checking

2007-10-23 Thread Martin v. Löwis
> PyInt_AS_LONG is #defined as PyLong_AsLong since the int/long unification. > > However, most places that use this macro (and also places that > use PyInt_AsLong) assume it cannot fail which means that an exception > won't be properly propagated in that case. > > If I don't overlook something he