[docs] [issue16413] Non cross-platform behavior of os.path.split

Serhiy Storchaka report at bugs.python.org
Mon Nov 5 12:29:36 CET 2012


Serhiy Storchaka added the comment:

.. note::

   Since different operating systems have different path name conventions, there
   are several versions of this module in the standard library.  The
   :mod:`os.path` module is always the path module suitable for the operating
   system Python is running on, and therefore usable for local paths.  However,
   you can also import and use the individual modules if you want to manipulate
   a path that is *always* in one of the different formats.  They all have the
   same interface:

   * :mod:`posixpath` for UNIX-style paths
   * :mod:`ntpath` for Windows paths
   * :mod:`macpath` for old-style MacOS paths

----------
nosy: +serhiy.storchaka
resolution:  -> invalid

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


More information about the docs mailing list