Message188531
In many cases, PyModule_AddIntMacro() could be used instead of PyModule_AddIntConstant(), e.g. in socketmodule.c and posixmodule.c:
PyModule_AddIntMacro(m, AF_INET6);
vs (currently)
PyModule_AddIntConstant(m, "AF_INET6", AF_INET6);
It reduces the possibility of typo and is less verbose. |
|
Date |
User |
Action |
Args |
2013-05-06 13:10:37 | neologix | set | recipients:
+ neologix |
2013-05-06 13:10:37 | neologix | set | messageid: <1367845837.62.0.789153792923.issue17917@psf.upfronthosting.co.za> |
2013-05-06 13:10:37 | neologix | link | issue17917 messages |
2013-05-06 13:10:37 | neologix | create | |
|