python – What do the values ​​of the os.name attribute mean?

Question:

Understanding the os module. The os.name attribute contains one of the following values: posix, nt, os2, ce, java, riscos.

Posix, nt, os2, rscos – this is understandable. What do the rest, java and ce mean?

Didn't find an explanation in the docs

Answer:

There are many different implementations of Python . Chief among which is CPython . Also compatible with it are: IronPython , Jython and PyPy .

  • inCPython , the following are supported as the value of the os.name attribute:
    • posix
    • nt
  • IronPython :
    • posix
    • nt
    • ce – Windows CE
  • Jython :
    • posix
    • nt
    • os2
    • ce – Windows CE
    • riscos – RISC OS
    • ibmi-IBM
    • java – Jython
  • pypy :
    • posix
    • nt
    • os2
    • ce – Windows CE
    • riscos – RISC OS
Scroll to Top