This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2016年06月29日 02:54 by martin.panter, last changed 2022年04月11日 14:58 by admin.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| socket-const.patch | martin.panter, 2016年06月29日 02:54 | review | ||
| Messages (1) | |||
|---|---|---|---|
| msg269460 - (view) | Author: Martin Panter (martin.panter) * (Python committer) | Date: 2016年06月29日 02:54 | |
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. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:33 | admin | set | github: 71596 |
| 2019年05月03日 16:44:31 | zach.ware | set | messages: - msg341325 |
| 2019年05月03日 06:07:00 | Martha Simons | set | nosy:
+ Martha Simons messages: + msg341325 |
| 2019年03月05日 19:34:58 | giampaolo.rodola | set | nosy:
+ giampaolo.rodola |
| 2017年08月12日 05:23:44 | martin.panter | link | issue1732367 dependencies |
| 2016年06月29日 02:54:56 | martin.panter | create | |