Message251059
Maybe it is good enough use something like this as a workaround, with an appropriate comment:
if e.errno == getattr(socket, "EAI_NODATA", None): # Symbol not defined on FreeBSD
However I wonder if it would be reasonable to set this constant (and similar undefined error codes) to a dummy value like None by default in the module. The documentation already says “for a few symbols, default values are provided”. |
|
Date |
User |
Action |
Args |
2015-09-19 07:01:20 | martin.panter | set | recipients:
+ martin.panter, vstinner |
2015-09-19 07:01:20 | martin.panter | set | messageid: <1442646080.64.0.19453552245.issue25138@psf.upfronthosting.co.za> |
2015-09-19 07:01:20 | martin.panter | link | issue25138 messages |
2015-09-19 07:01:20 | martin.panter | create | |
|