[Python-Dev] xxx.get_fqdn() for the standard lib (original) (raw)
Barry A. Warsaw bwarsaw@beopen.com
Mon, 14 Aug 2000 11:46:50 -0400 (EDT)
- Previous message: [Python-Dev] xxx.get_fqdn() for the standard lib
- Next message: [Python-Dev] xxx.get_fqdn() for the standard lib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"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
- Previous message: [Python-Dev] xxx.get_fqdn() for the standard lib
- Next message: [Python-Dev] xxx.get_fqdn() for the standard lib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]