[Python-Dev] RE: [Python-checkins] python/dist/src/Objects typeobject.c, 2.244, 2.245
Greg Ewing
greg at cosc.canterbury.ac.nz
Thu Oct 9 00:17:55 EDT 2003
More information about the Python-Dev mailing list
Thu Oct 9 00:17:55 EDT 2003
- Previous message: [Python-Dev] RE: [Python-checkins] python/dist/src/Objectstypeobject.c, 2.244, 2.245
- Next message: [Python-Dev] RE: [Python-checkins] python/dist/src/Objects typeobject.c, 2.244, 2.245
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido van Rossum <guido at python.org>: > Maybe PyBool_FromLong() itself could make this unneeded by adding > something like > > if (ok < 0 && PyErr_Occurred()) > return NULL; > > to its start? Not sure if it would be a good idea to encourage reliance on one API function doing error checking on behalf of others. I can see someone coming along later and adding some code in between whatever returned the result and the PyBool_FromLong call, not realising that doing so would upset the error checking. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg at cosc.canterbury.ac.nz +--------------------------------------+
- Previous message: [Python-Dev] RE: [Python-checkins] python/dist/src/Objectstypeobject.c, 2.244, 2.245
- Next message: [Python-Dev] RE: [Python-checkins] python/dist/src/Objects typeobject.c, 2.244, 2.245
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list