]> granicus.if.org Git - python/commit
Don't repeat yourself
authorChristian Heimes <christian@cheimes.de>
Tue, 22 Jan 2008 15:25:18 +0000 (15:25 +0000)
committerChristian Heimes <christian@cheimes.de>
Tue, 22 Jan 2008 15:25:18 +0000 (15:25 +0000)
commit74b8e76ec1d85feacaa5e96b60a9c7f21026508f
tree07b20fdd26c0d2f54bb4d8ea3fef22658542b44b
parent690c91220e06b6e3214c8a8efc214db276967b09
Don't repeat yourself
Added the macros PyModule_AddIntMacro and PyModule_AddStringMacro. They shorten PyModule_AddIntConstant(m, "AF_INET", AF_INET) to PyModule_AddIntMacro(m, AF_INET)
Doc/c-api/module.rst
Include/modsupport.h