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.

Author martin.panter
Recipients martin.panter, vstinner
Date 2015-09-19.07:01:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442646080.64.0.19453552245.issue25138@psf.upfronthosting.co.za>
In-reply-to
Content
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”.
History
Date User Action Args
2015-09-19 07:01:20martin.pantersetrecipients: + martin.panter, vstinner
2015-09-19 07:01:20martin.pantersetmessageid: <1442646080.64.0.19453552245.issue25138@psf.upfronthosting.co.za>
2015-09-19 07:01:20martin.panterlinkissue25138 messages
2015-09-19 07:01:20martin.pantercreate