Message197757
Charles-François Natali, sorry I just noticed Ezio's comment. The all_ins function return -1 on failure and 0 on success.
I use this form:
if (all_ins(m))
return NULL;
because I follow the example in Modules/posixmodule.c. If this form:
if (all_ins(m) < 0)
return NULL;
is better, then so be it, here is the patch to accommodate Ezio's suggestion. |
|
Date |
User |
Action |
Args |
2013-09-15 09:06:36 | vajrasky | set | recipients:
+ vajrasky, vstinner, ezio.melotti, neologix |
2013-09-15 09:06:36 | vajrasky | set | messageid: <1379235996.43.0.984192675751.issue18994@psf.upfronthosting.co.za> |
2013-09-15 09:06:36 | vajrasky | link | issue18994 messages |
2013-09-15 09:06:36 | vajrasky | create | |
|