[issue10812] Add some posix functions

Martin v. Löwis report at bugs.python.org
Sat Jan 8 00:40:26 CET 2011


Martin v. Löwis <martin at v.loewis.de> added the comment:

> 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?

Oops, I misread the spec. No, gethostname should then not be duplicated.
Putting sethostname into the socket module might be worth considering,
though; I find the proposed split confusing.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10812>
_______________________________________


More information about the Python-bugs-list mailing list