Kaydet (Commit) de115618 authored tarafından Yury Selivanov's avatar Yury Selivanov

Further improve os.path.commonprefix() docs.

Patch by Serhiy Storchaka.
üst e7e69391
......@@ -92,11 +92,11 @@ the :mod:`glob` module.)
::
>>> os.path.commonprefix(['/dir1/dir2', '/dir3/dir4'])
'/dir'
>>> os.path.commonprefix(['/usr/lib', '/usr/local/lib'])
'/usr/l'
>>> os.path.commonpath(['/dir1/dir2', '/dir3/dir4'])
'/'
>>> os.path.commonpath(['/usr/lib', '/usr/local/lib'])
'/usr'
.. function:: dirname(path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment