New submission from Charles-François Natali:

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.

----------
keywords: easy
messages: 188531
nosy: neologix
priority: low
severity: normal
stage: needs patch
status: open
title: use PyModule_AddIntMacro() instead of PyModule_AddIntConstant() when 
applicable
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17917>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to