[Python-3000] PEP: Cleaning out sys and the "interpreter" module
Guido van Rossum
guido at python.org
Thu Apr 10 01:08:06 CEST 2008
On Wed, Apr 9, 2008 at 4:05 PM, Bill Janssen <janssen at parc.com> 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/)
More information about the Python-3000
mailing list