A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-March/077931.html below:

[Python-Dev] platform management

[Python-Dev] platform management"Martin v. Löwis" martin at v.loewis.de
Thu Mar 20 17:42:26 CET 2008
> Looking at http://docs.python.org/lib/module-os.html, I find the following:
> 
>   name
>   
>     The name of the operating system dependent module imported. The
>     following names have currently been registered: 'posix', 'nt', 'mac',
>     'os2', 'ce', 'java', 'riscos'.
> 
> This implies that there's a registry somewhere?

This is actually the list of names that the "os" module may take.
There are different implementations of the os module, so instead of
"import os", you could write "import posix", "import nt", "import ce"
(assuming you run on one of these systems).

So it really has not much to do with the name of the operating system,
but rather with the name Python gives to the API.

Regards,
Martin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4