On Wed, Apr 9, 2008 at 4:05 PM, Bill Janssen <[EMAIL PROTECTED]> wrote: > > That's not the Python spirit. The spirit is that *if* they support > > similar enough functionality the APIs should be named the same, in the > > same module, and have the same signature. E.g. the os module is built > > on this principle. Many APIs there are optional, but if they exist, > > they have a known name and spec. (The posix/nt underlying modules are > > implementation details that most users never need to know about.) > > Does that mean I can fix the signature issues with socket.gethostname()? > > http://bugs.python.org/issue1049
I think in that case the spec includes the possibility of raising an exception, but not the possibility of returning None, so, no. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com