chunk_id
stringlengths
36
36
source
stringclasses
35 values
source_url
stringlengths
0
290
upstream_license
stringclasses
1 value
document_id
stringlengths
36
36
chunk_index
int64
0
324k
retrieved_at
stringclasses
2 values
chunker_version
stringclasses
4 values
content_hash
stringlengths
15
64
content
stringlengths
50
44.7k
namespace
stringclasses
9 values
source_name
stringclasses
35 values
raw_text
stringlengths
50
44.7k
cleaned_text
stringlengths
50
44.7k
tags
stringclasses
49 values
collection_name
stringclasses
11 values
e1ee88e4-2a34-4f94-b4c8-4e4426602d0a
CPython Docs
file://datasets/cpython/Doc/library/locale.rst
unknown
bee6be37-ccb3-44c4-bb92-d247ec047e20
8,709
supabase-export-v2
0f7157aacdec6048
can only be used portably to restore it, that is not very useful (except perhaps to find out whether or not the locale is ``C``). When Python code uses the :mod:`!locale` module to change the locale, this also affects the embedding application. If the embedding application doesn't want this to happen, it should remove ...
trusted_official_docs
CPython Docs
can only be used portably to restore it, that is not very useful (except perhaps to find out whether or not the locale is ``C``). When Python code uses the :mod:`!locale` module to change the locale, this also affects the embedding application. If the embedding application doesn't want this to happen, it should remove ...
can only be used portably to restore it, that is not very useful (except perhaps to find out whether or not the locale is ``C``). When Python code uses the :mod:`!locale` module to change the locale, this also affects the embedding application. If the embedding application doesn't want this to happen, it should remove ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e50d81a0-0c03-4e0b-9a99-c3a2d8648bd6
CPython Docs
file://datasets/cpython/Doc/library/locale.rst
unknown
bee6be37-ccb3-44c4-bb92-d247ec047e20
8,565
supabase-export-v2
5c0c661ce79bbd68
should follow the value and | | | currency symbol. | +--------------+-----------------------------------------+ | ``3`` | The sign should immediately precede the | | | value. | +--------------+-----------------------------------------+ | ``4`` | The sign should immediately follow the | | | value. | +--------------+...
trusted_official_docs
CPython Docs
should follow the value and | | | currency symbol. | +--------------+-----------------------------------------+ | ``3`` | The sign should immediately precede the | | | value. | +--------------+-----------------------------------------+ | ``4`` | The sign should immediately follow the | | | value. | +--------------+...
should follow the value and | | | currency symbol. | +--------------+-----------------------------------------+ | ``3`` | The sign should immediately precede the | | | value. | +--------------+-----------------------------------------+ | ``4`` | The sign should immediately follow the | | | value. | +--------------+...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e95524fb-2ca7-47bf-a377-cf164af4c910
CPython Docs
file://datasets/cpython/Doc/library/locale.rst
unknown
bee6be37-ccb3-44c4-bb92-d247ec047e20
8,562
supabase-export-v2
14c76dd58c42158f
| ``'p_sign_posn/n_sign_posn'`` | The position of the sign (for | | | | positive resp. negative | | | | values), see below. | +----------------------+-------------------------------------+--------------------------------+ All numeric values can be set to :const:`CHAR_MAX` to indicate that there is no value specified i...
trusted_official_docs
CPython Docs
| ``'p_sign_posn/n_sign_posn'`` | The position of the sign (for | | | | positive resp. negative | | | | values), see below. | +----------------------+-------------------------------------+--------------------------------+ All numeric values can be set to :const:`CHAR_MAX` to indicate that there is no value specified i...
| ``'p_sign_posn/n_sign_posn'`` | The position of the sign (for | | | | positive resp. negative | | | | values), see below. | +----------------------+-------------------------------------+--------------------------------+ All numeric values can be set to :const:`CHAR_MAX` to indicate that there is no value specified i...
python, official-docs, cpython, P0
Local_Trusted_Corpus
eb965018-537c-4d93-ae70-c3f566615334
CPython Docs
file://datasets/cpython/Doc/library/locale.rst
unknown
bee6be37-ccb3-44c4-bb92-d247ec047e20
8,564
supabase-export-v2
63c9cdaf5db74fc6
The possible values for ``'p_sign_posn'`` and ``'n_sign_posn'`` are given below. +--------------+-----------------------------------------+ | Value | Explanation | +==============+=========================================+ | ``0`` | Currency and value are surrounded by | | | parentheses. | +--------------+--------...
trusted_official_docs
CPython Docs
The possible values for ``'p_sign_posn'`` and ``'n_sign_posn'`` are given below. +--------------+-----------------------------------------+ | Value | Explanation | +==============+=========================================+ | ``0`` | Currency and value are surrounded by | | | parentheses. | +--------------+--------...
The possible values for ``'p_sign_posn'`` and ``'n_sign_posn'`` are given below. +--------------+-----------------------------------------+ | Value | Explanation | +==============+=========================================+ | ``0`` | Currency and value are surrounded by | | | parentheses. | +--------------+--------...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ed7e9bfd-02d3-45e0-888c-3534be7cfbc3
CPython Docs
file://datasets/cpython/Doc/library/locale.rst
unknown
bee6be37-ccb3-44c4-bb92-d247ec047e20
8,628
supabase-export-v2
57f57be9a556c65c
preferences. User preferences are expressed differently on different systems, and might not be available programmatically on some systems, so this function only returns a guess. On some systems, it is necessary to invoke :func:`setlocale` to obtain the user preferences, so this function is not thread-safe. If invoking...
trusted_official_docs
CPython Docs
preferences. User preferences are expressed differently on different systems, and might not be available programmatically on some systems, so this function only returns a guess. On some systems, it is necessary to invoke :func:`setlocale` to obtain the user preferences, so this function is not thread-safe. If invoking...
preferences. User preferences are expressed differently on different systems, and might not be available programmatically on some systems, so this function only returns a guess. On some systems, it is necessary to invoke :func:`setlocale` to obtain the user preferences, so this function is not thread-safe. If invoking...
python, official-docs, cpython, P0
Local_Trusted_Corpus
edbe3537-d48e-4225-889d-e286a35ce1ea
CPython Docs
file://datasets/cpython/Doc/library/locale.rst
unknown
bee6be37-ccb3-44c4-bb92-d247ec047e20
8,702
supabase-export-v2
12ee5916472fddca
.. productionlist:: locale_name : language ["_" territory] ["." charset] where *language* and *territory* are full names, such as "English" and "United States", and *charset* is either a code page number (for example, "1252") or UTF-8. Only the underscore separator is supported in this format.
trusted_official_docs
CPython Docs
.. productionlist:: locale_name : language ["_" territory] ["." charset] where *language* and *territory* are full names, such as "English" and "United States", and *charset* is either a code page number (for example, "1252") or UTF-8. Only the underscore separator is supported in this format.
.. productionlist:: locale_name : language ["_" territory] ["." charset] where *language* and *territory* are full names, such as "English" and "United States", and *charset* is either a code page number (for example, "1252") or UTF-8. Only the underscore separator is supported in this format.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ee134c71-6dc2-42c5-acab-676bf43331a6
CPython Docs
file://datasets/cpython/Doc/library/locale.rst
unknown
bee6be37-ccb3-44c4-bb92-d247ec047e20
8,629
supabase-export-v2
2c64b4d8629acdd5
to obtain the user preferences, so this function is not thread-safe. If invoking setlocale is not necessary or desired, *do_setlocale* should be set to ``False``. On Android or if the :ref:`Python UTF-8 Mode <utf8-mode>` is enabled, always return ``'utf-8'``, the :term:`locale encoding` and the *do_setlocale* argumen...
trusted_official_docs
CPython Docs
to obtain the user preferences, so this function is not thread-safe. If invoking setlocale is not necessary or desired, *do_setlocale* should be set to ``False``. On Android or if the :ref:`Python UTF-8 Mode <utf8-mode>` is enabled, always return ``'utf-8'``, the :term:`locale encoding` and the *do_setlocale* argumen...
to obtain the user preferences, so this function is not thread-safe. If invoking setlocale is not necessary or desired, *do_setlocale* should be set to ``False``. On Android or if the :ref:`Python UTF-8 Mode <utf8-mode>` is enabled, always return ``'utf-8'``, the :term:`locale encoding` and the *do_setlocale* argumen...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f37011e8-edc8-4c23-aad4-9fdcc46127a5
CPython Docs
file://datasets/cpython/Doc/library/locale.rst
unknown
bee6be37-ccb3-44c4-bb92-d247ec047e20
8,624
supabase-export-v2
5d92ba01388f9d2b
locale category as a tuple containing the language code and encoding. *category* may be one of the :const:`!LC_\*` values except :const:`LC_ALL`. It defaults to :const:`LC_CTYPE`. The language code has the same format as a :ref:`locale name <locale_name>`, but without encoding. The language code and encoding may be ``...
trusted_official_docs
CPython Docs
locale category as a tuple containing the language code and encoding. *category* may be one of the :const:`!LC_\*` values except :const:`LC_ALL`. It defaults to :const:`LC_CTYPE`. The language code has the same format as a :ref:`locale name <locale_name>`, but without encoding. The language code and encoding may be ``...
locale category as a tuple containing the language code and encoding. *category* may be one of the :const:`!LC_\*` values except :const:`LC_ALL`. It defaults to :const:`LC_CTYPE`. The language code has the same format as a :ref:`locale name <locale_name>`, but without encoding. The language code and encoding may be ``...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f5aa760e-1cde-4e46-92f8-e4b24152a05a
CPython Docs
file://datasets/cpython/Doc/library/locale.rst
unknown
bee6be37-ccb3-44c4-bb92-d247ec047e20
8,708
supabase-export-v2
ccb92a0d502cdb85
For extension writers and programs that embed Python ---------------------------------------------------- Extension modules should never call :func:`setlocale`, except to find out what the current locale is. But since the return value can only be used portably to restore it, that is not very useful (except perhaps to f...
trusted_official_docs
CPython Docs
For extension writers and programs that embed Python ---------------------------------------------------- Extension modules should never call :func:`setlocale`, except to find out what the current locale is. But since the return value can only be used portably to restore it, that is not very useful (except perhaps to f...
For extension writers and programs that embed Python ---------------------------------------------------- Extension modules should never call :func:`setlocale`, except to find out what the current locale is. But since the return value can only be used portably to restore it, that is not very useful (except perhaps to f...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fa28a40d-289c-4acc-becb-0530681680cd
CPython Docs
file://datasets/cpython/Doc/library/locale.rst
unknown
bee6be37-ccb3-44c4-bb92-d247ec047e20
8,548
supabase-export-v2
fc7dc5a738177bcb
an umlaut >>> locale.setlocale(locale.LC_ALL, '') # use user's preferred locale >>> locale.setlocale(locale.LC_ALL, 'C') # use default (C) locale >>> locale.setlocale(locale.LC_ALL, loc) # restore saved locale :func:`setlocale` is not thread-safe on most systems. Applications typically start with a call of::
trusted_official_docs
CPython Docs
an umlaut >>> locale.setlocale(locale.LC_ALL, '') # use user's preferred locale >>> locale.setlocale(locale.LC_ALL, 'C') # use default (C) locale >>> locale.setlocale(locale.LC_ALL, loc) # restore saved locale :func:`setlocale` is not thread-safe on most systems. Applications typically start with a call of::
an umlaut >>> locale.setlocale(locale.LC_ALL, '') # use user's preferred locale >>> locale.setlocale(locale.LC_ALL, 'C') # use default (C) locale >>> locale.setlocale(locale.LC_ALL, loc) # restore saved locale :func:`setlocale` is not thread-safe on most systems. Applications typically start with a call of::
python, official-docs, cpython, P0
Local_Trusted_Corpus
ffb88a37-60de-433c-b496-71618578b71e
CPython Docs
file://datasets/cpython/Doc/library/locale.rst
unknown
bee6be37-ccb3-44c4-bb92-d247ec047e20
8,602
supabase-export-v2
9c7eb6aa974fa479
.. data:: CRNCYSTR Get the currency symbol, preceded by "-" if the symbol should appear before the value, "+" if the symbol should appear after the value, or "." if the symbol should replace the radix character.
trusted_official_docs
CPython Docs
.. data:: CRNCYSTR Get the currency symbol, preceded by "-" if the symbol should appear before the value, "+" if the symbol should appear after the value, or "." if the symbol should replace the radix character.
.. data:: CRNCYSTR Get the currency symbol, preceded by "-" if the symbol should appear before the value, "+" if the symbol should appear after the value, or "." if the symbol should replace the radix character.
python, official-docs, cpython, P0
Local_Trusted_Corpus
14d661bc-4c68-4532-acac-f7019dffb69f
CPython Docs
file://datasets/cpython/Doc/library/email.examples.rst
unknown
92953131-599c-4cc2-8749-b413313838e6
8,716
supabase-export-v2
ea57b8c7c508c6a9
:mod:`email`: Examples ---------------------- Here are a few examples of how to use the :mod:`email` package to read, write, and send simple email messages, as well as more complex MIME messages.
trusted_official_docs
CPython Docs
:mod:`email`: Examples ---------------------- Here are a few examples of how to use the :mod:`email` package to read, write, and send simple email messages, as well as more complex MIME messages.
:mod:`email`: Examples ---------------------- Here are a few examples of how to use the :mod:`email` package to read, write, and send simple email messages, as well as more complex MIME messages.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1755e101-03ec-4af5-8b61-45bccdb19160
CPython Docs
file://datasets/cpython/Doc/library/email.examples.rst
unknown
92953131-599c-4cc2-8749-b413313838e6
8,727
supabase-export-v2
5e937842bf79ec57
.. literalinclude:: ../includes/email-unpack.py Here's an example of how to create an HTML message with an alternative plain text version. To make things a bit more interesting, we include a related image in the html part, and we save a copy of what we are going to send to disk, as well as sending it.
trusted_official_docs
CPython Docs
.. literalinclude:: ../includes/email-unpack.py Here's an example of how to create an HTML message with an alternative plain text version. To make things a bit more interesting, we include a related image in the html part, and we save a copy of what we are going to send to disk, as well as sending it.
.. literalinclude:: ../includes/email-unpack.py Here's an example of how to create an HTML message with an alternative plain text version. To make things a bit more interesting, we include a related image in the html part, and we save a copy of what we are going to send to disk, as well as sending it.
python, official-docs, cpython, P0
Local_Trusted_Corpus
65556655-cf3d-4c52-9f0c-85b4bd2784a5
CPython Docs
file://datasets/cpython/Doc/library/email.examples.rst
unknown
92953131-599c-4cc2-8749-b413313838e6
8,717
supabase-export-v2
a2abf2ffdca8112e
a few examples of how to use the :mod:`email` package to read, write, and send simple email messages, as well as more complex MIME messages. First, let's see how to create and send a simple text message (both the text content and the addresses may contain unicode characters):
trusted_official_docs
CPython Docs
a few examples of how to use the :mod:`email` package to read, write, and send simple email messages, as well as more complex MIME messages. First, let's see how to create and send a simple text message (both the text content and the addresses may contain unicode characters):
a few examples of how to use the :mod:`email` package to read, write, and send simple email messages, as well as more complex MIME messages. First, let's see how to create and send a simple text message (both the text content and the addresses may contain unicode characters):
python, official-docs, cpython, P0
Local_Trusted_Corpus
44ff2a63-cc6d-41cf-b83d-ec9051297aec
CPython Docs
file://datasets/cpython/Doc/library/posix.rst
unknown
165c2365-9624-4f81-a85c-62895cc28627
8,745
supabase-export-v2
69cf72e123eacc6e
in using it instead of :mod:`!posix`. In addition, :mod:`os` provides some additional functionality, such as automatically calling :func:`~os.putenv` when an entry in ``os.environ`` is changed. Errors are reported as exceptions; the usual exceptions are given for type errors, while errors reported by the system calls r...
trusted_official_docs
CPython Docs
in using it instead of :mod:`!posix`. In addition, :mod:`os` provides some additional functionality, such as automatically calling :func:`~os.putenv` when an entry in ``os.environ`` is changed. Errors are reported as exceptions; the usual exceptions are given for type errors, while errors reported by the system calls r...
in using it instead of :mod:`!posix`. In addition, :mod:`os` provides some additional functionality, such as automatically calling :func:`~os.putenv` when an entry in ``os.environ`` is changed. Errors are reported as exceptions; the usual exceptions are given for type errors, while errors reported by the system calls r...
python, official-docs, cpython, P0
Local_Trusted_Corpus
530ccb1f-561a-48f1-9fd5-629cc8079077
CPython Docs
file://datasets/cpython/Doc/library/posix.rst
unknown
165c2365-9624-4f81-a85c-62895cc28627
8,759
supabase-export-v2
1f902156691dae43
bytes on Unix and str on Windows. For example, ``environ[b'HOME']`` (``environ['HOME']`` on Windows) is the pathname of your home directory, equivalent to ``getenv("HOME")`` in C. Modifying this dictionary does not affect the string environment passed on by :func:`~os.execv`, :func:`~os.popen` or :func:`~os.system`; i...
trusted_official_docs
CPython Docs
bytes on Unix and str on Windows. For example, ``environ[b'HOME']`` (``environ['HOME']`` on Windows) is the pathname of your home directory, equivalent to ``getenv("HOME")`` in C. Modifying this dictionary does not affect the string environment passed on by :func:`~os.execv`, :func:`~os.popen` or :func:`~os.system`; i...
bytes on Unix and str on Windows. For example, ``environ[b'HOME']`` (``environ['HOME']`` on Windows) is the pathname of your home directory, equivalent to ``getenv("HOME")`` in C. Modifying this dictionary does not affect the string environment passed on by :func:`~os.execv`, :func:`~os.popen` or :func:`~os.system`; i...
python, official-docs, cpython, P0
Local_Trusted_Corpus
73880864-88c4-4c8b-9d59-0b71b6f8135c
CPython Docs
file://datasets/cpython/Doc/library/posix.rst
unknown
165c2365-9624-4f81-a85c-62895cc28627
8,758
supabase-export-v2
d9cbb6a05a65b66e
.. data:: environ A dictionary representing the string environment at the time the interpreter was started. Keys and values are bytes on Unix and str on Windows. For example, ``environ[b'HOME']`` (``environ['HOME']`` on Windows) is the pathname of your home directory, equivalent to ``getenv("HOME")`` in C.
trusted_official_docs
CPython Docs
.. data:: environ A dictionary representing the string environment at the time the interpreter was started. Keys and values are bytes on Unix and str on Windows. For example, ``environ[b'HOME']`` (``environ['HOME']`` on Windows) is the pathname of your home directory, equivalent to ``getenv("HOME")`` in C.
.. data:: environ A dictionary representing the string environment at the time the interpreter was started. Keys and values are bytes on Unix and str on Windows. For example, ``environ[b'HOME']`` (``environ['HOME']`` on Windows) is the pathname of your home directory, equivalent to ``getenv("HOME")`` in C.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8b39d309-f930-43b2-aef1-f368dc9b244d
CPython Docs
file://datasets/cpython/Doc/library/posix.rst
unknown
165c2365-9624-4f81-a85c-62895cc28627
8,760
supabase-export-v2
ab7f23b5e0b629f9
you need to change the environment, pass ``environ`` to :func:`~os.execve` or add variable assignments and export statements to the command string for :func:`~os.system` or :func:`~os.popen`. .. versionchanged:: 3.2 On Unix, keys and values are bytes.
trusted_official_docs
CPython Docs
you need to change the environment, pass ``environ`` to :func:`~os.execve` or add variable assignments and export statements to the command string for :func:`~os.system` or :func:`~os.popen`. .. versionchanged:: 3.2 On Unix, keys and values are bytes.
you need to change the environment, pass ``environ`` to :func:`~os.execve` or add variable assignments and export statements to the command string for :func:`~os.system` or :func:`~os.popen`. .. versionchanged:: 3.2 On Unix, keys and values are bytes.
python, official-docs, cpython, P0
Local_Trusted_Corpus
934cdc90-c122-4d92-bfc5-28e987770967
CPython Docs
file://datasets/cpython/Doc/library/posix.rst
unknown
165c2365-9624-4f81-a85c-62895cc28627
8,762
supabase-export-v2
5803eae151955521
.. note:: The :mod:`os` module provides an alternate implementation of ``environ`` which updates the environment on modification. Note also that updating :data:`os.environ` will render this dictionary obsolete. Use of the :mod:`os` module version of this is recommended over direct access to the :mod:`!posix` module...
trusted_official_docs
CPython Docs
.. note:: The :mod:`os` module provides an alternate implementation of ``environ`` which updates the environment on modification. Note also that updating :data:`os.environ` will render this dictionary obsolete. Use of the :mod:`os` module version of this is recommended over direct access to the :mod:`!posix` module...
.. note:: The :mod:`os` module provides an alternate implementation of ``environ`` which updates the environment on modification. Note also that updating :data:`os.environ` will render this dictionary obsolete. Use of the :mod:`os` module version of this is recommended over direct access to the :mod:`!posix` module...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9dd0a4fa-909a-4dd1-a989-eb873ae149fb
CPython Docs
file://datasets/cpython/Doc/library/posix.rst
unknown
165c2365-9624-4f81-a85c-62895cc28627
8,751
supabase-export-v2
437d38a696e741a3
configure and compile Python with certain compiler flags to enable this mode. For example, with Solaris 2.6 and 2.7 you need to do something like:: CFLAGS="`getconf LFS_CFLAGS`" OPT="-g -O2 $CFLAGS" \ ./configure
trusted_official_docs
CPython Docs
configure and compile Python with certain compiler flags to enable this mode. For example, with Solaris 2.6 and 2.7 you need to do something like:: CFLAGS="`getconf LFS_CFLAGS`" OPT="-g -O2 $CFLAGS" \ ./configure
configure and compile Python with certain compiler flags to enable this mode. For example, with Solaris 2.6 and 2.7 you need to do something like:: CFLAGS="`getconf LFS_CFLAGS`" OPT="-g -O2 $CFLAGS" \ ./configure
python, official-docs, cpython, P0
Local_Trusted_Corpus
b86dad36-c5d0-41ee-bf57-6fbbf5836cac
CPython Docs
file://datasets/cpython/Doc/library/posix.rst
unknown
165c2365-9624-4f81-a85c-62895cc28627
8,744
supabase-export-v2
5509bf1c83e04c8b
.. index:: pair: module; os **Do not import this module directly.** Instead, import the module :mod:`os`, which provides a *portable* version of this interface. On Unix, the :mod:`os` module provides a superset of the :mod:`!posix` interface. On non-Unix operating systems the :mod:`!posix` module is not available, but ...
trusted_official_docs
CPython Docs
.. index:: pair: module; os **Do not import this module directly.** Instead, import the module :mod:`os`, which provides a *portable* version of this interface. On Unix, the :mod:`os` module provides a superset of the :mod:`!posix` interface. On non-Unix operating systems the :mod:`!posix` module is not available, but ...
.. index:: pair: module; os **Do not import this module directly.** Instead, import the module :mod:`os`, which provides a *portable* version of this interface. On Unix, the :mod:`os` module provides a superset of the :mod:`!posix` interface. On non-Unix operating systems the :mod:`!posix` module is not available, but ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
caff5e5a-19da-48c5-ba14-b6a1aab31fd7
CPython Docs
file://datasets/cpython/Doc/library/posix.rst
unknown
165c2365-9624-4f81-a85c-62895cc28627
8,750
supabase-export-v2
c2f822e51170f67d
values. This is typically accomplished by defining the relevant size and offset types as 64-bit values. Such files are sometimes referred to as :dfn:`large files`. Large file support is enabled in Python when the size of an :c:type:`off_t` is larger than a :c:expr:`long` and the :c:expr:`long long` is at least as large...
trusted_official_docs
CPython Docs
values. This is typically accomplished by defining the relevant size and offset types as 64-bit values. Such files are sometimes referred to as :dfn:`large files`. Large file support is enabled in Python when the size of an :c:type:`off_t` is larger than a :c:expr:`long` and the :c:expr:`long long` is at least as large...
values. This is typically accomplished by defining the relevant size and offset types as 64-bit values. Such files are sometimes referred to as :dfn:`large files`. Large file support is enabled in Python when the size of an :c:type:`off_t` is larger than a :c:expr:`long` and the :c:expr:`long long` is at least as large...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d2edd5e8-235a-4bb0-a6d8-82a88d83ca56
CPython Docs
file://datasets/cpython/Doc/library/posix.rst
unknown
165c2365-9624-4f81-a85c-62895cc28627
8,749
supabase-export-v2
60016b0212bfebcf
.. index:: single: large files single: file; large files Several operating systems (including AIX and Solaris) provide support for files that are larger than 2 GiB from a C programming model where :c:expr:`int` and :c:expr:`long` are 32-bit values. This is typically accomplished by defining the relevant size and offset...
trusted_official_docs
CPython Docs
.. index:: single: large files single: file; large files Several operating systems (including AIX and Solaris) provide support for files that are larger than 2 GiB from a C programming model where :c:expr:`int` and :c:expr:`long` are 32-bit values. This is typically accomplished by defining the relevant size and offset...
.. index:: single: large files single: file; large files Several operating systems (including AIX and Solaris) provide support for files that are larger than 2 GiB from a C programming model where :c:expr:`int` and :c:expr:`long` are 32-bit values. This is typically accomplished by defining the relevant size and offset...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0558a661-5ba0-40bf-be53-2343ba651047
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,777
supabase-export-v2
61f46a49cab9b6b1
.. versionchanged:: 3.8 :func:`exists`, :func:`lexists`, :func:`isdir`, :func:`isfile`, :func:`islink`, and :func:`ismount` now return ``False`` instead of raising an exception for paths that contain characters or bytes unrepresentable at the OS level.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.8 :func:`exists`, :func:`lexists`, :func:`isdir`, :func:`isfile`, :func:`islink`, and :func:`ismount` now return ``False`` instead of raising an exception for paths that contain characters or bytes unrepresentable at the OS level.
.. versionchanged:: 3.8 :func:`exists`, :func:`lexists`, :func:`isdir`, :func:`isfile`, :func:`islink`, and :func:`ismount` now return ``False`` instead of raising an exception for paths that contain characters or bytes unrepresentable at the OS level.
python, official-docs, cpython, P0
Local_Trusted_Corpus
05a58508-13c9-4ff4-a1d0-001e95a737ca
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,801
supabase-export-v2
068bacc818ffb224
Return the directory name of pathname *path*. This is the first element of the pair returned by passing *path* to the function :func:`split`. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
trusted_official_docs
CPython Docs
Return the directory name of pathname *path*. This is the first element of the pair returned by passing *path* to the function :func:`split`. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
Return the directory name of pathname *path*. This is the first element of the pair returned by passing *path* to the function :func:`split`. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
07f3af8a-51d6-427b-b08e-3b2b87851433
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,887
supabase-export-v2
2629ce5fa38f0c72
with ``strict=True``). Thus, the returned path will not contain any symbolic links, but the named file and some of its parent directories may be missing. .. note:: This function emulates the operating system's procedure for making a path canonical, which differs slightly between Windows and UNIX with respect to how ...
trusted_official_docs
CPython Docs
with ``strict=True``). Thus, the returned path will not contain any symbolic links, but the named file and some of its parent directories may be missing. .. note:: This function emulates the operating system's procedure for making a path canonical, which differs slightly between Windows and UNIX with respect to how ...
with ``strict=True``). Thus, the returned path will not contain any symbolic links, but the named file and some of its parent directories may be missing. .. note:: This function emulates the operating system's procedure for making a path canonical, which differs slightly between Windows and UNIX with respect to how ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
08b8f665-d3d4-427f-853f-7a920ada1607
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,772
supabase-export-v2
cd939cba2406948c
.. note:: All of these functions accept either only bytes or only string objects as their parameters. The result is an object of the same type, if a path or file name is returned.
trusted_official_docs
CPython Docs
.. note:: All of these functions accept either only bytes or only string objects as their parameters. The result is an object of the same type, if a path or file name is returned.
.. note:: All of these functions accept either only bytes or only string objects as their parameters. The result is an object of the same type, if a path or file name is returned.
python, official-docs, cpython, P0
Local_Trusted_Corpus
09662701-6e4b-40f6-af18-e4ec3144e295
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,775
supabase-export-v2
2d3d5c10bbe0ca1c
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
trusted_official_docs
CPython Docs
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
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
python, official-docs, cpython, P0
Local_Trusted_Corpus
100f5406-4c19-45b2-9f10-b216fcd4cf3b
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,929
supabase-export-v2
62a976f9f92a706d
>>> splitroot('/home/sam') ('', '/', 'home/sam') >>> splitroot('//home/sam') ('', '//', 'home/sam') >>> splitroot('///home/sam') ('', '/', '//home/sam') On Windows, *drive* may be empty, a drive-letter name, a UNC share, or a device name. The *root* may be empty, a forward slash, or a backward slash. For example::
trusted_official_docs
CPython Docs
>>> splitroot('/home/sam') ('', '/', 'home/sam') >>> splitroot('//home/sam') ('', '//', 'home/sam') >>> splitroot('///home/sam') ('', '/', '//home/sam') On Windows, *drive* may be empty, a drive-letter name, a UNC share, or a device name. The *root* may be empty, a forward slash, or a backward slash. For example::
>>> splitroot('/home/sam') ('', '/', 'home/sam') >>> splitroot('//home/sam') ('', '//', 'home/sam') >>> splitroot('///home/sam') ('', '/', '//home/sam') On Windows, *drive* may be empty, a drive-letter name, a UNC share, or a device name. The *root* may be empty, a forward slash, or a backward slash. For example::
python, official-docs, cpython, P0
Local_Trusted_Corpus
10ff6836-25c7-4ee2-ac21-03ea267194dc
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,885
supabase-export-v2
919e659132bdabc8
This behavior can be modified by keyword arguments: If *strict* is ``True``, the first error encountered when evaluating the path is re-raised. In particular, :exc:`FileNotFoundError` is raised if *path* does not exist, or another :exc:`OSError` if it is otherwise inaccessible. If *strict* is :data:`ALL_BUT_LAST`, th...
trusted_official_docs
CPython Docs
This behavior can be modified by keyword arguments: If *strict* is ``True``, the first error encountered when evaluating the path is re-raised. In particular, :exc:`FileNotFoundError` is raised if *path* does not exist, or another :exc:`OSError` if it is otherwise inaccessible. If *strict* is :data:`ALL_BUT_LAST`, th...
This behavior can be modified by keyword arguments: If *strict* is ``True``, the first error encountered when evaluating the path is re-raised. In particular, :exc:`FileNotFoundError` is raised if *path* does not exist, or another :exc:`OSError` if it is otherwise inaccessible. If *strict* is :data:`ALL_BUT_LAST`, th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
13e40d13-c4cc-4b75-8a14-437df282df1e
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,861
supabase-export-v2
f701398a4cf32a66
Return ``True`` if *path* is a reserved pathname on the current system. On Windows, reserved filenames include those that end with a space or dot; those that contain colons (i.e. file streams such as "name:stream"), wildcard characters (i.e. ``'*?"<>'``), pipe, or ASCII control characters; as well as DOS device name...
trusted_official_docs
CPython Docs
Return ``True`` if *path* is a reserved pathname on the current system. On Windows, reserved filenames include those that end with a space or dot; those that contain colons (i.e. file streams such as "name:stream"), wildcard characters (i.e. ``'*?"<>'``), pipe, or ASCII control characters; as well as DOS device name...
Return ``True`` if *path* is a reserved pathname on the current system. On Windows, reserved filenames include those that end with a space or dot; those that contain colons (i.e. file streams such as "name:stream"), wildcard characters (i.e. ``'*?"<>'``), pipe, or ASCII control characters; as well as DOS device name...
python, official-docs, cpython, P0
Local_Trusted_Corpus
14ffd3bb-7e09-4475-9daf-3fed05c5f95a
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,934
supabase-export-v2
9550c0833049a110
ext)`` such that ``root + ext == path``, and the extension, *ext*, is empty or begins with a period and contains at most one period. If the path contains no extension, *ext* will be ``''``::
trusted_official_docs
CPython Docs
ext)`` such that ``root + ext == path``, and the extension, *ext*, is empty or begins with a period and contains at most one period. If the path contains no extension, *ext* will be ``''``::
ext)`` such that ``root + ext == path``, and the extension, *ext*, is empty or begins with a period and contains at most one period. If the path contains no extension, *ext* will be ``''``::
python, official-docs, cpython, P0
Local_Trusted_Corpus
17b8712a-93d7-4145-8f41-ad1ee67ae121
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,913
supabase-export-v2
eed9bb354e7cee04
the same file. These structures may have been returned by :func:`os.fstat`, :func:`os.lstat`, or :func:`os.stat`. This function implements the underlying comparison used by :func:`samefile` and :func:`sameopenfile`. .. versionchanged:: 3.4 Added Windows support.
trusted_official_docs
CPython Docs
the same file. These structures may have been returned by :func:`os.fstat`, :func:`os.lstat`, or :func:`os.stat`. This function implements the underlying comparison used by :func:`samefile` and :func:`sameopenfile`. .. versionchanged:: 3.4 Added Windows support.
the same file. These structures may have been returned by :func:`os.fstat`, :func:`os.lstat`, or :func:`os.stat`. This function implements the underlying comparison used by :func:`samefile` and :func:`sameopenfile`. .. versionchanged:: 3.4 Added Windows support.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1f1c1b0a-2ec2-4192-aae7-12c3e396c2b1
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,774
supabase-export-v2
322ceb35a226e025
.. 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 als...
trusted_official_docs
CPython Docs
.. 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 als...
.. 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 als...
python, official-docs, cpython, P0
Local_Trusted_Corpus
22fe332e-3b48-42e1-9566-867f41e0d948
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,826
supabase-export-v2
9993ce44504bed79
.. function:: getmtime(path, /) Return the time of last modification of *path*. The return value is a floating-point number giving the number of seconds since the epoch (see the :mod:`time` module). Raise :exc:`OSError` if the file does not exist or is inaccessible.
trusted_official_docs
CPython Docs
.. function:: getmtime(path, /) Return the time of last modification of *path*. The return value is a floating-point number giving the number of seconds since the epoch (see the :mod:`time` module). Raise :exc:`OSError` if the file does not exist or is inaccessible.
.. function:: getmtime(path, /) Return the time of last modification of *path*. The return value is a floating-point number giving the number of seconds since the epoch (see the :mod:`time` module). Raise :exc:`OSError` if the file does not exist or is inaccessible.
python, official-docs, cpython, P0
Local_Trusted_Corpus
26a904ce-8b59-44b1-bd0c-327d18b1a11f
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,769
supabase-export-v2
12f8240b52a08468
for accessing the filesystem see the :mod:`os` module. The path parameters can be passed as strings, or bytes, or any object implementing the :class:`os.PathLike` protocol. Unlike a Unix shell, Python does not do any *automatic* path expansions. Functions such as :func:`expanduser` and :func:`expandvars` can be invoked...
trusted_official_docs
CPython Docs
for accessing the filesystem see the :mod:`os` module. The path parameters can be passed as strings, or bytes, or any object implementing the :class:`os.PathLike` protocol. Unlike a Unix shell, Python does not do any *automatic* path expansions. Functions such as :func:`expanduser` and :func:`expandvars` can be invoked...
for accessing the filesystem see the :mod:`os` module. The path parameters can be passed as strings, or bytes, or any object implementing the :class:`os.PathLike` protocol. Unlike a Unix shell, Python does not do any *automatic* path expansions. Functions such as :func:`expanduser` and :func:`expandvars` can be invoked...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2d13046c-a51f-451f-a797-b10eccb6a264
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,874
supabase-export-v2
389d69d067955cbd
.. function:: normcase(path, /) Normalize the case of a pathname. On Windows, convert all characters in the pathname to lowercase, and also convert forward slashes to backward slashes. On other operating systems, return the path unchanged.
trusted_official_docs
CPython Docs
.. function:: normcase(path, /) Normalize the case of a pathname. On Windows, convert all characters in the pathname to lowercase, and also convert forward slashes to backward slashes. On other operating systems, return the path unchanged.
.. function:: normcase(path, /) Normalize the case of a pathname. On Windows, convert all characters in the pathname to lowercase, and also convert forward slashes to backward slashes. On other operating systems, return the path unchanged.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2fb8762d-f38a-49a4-a2dc-c327d4f7080c
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,872
supabase-export-v2
b18a27ba47aed19a
since there is a current directory for each drive, ``os.path.join("c:", "foo")`` represents a path relative to the current directory on drive :file:`C:` (:file:`c:foo`), not :file:`c:\\foo`. .. versionchanged:: 3.6 Accepts a :term:`path-like object` for *path* and *paths*.
trusted_official_docs
CPython Docs
since there is a current directory for each drive, ``os.path.join("c:", "foo")`` represents a path relative to the current directory on drive :file:`C:` (:file:`c:foo`), not :file:`c:\\foo`. .. versionchanged:: 3.6 Accepts a :term:`path-like object` for *path* and *paths*.
since there is a current directory for each drive, ``os.path.join("c:", "foo")`` represents a path relative to the current directory on drive :file:`C:` (:file:`c:foo`), not :file:`c:\\foo`. .. versionchanged:: 3.6 Accepts a :term:`path-like object` for *path* and *paths*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2ff1919c-141e-4aff-86d1-7ea079e75c58
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,824
supabase-export-v2
4b3ed894661e9686
.. function:: getatime(path, /) Return the time of last access of *path*. The return value is a floating-point number giving the number of seconds since the epoch (see the :mod:`time` module). Raise :exc:`OSError` if the file does not exist or is inaccessible.
trusted_official_docs
CPython Docs
.. function:: getatime(path, /) Return the time of last access of *path*. The return value is a floating-point number giving the number of seconds since the epoch (see the :mod:`time` module). Raise :exc:`OSError` if the file does not exist or is inaccessible.
.. function:: getatime(path, /) Return the time of last access of *path*. The return value is a floating-point number giving the number of seconds since the epoch (see the :mod:`time` module). Raise :exc:`OSError` if the file does not exist or is inaccessible.
python, official-docs, cpython, P0
Local_Trusted_Corpus
34db82d3-449f-4a84-99a4-0736c7ed145b
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,903
supabase-export-v2
332f977e52360ab9
.. function:: samefile(path1, path2, /) Return ``True`` if both pathname arguments refer to the same file or directory. This is determined by the device number and i-node number and raises an exception if an :func:`os.stat` call on either pathname fails.
trusted_official_docs
CPython Docs
.. function:: samefile(path1, path2, /) Return ``True`` if both pathname arguments refer to the same file or directory. This is determined by the device number and i-node number and raises an exception if an :func:`os.stat` call on either pathname fails.
.. function:: samefile(path1, path2, /) Return ``True`` if both pathname arguments refer to the same file or directory. This is determined by the device number and i-node number and raises an exception if an :func:`os.stat` call on either pathname fails.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3943cca8-652e-4eb0-8f9c-3859f1fc8a73
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,849
supabase-export-v2
c7d51a64893990a5
*path* refers to an :func:`existing <exists>` directory entry that is a symbolic link. Always ``False`` if symbolic links are not supported by the Python runtime. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
trusted_official_docs
CPython Docs
*path* refers to an :func:`existing <exists>` directory entry that is a symbolic link. Always ``False`` if symbolic links are not supported by the Python runtime. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
*path* refers to an :func:`existing <exists>` directory entry that is a symbolic link. Always ``False`` if symbolic links are not supported by the Python runtime. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
39b96cf5-c953-4718-bf53-124e6a0906a7
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,827
supabase-export-v2
3256c1ab802f1292
floating-point number giving the number of seconds since the epoch (see the :mod:`time` module). Raise :exc:`OSError` if the file does not exist or is inaccessible. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
trusted_official_docs
CPython Docs
floating-point number giving the number of seconds since the epoch (see the :mod:`time` module). Raise :exc:`OSError` if the file does not exist or is inaccessible. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
floating-point number giving the number of seconds since the epoch (see the :mod:`time` module). Raise :exc:`OSError` if the file does not exist or is inaccessible. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3bbce9cc-6cfe-4eeb-8ede-386dbc70dd5b
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,851
supabase-export-v2
eafd4478ab7eaa1d
.. function:: ismount(path) Return ``True`` if pathname *path* is a :dfn:`mount point`: a point in a file system where a different file system has been mounted. On POSIX, the function checks whether *path*'s parent, :file:`{path}/..`, is on a different device than *path*, or whether :file:`{path}/..` and *path* poin...
trusted_official_docs
CPython Docs
.. function:: ismount(path) Return ``True`` if pathname *path* is a :dfn:`mount point`: a point in a file system where a different file system has been mounted. On POSIX, the function checks whether *path*'s parent, :file:`{path}/..`, is on a different device than *path*, or whether :file:`{path}/..` and *path* poin...
.. function:: ismount(path) Return ``True`` if pathname *path* is a :dfn:`mount point`: a point in a file system where a different file system has been mounted. On POSIX, the function checks whether *path*'s parent, :file:`{path}/..`, is on a different device than *path*, or whether :file:`{path}/..` and *path* poin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
40e7f4ef-ae8e-4a59-9d82-d6110b709281
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,878
supabase-export-v2
7c5456b96c61b97d
may change the meaning of a path that contains symbolic links. On Windows, it converts forward slashes to backward slashes. To normalize case, use :func:`normcase`. .. note:: On POSIX systems, in accordance with `IEEE Std 1003.1 2013 Edition; 4.13 Pathname Resolution <https://pubs.opengroup.org/onlinepubs/9699919799/...
trusted_official_docs
CPython Docs
may change the meaning of a path that contains symbolic links. On Windows, it converts forward slashes to backward slashes. To normalize case, use :func:`normcase`. .. note:: On POSIX systems, in accordance with `IEEE Std 1003.1 2013 Edition; 4.13 Pathname Resolution <https://pubs.opengroup.org/onlinepubs/9699919799/...
may change the meaning of a path that contains symbolic links. On Windows, it converts forward slashes to backward slashes. To normalize case, use :func:`normcase`. .. note:: On POSIX systems, in accordance with `IEEE Std 1003.1 2013 Edition; 4.13 Pathname Resolution <https://pubs.opengroup.org/onlinepubs/9699919799/...
python, official-docs, cpython, P0
Local_Trusted_Corpus
41e4d3f8-f5c0-4c6a-a59a-8d245dca3265
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,846
supabase-export-v2
c84d7986b2617588
.. function:: isjunction(path) Return ``True`` if *path* refers to an :func:`existing <lexists>` directory entry that is a junction. Always return ``False`` if junctions are not supported on the current platform.
trusted_official_docs
CPython Docs
.. function:: isjunction(path) Return ``True`` if *path* refers to an :func:`existing <lexists>` directory entry that is a junction. Always return ``False`` if junctions are not supported on the current platform.
.. function:: isjunction(path) Return ``True`` if *path* refers to an :func:`existing <lexists>` directory entry that is a junction. Always return ``False`` if junctions are not supported on the current platform.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4a05be3b-d6ff-4169-a7a8-7d98ead06b9c
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,848
supabase-export-v2
7532542c9bc828be
.. function:: islink(path) Return ``True`` if *path* refers to an :func:`existing <exists>` directory entry that is a symbolic link. Always ``False`` if symbolic links are not supported by the Python runtime.
trusted_official_docs
CPython Docs
.. function:: islink(path) Return ``True`` if *path* refers to an :func:`existing <exists>` directory entry that is a symbolic link. Always ``False`` if symbolic links are not supported by the Python runtime.
.. function:: islink(path) Return ``True`` if *path* refers to an :func:`existing <exists>` directory entry that is a symbolic link. Always ``False`` if symbolic links are not supported by the Python runtime.
python, official-docs, cpython, P0
Local_Trusted_Corpus
56e9922d-8a09-42e1-8119-cc173a049912
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,820
supabase-export-v2
7d68274835d24e11
.. function:: expandvars(path) Return the argument with environment variables expanded. Substrings of the form ``$name`` or ``${name}`` are replaced by the value of environment variable *name*. Malformed variable names and references to non-existing variables are left unchanged.
trusted_official_docs
CPython Docs
.. function:: expandvars(path) Return the argument with environment variables expanded. Substrings of the form ``$name`` or ``${name}`` are replaced by the value of environment variable *name*. Malformed variable names and references to non-existing variables are left unchanged.
.. function:: expandvars(path) Return the argument with environment variables expanded. Substrings of the form ``$name`` or ``${name}`` are replaced by the value of environment variable *name*. Malformed variable names and references to non-existing variables are left unchanged.
python, official-docs, cpython, P0
Local_Trusted_Corpus
622591af-43e2-44bd-9166-ac794a5b7d80
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,928
supabase-export-v2
2741679601b8d938
is relative), a single forward slash (if *path* is absolute), or two forward slashes (implementation-defined per `IEEE Std 1003.1-2017; 4.13 Pathname Resolution <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>`_.) For example:: >>> splitroot('/home/sam') ('', '/', 'home/sam') >>> s...
trusted_official_docs
CPython Docs
is relative), a single forward slash (if *path* is absolute), or two forward slashes (implementation-defined per `IEEE Std 1003.1-2017; 4.13 Pathname Resolution <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>`_.) For example:: >>> splitroot('/home/sam') ('', '/', 'home/sam') >>> s...
is relative), a single forward slash (if *path* is absolute), or two forward slashes (implementation-defined per `IEEE Std 1003.1-2017; 4.13 Pathname Resolution <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>`_.) For example:: >>> splitroot('/home/sam') ('', '/', 'home/sam') >>> s...
python, official-docs, cpython, P0
Local_Trusted_Corpus
66e52295-92da-4545-b19e-286d2c78280f
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,868
supabase-export-v2
175721a15ea8ee0d
requires both a drive and a root), then all previous segments are ignored and joining continues from the absolute path segment. On Linux, for example:: >>> os.path.join('/home/foo', 'bar') '/home/foo/bar' >>> os.path.join('/home/foo', '/home/bar') '/home/bar'
trusted_official_docs
CPython Docs
requires both a drive and a root), then all previous segments are ignored and joining continues from the absolute path segment. On Linux, for example:: >>> os.path.join('/home/foo', 'bar') '/home/foo/bar' >>> os.path.join('/home/foo', '/home/bar') '/home/bar'
requires both a drive and a root), then all previous segments are ignored and joining continues from the absolute path segment. On Linux, for example:: >>> os.path.join('/home/foo', 'bar') '/home/foo/bar' >>> os.path.join('/home/foo', '/home/bar') '/home/bar'
python, official-docs, cpython, P0
Local_Trusted_Corpus
6983ab7a-6faa-4889-af3e-d48e6c1e0614
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,821
supabase-export-v2
babddc231f7eedfc
the form ``$name`` or ``${name}`` are replaced by the value of environment variable *name*. Malformed variable names and references to non-existing variables are left unchanged. On Windows, ``%name%`` expansions are supported in addition to ``$name`` and ``${name}``.
trusted_official_docs
CPython Docs
the form ``$name`` or ``${name}`` are replaced by the value of environment variable *name*. Malformed variable names and references to non-existing variables are left unchanged. On Windows, ``%name%`` expansions are supported in addition to ``$name`` and ``${name}``.
the form ``$name`` or ``${name}`` are replaced by the value of environment variable *name*. Malformed variable names and references to non-existing variables are left unchanged. On Windows, ``%name%`` expansions are supported in addition to ``$name`` and ``${name}``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6a4ae9b8-0078-4c18-891d-7384770d2509
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,855
supabase-export-v2
419100879bd82e5c
.. function:: isdevdrive(path) Return ``True`` if pathname *path* is located on a Windows Dev Drive. A Dev Drive is optimized for developer scenarios, and offers faster performance for reading and writing files. It is recommended for use for source code, temporary build directories, package caches, and other IO-inte...
trusted_official_docs
CPython Docs
.. function:: isdevdrive(path) Return ``True`` if pathname *path* is located on a Windows Dev Drive. A Dev Drive is optimized for developer scenarios, and offers faster performance for reading and writing files. It is recommended for use for source code, temporary build directories, package caches, and other IO-inte...
.. function:: isdevdrive(path) Return ``True`` if pathname *path* is located on a Windows Dev Drive. A Dev Drive is optimized for developer scenarios, and offers faster performance for reading and writing files. It is recommended for use for source code, temporary build directories, package caches, and other IO-inte...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6c7ec58b-6a7a-4359-a408-38378324a317
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,881
supabase-export-v2
e4c01db05ea011f3
.. function:: realpath(path, /, *, strict=False) Return the canonical path of the specified filename, eliminating any symbolic links encountered in the path (if they are supported by the operating system). On Windows, this function will also resolve MS-DOS (also called 8.3) style names such as ``C:\\PROGRA~1`` to ``...
trusted_official_docs
CPython Docs
.. function:: realpath(path, /, *, strict=False) Return the canonical path of the specified filename, eliminating any symbolic links encountered in the path (if they are supported by the operating system). On Windows, this function will also resolve MS-DOS (also called 8.3) style names such as ``C:\\PROGRA~1`` to ``...
.. function:: realpath(path, /, *, strict=False) Return the canonical path of the specified filename, eliminating any symbolic links encountered in the path (if they are supported by the operating system). On Windows, this function will also resolve MS-DOS (also called 8.3) style names such as ``C:\\PROGRA~1`` to ``...
python, official-docs, cpython, P0
Local_Trusted_Corpus
747ba7ca-5b9c-4647-824d-c8084dd95984
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,883
supabase-export-v2
8e9a7debf7814aa4
does not exist, is a symlink loop, or whose evaluation raises :exc:`OSError`. All such components are appended unchanged to the existing part of the path. Some errors that are handled this way include "access denied", "not a directory", or "bad argument to internal function". Thus, the resulting path may be missing o...
trusted_official_docs
CPython Docs
does not exist, is a symlink loop, or whose evaluation raises :exc:`OSError`. All such components are appended unchanged to the existing part of the path. Some errors that are handled this way include "access denied", "not a directory", or "bad argument to internal function". Thus, the resulting path may be missing o...
does not exist, is a symlink loop, or whose evaluation raises :exc:`OSError`. All such components are appended unchanged to the existing part of the path. Some errors that are handled this way include "access denied", "not a directory", or "bad argument to internal function". Thus, the resulting path may be missing o...
python, official-docs, cpython, P0
Local_Trusted_Corpus
751801ed-9c25-4b27-8f4a-7c0eb096e63b
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,770
supabase-export-v2
a53b9c5f3fb6931d
*automatic* path expansions. Functions such as :func:`expanduser` and :func:`expandvars` can be invoked explicitly when an application desires shell-like path expansion. (See also the :mod:`glob` module.) .. seealso:: The :mod:`pathlib` module offers high-level path objects.
trusted_official_docs
CPython Docs
*automatic* path expansions. Functions such as :func:`expanduser` and :func:`expandvars` can be invoked explicitly when an application desires shell-like path expansion. (See also the :mod:`glob` module.) .. seealso:: The :mod:`pathlib` module offers high-level path objects.
*automatic* path expansions. Functions such as :func:`expanduser` and :func:`expandvars` can be invoked explicitly when an application desires shell-like path expansion. (See also the :mod:`glob` module.) .. seealso:: The :mod:`pathlib` module offers high-level path objects.
python, official-docs, cpython, P0
Local_Trusted_Corpus
78b3c897-2cfd-4a5e-b755-4a5c5106df92
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,899
supabase-export-v2
23e77b36d1c1c4d8
.. function:: relpath(path, start=os.curdir) Return a relative filepath to *path* either from the current directory or from an optional *start* directory. This is a path computation: the filesystem is not accessed to confirm the existence or nature of *path* or *start*. On Windows, :exc:`ValueError` is raised when *...
trusted_official_docs
CPython Docs
.. function:: relpath(path, start=os.curdir) Return a relative filepath to *path* either from the current directory or from an optional *start* directory. This is a path computation: the filesystem is not accessed to confirm the existence or nature of *path* or *start*. On Windows, :exc:`ValueError` is raised when *...
.. function:: relpath(path, start=os.curdir) Return a relative filepath to *path* either from the current directory or from an optional *start* directory. This is a path computation: the filesystem is not accessed to confirm the existence or nature of *path* or *start*. On Windows, :exc:`ValueError` is raised when *...
python, official-docs, cpython, P0
Local_Trusted_Corpus
84607eda-f750-44f5-a043-cb82003fe1c6
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,882
supabase-export-v2
083024095913efa0
are supported by the operating system). On Windows, this function will also resolve MS-DOS (also called 8.3) style names such as ``C:\\PROGRA~1`` to ``C:\\Program Files``. By default, the path is evaluated up to the first component that does not exist, is a symlink loop, or whose evaluation raises :exc:`OSError`. All ...
trusted_official_docs
CPython Docs
are supported by the operating system). On Windows, this function will also resolve MS-DOS (also called 8.3) style names such as ``C:\\PROGRA~1`` to ``C:\\Program Files``. By default, the path is evaluated up to the first component that does not exist, is a symlink loop, or whose evaluation raises :exc:`OSError`. All ...
are supported by the operating system). On Windows, this function will also resolve MS-DOS (also called 8.3) style names such as ``C:\\PROGRA~1`` to ``C:\\Program Files``. By default, the path is evaluated up to the first component that does not exist, is a symlink loop, or whose evaluation raises :exc:`OSError`. All ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
861be614-f9e8-476c-872d-69c7625dec72
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,912
supabase-export-v2
3d07cafb53784412
.. function:: samestat(stat1, stat2, /) Return ``True`` if the stat tuples *stat1* and *stat2* refer to the same file. These structures may have been returned by :func:`os.fstat`, :func:`os.lstat`, or :func:`os.stat`. This function implements the underlying comparison used by :func:`samefile` and :func:`sameopenfile`...
trusted_official_docs
CPython Docs
.. function:: samestat(stat1, stat2, /) Return ``True`` if the stat tuples *stat1* and *stat2* refer to the same file. These structures may have been returned by :func:`os.fstat`, :func:`os.lstat`, or :func:`os.stat`. This function implements the underlying comparison used by :func:`samefile` and :func:`sameopenfile`...
.. function:: samestat(stat1, stat2, /) Return ``True`` if the stat tuples *stat1* and *stat2* refer to the same file. These structures may have been returned by :func:`os.fstat`, :func:`os.lstat`, or :func:`os.stat`. This function implements the underlying comparison used by :func:`samefile` and :func:`sameopenfile`...
python, official-docs, cpython, P0
Local_Trusted_Corpus
88575511-0aed-4d6a-9cda-9e52fcdb5929
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,803
supabase-export-v2
0fd05f99a39d3373
.. function:: exists(path) Return ``True`` if *path* refers to an existing path or an open file descriptor. Returns ``False`` for broken symbolic links. On some platforms, this function may return ``False`` if permission is not granted to execute :func:`os.stat` on the requested file, even if the *path* physically ...
trusted_official_docs
CPython Docs
.. function:: exists(path) Return ``True`` if *path* refers to an existing path or an open file descriptor. Returns ``False`` for broken symbolic links. On some platforms, this function may return ``False`` if permission is not granted to execute :func:`os.stat` on the requested file, even if the *path* physically ...
.. function:: exists(path) Return ``True`` if *path* refers to an existing path or an open file descriptor. Returns ``False`` for broken symbolic links. On some platforms, this function may return ``False`` if permission is not granted to execute :func:`os.stat` on the requested file, even if the *path* physically ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8a9117ae-d192-4207-86f9-e4993fb46d3f
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,866
supabase-export-v2
2156127fc06763d3
.. function:: join(path, /, *paths) Join one or more path segments intelligently. The return value is the concatenation of *path* and all members of *\*paths*, with exactly one directory separator following each non-empty part, except the last. That is, the result will only end in a separator if the last part is eit...
trusted_official_docs
CPython Docs
.. function:: join(path, /, *paths) Join one or more path segments intelligently. The return value is the concatenation of *path* and all members of *\*paths*, with exactly one directory separator following each non-empty part, except the last. That is, the result will only end in a separator if the last part is eit...
.. function:: join(path, /, *paths) Join one or more path segments intelligently. The return value is the concatenation of *path* and all members of *\*paths*, with exactly one directory separator following each non-empty part, except the last. That is, the result will only end in a separator if the last part is eit...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8c00f064-a77c-45c5-984e-34428ac91252
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,930
supabase-export-v2
211018a8e3cde1f9
empty, a drive-letter name, a UNC share, or a device name. The *root* may be empty, a forward slash, or a backward slash. For example:: >>> splitroot('C:/Users/Sam') ('C:', '/', 'Users/Sam') >>> splitroot('//Server/Share/Users/Sam') ('//Server/Share', '/', 'Users/Sam')
trusted_official_docs
CPython Docs
empty, a drive-letter name, a UNC share, or a device name. The *root* may be empty, a forward slash, or a backward slash. For example:: >>> splitroot('C:/Users/Sam') ('C:', '/', 'Users/Sam') >>> splitroot('//Server/Share/Users/Sam') ('//Server/Share', '/', 'Users/Sam')
empty, a drive-letter name, a UNC share, or a device name. The *root* may be empty, a forward slash, or a backward slash. For example:: >>> splitroot('C:/Users/Sam') ('C:', '/', 'Users/Sam') >>> splitroot('//Server/Share/Users/Sam') ('//Server/Share', '/', 'Users/Sam')
python, official-docs, cpython, P0
Local_Trusted_Corpus
9263f3d4-4c0b-4307-a882-ac21f74653fe
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,835
supabase-export-v2
aafe8302805ceba0
.. function:: isabs(path, /) Return ``True`` if *path* is an absolute pathname. On Unix, that means it begins with a slash, on Windows that it begins with two (back)slashes, or a drive letter, colon, and (back)slash together.
trusted_official_docs
CPython Docs
.. function:: isabs(path, /) Return ``True`` if *path* is an absolute pathname. On Unix, that means it begins with a slash, on Windows that it begins with two (back)slashes, or a drive letter, colon, and (back)slash together.
.. function:: isabs(path, /) Return ``True`` if *path* is an absolute pathname. On Unix, that means it begins with a slash, on Windows that it begins with two (back)slashes, or a drive letter, colon, and (back)slash together.
python, official-docs, cpython, P0
Local_Trusted_Corpus
93e7cc24-3433-4e0b-b2c7-74259f8a15bb
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,844
supabase-export-v2
09e7b5c6f481dab0
Return ``True`` if *path* is an :func:`existing <exists>` directory. This follows symbolic links, so both :func:`islink` and :func:`isdir` can be true for the same path. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
trusted_official_docs
CPython Docs
Return ``True`` if *path* is an :func:`existing <exists>` directory. This follows symbolic links, so both :func:`islink` and :func:`isdir` can be true for the same path. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
Return ``True`` if *path* is an :func:`existing <exists>` directory. This follows symbolic links, so both :func:`islink` and :func:`isdir` can be true for the same path. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9b72ae77-5ed8-4e7f-a348-d26f36850b36
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,919
supabase-export-v2
175ef0afff58da2a
which do not use drive specifications, *drive* will always be the empty string. In all cases, ``drive + tail`` will be the same as *path*. On Windows, splits a pathname into drive/UNC sharepoint and relative path.
trusted_official_docs
CPython Docs
which do not use drive specifications, *drive* will always be the empty string. In all cases, ``drive + tail`` will be the same as *path*. On Windows, splits a pathname into drive/UNC sharepoint and relative path.
which do not use drive specifications, *drive* will always be the empty string. In all cases, ``drive + tail`` will be the same as *path*. On Windows, splits a pathname into drive/UNC sharepoint and relative path.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a9102e84-c59d-4058-85ce-7b263c7a317e
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,870
supabase-export-v2
d775fe52d241c5c6
If a segment is on a different drive or is an absolute path, all previous segments are ignored and the drive is reset. For example:: >>> os.path.join('c:\\', 'foo') 'c:\\foo' >>> os.path.join('c:\\foo', 'd:\\bar') 'd:\\bar'
trusted_official_docs
CPython Docs
If a segment is on a different drive or is an absolute path, all previous segments are ignored and the drive is reset. For example:: >>> os.path.join('c:\\', 'foo') 'c:\\foo' >>> os.path.join('c:\\foo', 'd:\\bar') 'd:\\bar'
If a segment is on a different drive or is an absolute path, all previous segments are ignored and the drive is reset. For example:: >>> os.path.join('c:\\', 'foo') 'c:\\foo' >>> os.path.join('c:\\foo', 'd:\\bar') 'd:\\bar'
python, official-docs, cpython, P0
Local_Trusted_Corpus
aae80701-33a8-4cd6-920a-9dc957af7c34
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,783
supabase-export-v2
92104d5b69f725b6
.. function:: basename(path, /) Return the base name of pathname *path*. This is the second element of the pair returned by passing *path* to the function :func:`split`. Note that the result of this function is different from the Unix :program:`basename` program; where :program:`basename` for ``'/foo/bar/'`` return...
trusted_official_docs
CPython Docs
.. function:: basename(path, /) Return the base name of pathname *path*. This is the second element of the pair returned by passing *path* to the function :func:`split`. Note that the result of this function is different from the Unix :program:`basename` program; where :program:`basename` for ``'/foo/bar/'`` return...
.. function:: basename(path, /) Return the base name of pathname *path*. This is the second element of the pair returned by passing *path* to the function :func:`split`. Note that the result of this function is different from the Unix :program:`basename` program; where :program:`basename` for ``'/foo/bar/'`` return...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ac658523-78fe-427f-b4b8-49cb649c603a
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,841
supabase-export-v2
ab9a2bda33d8bede
``True`` if *path* is an :func:`existing <exists>` regular file. This follows symbolic links, so both :func:`islink` and :func:`isfile` can be true for the same path. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
trusted_official_docs
CPython Docs
``True`` if *path* is an :func:`existing <exists>` regular file. This follows symbolic links, so both :func:`islink` and :func:`isfile` can be true for the same path. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
``True`` if *path* is an :func:`existing <exists>` regular file. This follows symbolic links, so both :func:`islink` and :func:`isfile` can be true for the same path. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b7017517-3045-410d-a8d2-7168e8d8aacb
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,869
supabase-export-v2
bf9db5dbf7b4060f
>>> os.path.join('/home/foo', 'bar') '/home/foo/bar' >>> os.path.join('/home/foo', '/home/bar') '/home/bar' On Windows, the drive is not reset when a rooted path segment (e.g., ``r'\foo'``) is encountered. If a segment is on a different drive or is an absolute path, all previous segments are ignored and the drive is ...
trusted_official_docs
CPython Docs
>>> os.path.join('/home/foo', 'bar') '/home/foo/bar' >>> os.path.join('/home/foo', '/home/bar') '/home/bar' On Windows, the drive is not reset when a rooted path segment (e.g., ``r'\foo'``) is encountered. If a segment is on a different drive or is an absolute path, all previous segments are ignored and the drive is ...
>>> os.path.join('/home/foo', 'bar') '/home/foo/bar' >>> os.path.join('/home/foo', '/home/bar') '/home/bar' On Windows, the drive is not reset when a rooted path segment (e.g., ``r'\foo'``) is encountered. If a segment is on a different drive or is an absolute path, all previous segments are ignored and the drive is ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b7e1c89d-62fc-4abf-acd0-ea9220d71211
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,867
supabase-export-v2
a40eeed748c5986d
except the last. That is, the result will only end in a separator if the last part is either empty or ends in a separator. If a segment is an absolute path (which on Windows requires both a drive and a root), then all previous segments are ignored and joining continues from the absolute path segment. On Linux, for ex...
trusted_official_docs
CPython Docs
except the last. That is, the result will only end in a separator if the last part is either empty or ends in a separator. If a segment is an absolute path (which on Windows requires both a drive and a root), then all previous segments are ignored and joining continues from the absolute path segment. On Linux, for ex...
except the last. That is, the result will only end in a separator if the last part is either empty or ends in a separator. If a segment is an absolute path (which on Windows requires both a drive and a root), then all previous segments are ignored and joining continues from the absolute path segment. On Linux, for ex...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bb1c8e7b-b5af-47e8-a573-ccf081918dab
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,918
supabase-export-v2
e72d75664de683b6
.. function:: splitdrive(path, /) Split the pathname *path* into a pair ``(drive, tail)`` where *drive* is either a mount point or the empty string. On systems which do not use drive specifications, *drive* will always be the empty string. In all cases, ``drive + tail`` will be the same as *path*.
trusted_official_docs
CPython Docs
.. function:: splitdrive(path, /) Split the pathname *path* into a pair ``(drive, tail)`` where *drive* is either a mount point or the empty string. On systems which do not use drive specifications, *drive* will always be the empty string. In all cases, ``drive + tail`` will be the same as *path*.
.. function:: splitdrive(path, /) Split the pathname *path* into a pair ``(drive, tail)`` where *drive* is either a mount point or the empty string. On systems which do not use drive specifications, *drive* will always be the empty string. In all cases, ``drive + tail`` will be the same as *path*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
bf83168a-02df-4aed-8852-df5b13ba13fd
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,916
supabase-export-v2
468d0f9edf606536
cases, ``join(head, tail)`` returns a path to the same location as *path* (but the strings may differ). Also see the functions :func:`join`, :func:`dirname` and :func:`basename`. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
trusted_official_docs
CPython Docs
cases, ``join(head, tail)`` returns a path to the same location as *path* (but the strings may differ). Also see the functions :func:`join`, :func:`dirname` and :func:`basename`. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
cases, ``join(head, tail)`` returns a path to the same location as *path* (but the strings may differ). Also see the functions :func:`join`, :func:`dirname` and :func:`basename`. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c0ecc82c-c296-428f-9ca0-0d7abf714577
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,814
supabase-export-v2
0f6aa53122dc921a
home directory is looked up in the password directory through the built-in module :mod:`pwd`. An initial ``~user`` is looked up directly in the password directory. On Windows, :envvar:`USERPROFILE` will be used if set, otherwise a combination of :envvar:`HOMEPATH` and :envvar:`HOMEDRIVE` will be used. An initial ``~u...
trusted_official_docs
CPython Docs
home directory is looked up in the password directory through the built-in module :mod:`pwd`. An initial ``~user`` is looked up directly in the password directory. On Windows, :envvar:`USERPROFILE` will be used if set, otherwise a combination of :envvar:`HOMEPATH` and :envvar:`HOMEDRIVE` will be used. An initial ``~u...
home directory is looked up in the password directory through the built-in module :mod:`pwd`. An initial ``~user`` is looked up directly in the password directory. On Windows, :envvar:`USERPROFILE` will be used if set, otherwise a combination of :envvar:`HOMEPATH` and :envvar:`HOMEDRIVE` will be used. An initial ``~u...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c2ff60e7-529f-4a6f-ad03-e0eddd7bc508
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,768
supabase-export-v2
837ebd903131c496
-------------- This module implements some useful functions on pathnames. To read or write files see :func:`open`, and for accessing the filesystem see the :mod:`os` module. The path parameters can be passed as strings, or bytes, or any object implementing the :class:`os.PathLike` protocol.
trusted_official_docs
CPython Docs
-------------- This module implements some useful functions on pathnames. To read or write files see :func:`open`, and for accessing the filesystem see the :mod:`os` module. The path parameters can be passed as strings, or bytes, or any object implementing the :class:`os.PathLike` protocol.
-------------- This module implements some useful functions on pathnames. To read or write files see :func:`open`, and for accessing the filesystem see the :mod:`os` module. The path parameters can be passed as strings, or bytes, or any object implementing the :class:`os.PathLike` protocol.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c33c6534-083a-4201-8c48-0f4ede8a3718
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,937
supabase-export-v2
918bfe0eda3b9279
If the path contains an extension, then *ext* will be set to this extension, including the leading period. Note that previous periods will be ignored:: >>> splitext('foo.bar.exe') ('foo.bar', '.exe') >>> splitext('/foo/bar.exe') ('/foo/bar', '.exe')
trusted_official_docs
CPython Docs
If the path contains an extension, then *ext* will be set to this extension, including the leading period. Note that previous periods will be ignored:: >>> splitext('foo.bar.exe') ('foo.bar', '.exe') >>> splitext('/foo/bar.exe') ('/foo/bar', '.exe')
If the path contains an extension, then *ext* will be set to this extension, including the leading period. Note that previous periods will be ignored:: >>> splitext('foo.bar.exe') ('foo.bar', '.exe') >>> splitext('/foo/bar.exe') ('/foo/bar', '.exe')
python, official-docs, cpython, P0
Local_Trusted_Corpus
c95bd9be-b4c4-4cad-9e2c-907ed363f1f1
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,884
supabase-export-v2
bf8390951866e529
or "bad argument to internal function". Thus, the resulting path may be missing or inaccessible, may still contain links or loops, and may traverse non-directories. This behavior can be modified by keyword arguments:
trusted_official_docs
CPython Docs
or "bad argument to internal function". Thus, the resulting path may be missing or inaccessible, may still contain links or loops, and may traverse non-directories. This behavior can be modified by keyword arguments:
or "bad argument to internal function". Thus, the resulting path may be missing or inaccessible, may still contain links or loops, and may traverse non-directories. This behavior can be modified by keyword arguments:
python, official-docs, cpython, P0
Local_Trusted_Corpus
c964f2e5-5e92-4dc4-a67f-d16aa0d4aa38
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,852
supabase-export-v2
1b1a9915e2398ce5
a share UNC are always mount points, and for any other path ``GetVolumePathName`` is called to see if it is different from the input path. .. versionchanged:: 3.4 Added support for detecting non-root mount points on Windows.
trusted_official_docs
CPython Docs
a share UNC are always mount points, and for any other path ``GetVolumePathName`` is called to see if it is different from the input path. .. versionchanged:: 3.4 Added support for detecting non-root mount points on Windows.
a share UNC are always mount points, and for any other path ``GetVolumePathName`` is called to see if it is different from the input path. .. versionchanged:: 3.4 Added support for detecting non-root mount points on Windows.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ceb66424-0394-44ec-bba0-8fe886636dc8
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,863
supabase-export-v2
cc38581c25c926e1
.. note:: This function approximates rules for reserved paths on most Windows systems. These rules change over time in various Windows releases. This function may be updated in future Python releases as changes to the rules become broadly available.
trusted_official_docs
CPython Docs
.. note:: This function approximates rules for reserved paths on most Windows systems. These rules change over time in various Windows releases. This function may be updated in future Python releases as changes to the rules become broadly available.
.. note:: This function approximates rules for reserved paths on most Windows systems. These rules change over time in various Windows releases. This function may be updated in future Python releases as changes to the rules become broadly available.
python, official-docs, cpython, P0
Local_Trusted_Corpus
cf001905-d54c-41a3-b8ce-aac1d7d0d8d7
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,879
supabase-export-v2
4d959d3dc9eb4b80
component following the leading characters may be interpreted in an implementation-defined manner, although more than two leading characters shall be treated as a single character. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
trusted_official_docs
CPython Docs
component following the leading characters may be interpreted in an implementation-defined manner, although more than two leading characters shall be treated as a single character. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
component following the leading characters may be interpreted in an implementation-defined manner, although more than two leading characters shall be treated as a single character. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d0d92d9b-1b8a-4305-94bc-73d0f150a3d8
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,927
supabase-export-v2
c00a0fe6b10be159
the root. Any of these items may be the empty string. In all cases, ``drive + root + tail`` will be the same as *path*. On POSIX systems, *drive* is always empty. The *root* may be empty (if *path* is relative), a single forward slash (if *path* is absolute), or two forward slashes (implementation-defined per `IEEE S...
trusted_official_docs
CPython Docs
the root. Any of these items may be the empty string. In all cases, ``drive + root + tail`` will be the same as *path*. On POSIX systems, *drive* is always empty. The *root* may be empty (if *path* is relative), a single forward slash (if *path* is absolute), or two forward slashes (implementation-defined per `IEEE S...
the root. Any of these items may be the empty string. In all cases, ``drive + root + tail`` will be the same as *path*. On POSIX systems, *drive* is always empty. The *root* may be empty (if *path* is relative), a single forward slash (if *path* is absolute), or two forward slashes (implementation-defined per `IEEE S...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d2ea707f-b4f8-40e6-a5a5-401bbd27b61b
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,886
supabase-export-v2
f54ff9706ce5891d
it is otherwise inaccessible. If *strict* is :data:`ALL_BUT_LAST`, the last component of the path is allowed to be missing, but all other errors are raised. If *strict* is :py:data:`os.path.ALLOW_MISSING`, errors other than :exc:`FileNotFoundError` are re-raised (as with ``strict=True``). Thus, the returned path will ...
trusted_official_docs
CPython Docs
it is otherwise inaccessible. If *strict* is :data:`ALL_BUT_LAST`, the last component of the path is allowed to be missing, but all other errors are raised. If *strict* is :py:data:`os.path.ALLOW_MISSING`, errors other than :exc:`FileNotFoundError` are re-raised (as with ``strict=True``). Thus, the returned path will ...
it is otherwise inaccessible. If *strict* is :data:`ALL_BUT_LAST`, the last component of the path is allowed to be missing, but all other errors are raised. If *strict* is :py:data:`os.path.ALLOW_MISSING`, errors other than :exc:`FileNotFoundError` are re-raised (as with ``strict=True``). Thus, the returned path will ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d3293c35-fc1a-4853-a38e-1bd688517dc3
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,830
supabase-export-v2
dc9a4933c4d9b06d
a number giving the number of seconds since the epoch (see the :mod:`time` module). Raise :exc:`OSError` if the file does not exist or is inaccessible. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
trusted_official_docs
CPython Docs
a number giving the number of seconds since the epoch (see the :mod:`time` module). Raise :exc:`OSError` if the file does not exist or is inaccessible. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
a number giving the number of seconds since the epoch (see the :mod:`time` module). Raise :exc:`OSError` if the file does not exist or is inaccessible. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d46f5f09-c1bc-450a-8f75-35de286072f6
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,784
supabase-export-v2
dfee3756d4537785
result of this function is different from the Unix :program:`basename` program; where :program:`basename` for ``'/foo/bar/'`` returns ``'bar'``, the :func:`basename` function returns an empty string (``''``). .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
trusted_official_docs
CPython Docs
result of this function is different from the Unix :program:`basename` program; where :program:`basename` for ``'/foo/bar/'`` returns ``'bar'``, the :func:`basename` function returns an empty string (``''``). .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
result of this function is different from the Unix :program:`basename` program; where :program:`basename` for ``'/foo/bar/'`` returns ``'bar'``, the :func:`basename` function returns an empty string (``''``). .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d53eb5f7-a402-45f8-ac73-b85d14ed5162
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,915
supabase-export-v2
549a511f59c8a667
.. function:: split(path, /) Split the pathname *path* into a pair, ``(head, tail)`` where *tail* is the last pathname component and *head* is everything leading up to that. The *tail* part will never contain a slash; if *path* ends in a slash, *tail* will be empty. If there is no slash in *path*, *head* will be emp...
trusted_official_docs
CPython Docs
.. function:: split(path, /) Split the pathname *path* into a pair, ``(head, tail)`` where *tail* is the last pathname component and *head* is everything leading up to that. The *tail* part will never contain a slash; if *path* ends in a slash, *tail* will be empty. If there is no slash in *path*, *head* will be emp...
.. function:: split(path, /) Split the pathname *path* into a pair, ``(head, tail)`` where *tail* is the last pathname component and *head* is everything leading up to that. The *tail* part will never contain a slash; if *path* ends in a slash, *tail* will be empty. If there is no slash in *path*, *head* will be emp...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d65915cb-249e-41de-b19c-702f32692ce5
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,933
supabase-export-v2
3c69200854ec4d0c
.. function:: splitext(path, /) Split the pathname *path* into a pair ``(root, ext)`` such that ``root + ext == path``, and the extension, *ext*, is empty or begins with a period and contains at most one period.
trusted_official_docs
CPython Docs
.. function:: splitext(path, /) Split the pathname *path* into a pair ``(root, ext)`` such that ``root + ext == path``, and the extension, *ext*, is empty or begins with a period and contains at most one period.
.. function:: splitext(path, /) Split the pathname *path* into a pair ``(root, ext)`` such that ``root + ext == path``, and the extension, *ext*, is empty or begins with a period and contains at most one period.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d83f8675-b6b5-4e56-98a0-2a86ab3ddb56
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,904
supabase-export-v2
8d39c5d460fa05f3
file or directory. This is determined by the device number and i-node number and raises an exception if an :func:`os.stat` call on either pathname fails. .. versionchanged:: 3.2 Added Windows support.
trusted_official_docs
CPython Docs
file or directory. This is determined by the device number and i-node number and raises an exception if an :func:`os.stat` call on either pathname fails. .. versionchanged:: 3.2 Added Windows support.
file or directory. This is determined by the device number and i-node number and raises an exception if an :func:`os.stat` call on either pathname fails. .. versionchanged:: 3.2 Added Windows support.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d8643708-6710-4848-8589-ffba7e33fe73
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,815
supabase-export-v2
ab1d7981d0ccd5a7
An initial ``~user`` is handled by checking that the last directory component of the current user's home directory matches :envvar:`USERNAME`, and replacing it if so. If the expansion fails or if the path does not begin with a tilde, the path is returned unchanged.
trusted_official_docs
CPython Docs
An initial ``~user`` is handled by checking that the last directory component of the current user's home directory matches :envvar:`USERNAME`, and replacing it if so. If the expansion fails or if the path does not begin with a tilde, the path is returned unchanged.
An initial ``~user`` is handled by checking that the last directory component of the current user's home directory matches :envvar:`USERNAME`, and replacing it if so. If the expansion fails or if the path does not begin with a tilde, the path is returned unchanged.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d8a2160a-bfba-4fae-80b8-4ed79d84a82b
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,877
supabase-export-v2
c967e5797d8727f5
.. function:: normpath(path) Normalize a pathname by collapsing redundant separators and up-level references so that ``A//B``, ``A/B/``, ``A/./B`` and ``A/foo/../B`` all become ``A/B``. This string manipulation may change the meaning of a path that contains symbolic links. On Windows, it converts forward slashes to ...
trusted_official_docs
CPython Docs
.. function:: normpath(path) Normalize a pathname by collapsing redundant separators and up-level references so that ``A//B``, ``A/B/``, ``A/./B`` and ``A/foo/../B`` all become ``A/B``. This string manipulation may change the meaning of a path that contains symbolic links. On Windows, it converts forward slashes to ...
.. function:: normpath(path) Normalize a pathname by collapsing redundant separators and up-level references so that ``A//B``, ``A/B/``, ``A/./B`` and ``A/foo/../B`` all become ``A/B``. This string manipulation may change the meaning of a path that contains symbolic links. On Windows, it converts forward slashes to ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
da12e528-39bd-422d-a11b-fe3f762afeff
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,829
supabase-export-v2
4ebf993232233856
.. function:: getctime(path, /) Return the system's ctime which, on some systems (like Unix) is the time of the last metadata change, and, on others (like Windows), is the creation time for *path*. The return value is a number giving the number of seconds since the epoch (see the :mod:`time` module). Raise :exc:`OSEr...
trusted_official_docs
CPython Docs
.. function:: getctime(path, /) Return the system's ctime which, on some systems (like Unix) is the time of the last metadata change, and, on others (like Windows), is the creation time for *path*. The return value is a number giving the number of seconds since the epoch (see the :mod:`time` module). Raise :exc:`OSEr...
.. function:: getctime(path, /) Return the system's ctime which, on some systems (like Unix) is the time of the last metadata change, and, on others (like Windows), is the creation time for *path*. The return value is a number giving the number of seconds since the epoch (see the :mod:`time` module). Raise :exc:`OSEr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
dcbd0560-154b-4b78-9520-9053b70d50b9
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,813
supabase-export-v2
b9bbe56ebedf434a
.. index:: pair: module; pwd On Unix, an initial ``~`` is replaced by the environment variable :envvar:`HOME` if it is set; otherwise the current user's home directory is looked up in the password directory through the built-in module :mod:`pwd`. An initial ``~user`` is looked up directly in the password directory.
trusted_official_docs
CPython Docs
.. index:: pair: module; pwd On Unix, an initial ``~`` is replaced by the environment variable :envvar:`HOME` if it is set; otherwise the current user's home directory is looked up in the password directory through the built-in module :mod:`pwd`. An initial ``~user`` is looked up directly in the password directory.
.. index:: pair: module; pwd On Unix, an initial ``~`` is replaced by the environment variable :envvar:`HOME` if it is set; otherwise the current user's home directory is looked up in the password directory through the built-in module :mod:`pwd`. An initial ``~user`` is looked up directly in the password directory.
python, official-docs, cpython, P0
Local_Trusted_Corpus
dcfc4ffb-eab7-49bd-a114-8a37833dae5d
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,875
supabase-export-v2
934684944bd7776e
Windows, convert all characters in the pathname to lowercase, and also convert forward slashes to backward slashes. On other operating systems, return the path unchanged. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
trusted_official_docs
CPython Docs
Windows, convert all characters in the pathname to lowercase, and also convert forward slashes to backward slashes. On other operating systems, return the path unchanged. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
Windows, convert all characters in the pathname to lowercase, and also convert forward slashes to backward slashes. On other operating systems, return the path unchanged. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e0cded52-b3a2-4bfc-822e-79acf27e9b25
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,856
supabase-export-v2
e9752efc7a960f67
offers faster performance for reading and writing files. It is recommended for use for source code, temporary build directories, package caches, and other IO-intensive operations. May raise an error for an invalid path, for example, one without a recognizable drive, but returns ``False`` on platforms that do not suppo...
trusted_official_docs
CPython Docs
offers faster performance for reading and writing files. It is recommended for use for source code, temporary build directories, package caches, and other IO-intensive operations. May raise an error for an invalid path, for example, one without a recognizable drive, but returns ``False`` on platforms that do not suppo...
offers faster performance for reading and writing files. It is recommended for use for source code, temporary build directories, package caches, and other IO-intensive operations. May raise an error for an invalid path, for example, one without a recognizable drive, but returns ``False`` on platforms that do not suppo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
eb9d86f5-6110-4ed2-a990-996ac32ab70d
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,804
supabase-export-v2
ec6989bd4ad1781e
some platforms, this function may return ``False`` if permission is not granted to execute :func:`os.stat` on the requested file, even if the *path* physically exists. .. versionchanged:: 3.3 *path* can now be an integer: ``True`` is returned if it is an open file descriptor, ``False`` otherwise.
trusted_official_docs
CPython Docs
some platforms, this function may return ``False`` if permission is not granted to execute :func:`os.stat` on the requested file, even if the *path* physically exists. .. versionchanged:: 3.3 *path* can now be an integer: ``True`` is returned if it is an open file descriptor, ``False`` otherwise.
some platforms, this function may return ``False`` if permission is not granted to execute :func:`os.stat` on the requested file, even if the *path* physically exists. .. versionchanged:: 3.3 *path* can now be an integer: ``True`` is returned if it is an open file descriptor, ``False`` otherwise.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ed61958b-1845-4734-9ab7-f24fde51b494
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,793
supabase-export-v2
1c8961cbcc283f52
.. warning:: This function may return invalid paths because it works a character at a time. If you need a **common path prefix**, then the algorithm implemented in this function is not secure. Use :func:`commonpath` for finding a common path prefix.
trusted_official_docs
CPython Docs
.. warning:: This function may return invalid paths because it works a character at a time. If you need a **common path prefix**, then the algorithm implemented in this function is not secure. Use :func:`commonpath` for finding a common path prefix.
.. warning:: This function may return invalid paths because it works a character at a time. If you need a **common path prefix**, then the algorithm implemented in this function is not secure. Use :func:`commonpath` for finding a common path prefix.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f021154c-b0ac-4c55-a2c8-4b85a90e6f8d
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,888
supabase-export-v2
744f76399ec73f6e
operating system's procedure for making a path canonical, which differs slightly between Windows and UNIX with respect to how links and subsequent path components interact. Operating system APIs make paths canonical as needed, so it's not normally necessary to call this function.
trusted_official_docs
CPython Docs
operating system's procedure for making a path canonical, which differs slightly between Windows and UNIX with respect to how links and subsequent path components interact. Operating system APIs make paths canonical as needed, so it's not normally necessary to call this function.
operating system's procedure for making a path canonical, which differs slightly between Windows and UNIX with respect to how links and subsequent path components interact. Operating system APIs make paths canonical as needed, so it's not normally necessary to call this function.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f223c670-1739-4c1b-8263-570dff4b0c34
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,798
supabase-export-v2
305767e6e1030a16
.. versionchanged:: 3.6 Accepts a :term:`path-like object`. .. deprecated:: 3.15 Deprecated in favor of :func:`os.path.commonpath` for path prefixes. The :func:`os.path.commonprefix` function is being deprecated due to having a misleading name and module. The function is not safe to use for path prefixes despite bei...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.6 Accepts a :term:`path-like object`. .. deprecated:: 3.15 Deprecated in favor of :func:`os.path.commonpath` for path prefixes. The :func:`os.path.commonprefix` function is being deprecated due to having a misleading name and module. The function is not safe to use for path prefixes despite bei...
.. versionchanged:: 3.6 Accepts a :term:`path-like object`. .. deprecated:: 3.15 Deprecated in favor of :func:`os.path.commonpath` for path prefixes. The :func:`os.path.commonprefix` function is being deprecated due to having a misleading name and module. The function is not safe to use for path prefixes despite bei...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f3c226ec-d0e2-4ad2-998a-d911bb5b5e93
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,786
supabase-export-v2
1a182c0a55a0d60a
.. function:: commonpath(paths) Return the longest common sub-path of each pathname in the iterable *paths*. Raise :exc:`ValueError` if *paths* contain both absolute and relative pathnames, if *paths* are on different drives, or if *paths* is empty. Unlike :func:`commonprefix`, this returns a valid path.
trusted_official_docs
CPython Docs
.. function:: commonpath(paths) Return the longest common sub-path of each pathname in the iterable *paths*. Raise :exc:`ValueError` if *paths* contain both absolute and relative pathnames, if *paths* are on different drives, or if *paths* is empty. Unlike :func:`commonprefix`, this returns a valid path.
.. function:: commonpath(paths) Return the longest common sub-path of each pathname in the iterable *paths*. Raise :exc:`ValueError` if *paths* contain both absolute and relative pathnames, if *paths* are on different drives, or if *paths* is empty. Unlike :func:`commonprefix`, this returns a valid path.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f64b7fb4-d2e4-4929-a20b-964c5916264f
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,926
supabase-export-v2
49349aedbc5d7e18
.. function:: splitroot(path, /) Split the pathname *path* into a 3-item tuple ``(drive, root, tail)`` where *drive* is a device name or mount point, *root* is a string of separators after the drive, and *tail* is everything after the root. Any of these items may be the empty string. In all cases, ``drive + root + t...
trusted_official_docs
CPython Docs
.. function:: splitroot(path, /) Split the pathname *path* into a 3-item tuple ``(drive, root, tail)`` where *drive* is a device name or mount point, *root* is a string of separators after the drive, and *tail* is everything after the root. Any of these items may be the empty string. In all cases, ``drive + root + t...
.. function:: splitroot(path, /) Split the pathname *path* into a 3-item tuple ``(drive, root, tail)`` where *drive* is a device name or mount point, *root* is a string of separators after the drive, and *tail* is everything after the root. Any of these items may be the empty string. In all cases, ``drive + root + t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f714b841-2583-46ec-a4be-6829ac4a3c3e
CPython Docs
file://datasets/cpython/Doc/library/os.path.rst
unknown
7b769996-1351-489c-a534-34c468448206
8,871
supabase-export-v2
0f3fdd9c3ccc5786
>>> os.path.join('c:\\', 'foo') 'c:\\foo' >>> os.path.join('c:\\foo', 'd:\\bar') 'd:\\bar' Note that since there is a current directory for each drive, ``os.path.join("c:", "foo")`` represents a path relative to the current directory on drive :file:`C:` (:file:`c:foo`), not :file:`c:\\foo`.
trusted_official_docs
CPython Docs
>>> os.path.join('c:\\', 'foo') 'c:\\foo' >>> os.path.join('c:\\foo', 'd:\\bar') 'd:\\bar' Note that since there is a current directory for each drive, ``os.path.join("c:", "foo")`` represents a path relative to the current directory on drive :file:`C:` (:file:`c:foo`), not :file:`c:\\foo`.
>>> os.path.join('c:\\', 'foo') 'c:\\foo' >>> os.path.join('c:\\foo', 'd:\\bar') 'd:\\bar' Note that since there is a current directory for each drive, ``os.path.join("c:", "foo")`` represents a path relative to the current directory on drive :file:`C:` (:file:`c:foo`), not :file:`c:\\foo`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
141487a1-5394-47d3-a853-ba4fec0fa999
CPython Docs
file://datasets/cpython/Doc/library/stat.rst
unknown
a95078fb-55de-4fa8-b2dc-e2cdf3b7ae3a
9,059
supabase-export-v2
94a482ef0660f72e
testing bits in the :attr:`~os.statx_result.stx_attributes` and :attr:`~os.statx_result.stx_attributes_mask` members returned by :func:`os.statx`. See the :manpage:`statx(2)` man page for more detail on the meaning of these constants. .. data:: STATX_ATTR_COMPRESSED STATX_ATTR_IMMUTABLE STATX_ATTR_APPEND STATX_ATTR_...
trusted_official_docs
CPython Docs
testing bits in the :attr:`~os.statx_result.stx_attributes` and :attr:`~os.statx_result.stx_attributes_mask` members returned by :func:`os.statx`. See the :manpage:`statx(2)` man page for more detail on the meaning of these constants. .. data:: STATX_ATTR_COMPRESSED STATX_ATTR_IMMUTABLE STATX_ATTR_APPEND STATX_ATTR_...
testing bits in the :attr:`~os.statx_result.stx_attributes` and :attr:`~os.statx_result.stx_attributes_mask` members returned by :func:`os.statx`. See the :manpage:`statx(2)` man page for more detail on the meaning of these constants. .. data:: STATX_ATTR_COMPRESSED STATX_ATTR_IMMUTABLE STATX_ATTR_APPEND STATX_ATTR_...
python, official-docs, cpython, P0
Local_Trusted_Corpus
15137006-5178-4699-a65b-af4d0278bfa8
CPython Docs
file://datasets/cpython/Doc/library/stat.rst
unknown
a95078fb-55de-4fa8-b2dc-e2cdf3b7ae3a
9,002
supabase-export-v2
03ddc4ba79818e22
.. data:: S_ISVTX Sticky bit. When this bit is set on a directory it means that a file in that directory can be renamed or deleted only by the owner of the file, by the owner of the directory, or by a privileged process.
trusted_official_docs
CPython Docs
.. data:: S_ISVTX Sticky bit. When this bit is set on a directory it means that a file in that directory can be renamed or deleted only by the owner of the file, by the owner of the directory, or by a privileged process.
.. data:: S_ISVTX Sticky bit. When this bit is set on a directory it means that a file in that directory can be renamed or deleted only by the owner of the file, by the owner of the directory, or by a privileged process.
python, official-docs, cpython, P0
Local_Trusted_Corpus
32363956-79d8-4ca2-a8b9-b4aaf958d953
CPython Docs
file://datasets/cpython/Doc/library/stat.rst
unknown
a95078fb-55de-4fa8-b2dc-e2cdf3b7ae3a
9,056
supabase-export-v2
5a83d22bdb4e0cdf
Windows, the following constants are available for comparing against the ``st_reparse_tag`` member returned by :func:`os.lstat`. These are well-known constants, but are not an exhaustive list. .. data:: IO_REPARSE_TAG_SYMLINK IO_REPARSE_TAG_MOUNT_POINT IO_REPARSE_TAG_APPEXECLINK
trusted_official_docs
CPython Docs
Windows, the following constants are available for comparing against the ``st_reparse_tag`` member returned by :func:`os.lstat`. These are well-known constants, but are not an exhaustive list. .. data:: IO_REPARSE_TAG_SYMLINK IO_REPARSE_TAG_MOUNT_POINT IO_REPARSE_TAG_APPEXECLINK
Windows, the following constants are available for comparing against the ``st_reparse_tag`` member returned by :func:`os.lstat`. These are well-known constants, but are not an exhaustive list. .. data:: IO_REPARSE_TAG_SYMLINK IO_REPARSE_TAG_MOUNT_POINT IO_REPARSE_TAG_APPEXECLINK
python, official-docs, cpython, P0
Local_Trusted_Corpus