Message276660
I agree the doc is far from perfect. The bit I was going off is just above <https://docs.python.org/3.5/library/socket.html#socket.socket.family>, saying “these (read-only) attributes that correspond to the values given to the socket constructor”.
My instinct would be to clarify that for existing versions 2.7, 3.5, etc, that the constructor arguments are _not_ ignored and should correspond to the file descriptor. Then in the next Python version we can make it more automatic using the getsockopt() techniques. |
|
Date |
User |
Action |
Args |
2016-09-16 01:56:08 | martin.panter | set | recipients:
+ martin.panter, christian.heimes, r.david.murray |
2016-09-16 01:56:08 | martin.panter | set | messageid: <1473990968.18.0.711587794178.issue28134@psf.upfronthosting.co.za> |
2016-09-16 01:56:08 | martin.panter | link | issue28134 messages |
2016-09-16 01:56:07 | martin.panter | create | |
|