A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2000-August/008289.html below:

[Python-Dev] xxx.get_fqdn() for the standard lib

[Python-Dev] xxx.get_fqdn() for the standard lib [Python-Dev] xxx.get_fqdn() for the standard libBarry A. Warsaw bwarsaw@beopen.com
Mon, 14 Aug 2000 11:46:50 -0400 (EDT)
>>>>> "PS" == Peter Schneider-Kamp <nowonder@nowonder.de> writes:

    PS> After sleeping over it, I noticed that at least
    PS> BaseHTTPServer and ftplib also use a similar
    PS> algorithm to get a fully qualified domain name.

    PS> Together with smtplib there are four occurences
    PS> of the algorithm (2 in BaseHTTPServer). I think
    PS> it would be good not to have four, but one
    PS> implementation.

    PS> First I thought it could be socket.get_fqdn(),
    PS> but it seems a bit troublesome to write it in C.

    PS> Should this go somewhere? If yes, where should
    PS> it go?

    PS> I'll happily prepare a patch as soon as I know
    PS> where to put it.

I wonder if we should move socket to _socket and write a Python
wrapper which would basically import * from _socket and add
make_fqdn().

-Barry



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