Skip to content

Commit 953a2e3

Browse files
authored
Update os.path.rst
1 parent 231335f commit 953a2e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/os.path.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ the :mod:`glob` module.)
248248

249249
.. versionchanged:: 3.6
250250
Accepts a :term:`path-like object`.
251+
251252
.. versionchanged:: 3.13
252253
On Windows, returns ``False`` if the given path starts with exactly one
253254
(back)slash.
@@ -362,7 +363,7 @@ the :mod:`glob` module.)
362363

363364
If a segment is an absolute path (which on Windows requires both a drive and
364365
a root), then all previous segments are ignored and joining continues from the
365-
absolute path segment. For instance::
366+
absolute path segment. For example::
366367

367368
>>> os.path.join('/home/foo', 'bar')
368369
'/home/foo/bar'
@@ -372,7 +373,7 @@ the :mod:`glob` module.)
372373
On Windows, the drive is not reset when a rooted path segment (e.g.,
373374
``r'\foo'``) is encountered. If a segment is on a different drive or is an
374375
absolute path, all previous segments are ignored and the drive is reset. For
375-
instance::
376+
example::
376377

377378
>>> os.path.join('c:\\', 'foo')
378379
'c:\\foo'

0 commit comments

Comments
 (0)