Ross Lagerwall <[email protected]> added the comment: > it's a bit asymmetric that gethostname is in the socket > module and supports Windows, and sethostname is in the POSIX > module. It would be useful to have a gethostname in the POSIX > module also which is a) POSIX only and b) supports embedded > NUL bytes.
According to the spec for gethostname(), the hostname that it returns is null-terminated so it won't support embedded NUL bytes. Should we still add it anyway? ---------- _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue10812> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
