[issue27409] List socket.SO_*, SCM_*, MSG_*, IPPROTO_* symbols

New submission from Martin Panter: The documentation just says that SO_* etc constants are defined. However when people add new ones, they add them as new features to a specific version (not backported as bug fixes), but do not alter the documentation at all. IMO it is silly adding undocumented features. E.g. Issue 26907 was opened to add (among others) SO_PASSCRED, which was already added, undocumented, as part of Issue 6560. This patch attempts to indicate which symbols are defined by Python (depending on OS availability), and therefore one can deduce if Python does not define a particular symbol. It could be adapted to the 2.7 documentation, but I am not really motivated for that on my own. I also remove a redundant definition in the module, and removed a conditional because SO_REUSEADDR is required to always be defined according to the test suite. These specific changes should only be applied to 3.6. I also found Issue 1732367, which has a patch documenting each AF_* symbol in a little more detail. That patch was never updated nor comitted, but it sounds like this kind of addition might be acceptable. ---------- assignee: docs@python components: Documentation files: socket-const.patch keywords: patch messages: 269460 nosy: docs@python, martin.panter priority: normal severity: normal stage: patch review status: open title: List socket.SO_*, SCM_*, MSG_*, IPPROTO_* symbols versions: Python 3.5, Python 3.6 Added file: http://bugs.python.org/file43573/socket-const.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue27409> _______________________________________

Change by Giampaolo Rodola' <g.rodola@gmail.com>: ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue27409> _______________________________________

Martha Simons <marthasimons9999@gmail.com> added the comment: That patch was never updated nor comitted, but it sounds like this kind of addition might be https://goo.gl/LhppLn acceptable. ---------- nosy: +Martha Simons _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue27409> _______________________________________

Change by Zachary Ware <zachary.ware@gmail.com>: ---------- Removed message: https://bugs.python.org/msg341325 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue27409> _______________________________________
participants (4)
-
Giampaolo Rodola'
-
Martha Simons
-
Martin Panter
-
Zachary Ware