A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-June/073721.html below:

[Python-Dev] Return error codes from getaddrinfo.

[Python-Dev] Return error codes from getaddrinfo. [Python-Dev] Return error codes from getaddrinfo."Martin v. Löwis" martin at v.loewis.de
Wed Jun 27 23:47:49 CEST 2007
> Is there supposed to be symbolic constants in the errno module 
> corresponding to getaddrinfo errors?

No. On Windows, there is a separate set of error codes, winerror.h

If you google for "winerror 11001", you find quickly that it is
"host not found".

> I want jython to use the same errno symbolic constants as cpython, to 
> ease portability of code.

That will be very difficult to achieve, as Python is (deliberately)
not even consistent across systems. Instead, it reports what the
platform reports, so you should do the same in Java.

Regards,
Martin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4