Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [3.13] gh-120417: Remove unused imports in the stdlib (GH-120420) (#120429) | Miss Islington (bot) | 2024-06-12 | 1 | -1/+0 |
| | | | | | | gh-120417: Remove unused imports in the stdlib (GH-120420) (cherry picked from commit 4c6d4f5cb33e48519922d635894eef356faddba2) Co-authored-by: Victor Stinner <vstinner@python.org> | ||||
* | gh-118263: Add additional arguments to path_t (Argument Clinic type) in ↵ | Miss Islington (bot) | 2024-05-24 | 1 | -37/+5 |
| | | | | | | | posixmodule (GH-118355) (cherry picked from commit 96b392df303b2cfaea823afcb462c0b455704ce8) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> | ||||
* | gh-118507 : Refactor `nt._path_is*` to improve applicability for other cases ↵ | Miss Islington (bot) | 2024-05-22 | 1 | -17/+4 |
| | | | | | | | (GH-118755) (cherry picked from commit b64182550f73e556344bd754d32e3be5d22a74e1) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> | ||||
* | gh-117607: Speedup os.path.relpath() (GH-117608) | Nice Zombies | 2024-05-01 | 1 | -9/+10 |
| | |||||
* | gh-102511: Speed up os.path.splitroot() with native helpers (GH-118089) | Nice Zombies | 2024-04-25 | 1 | -48/+68 |
| | |||||
* | gh-117636: Remove redundant type check in `os.path.join()` (#117638) | Nice Zombies | 2024-04-14 | 1 | -2/+0 |
| | |||||
* | gh-117686: Improve the performance of ntpath.expanduser() (#117690) | Nice Zombies | 2024-04-10 | 1 | -1/+3 |
| | | | Refactor out _get_bothseps() call from the loop. | ||||
* | gh-117648: Improve performance of os.join (#117654) | Nice Zombies | 2024-04-09 | 1 | -1/+1 |
| | | | | | Replace map() with a method call in the loop body. Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com> | ||||
* | gh-117381: Improve error messages for ntpath.commonpath() (GH-117382) | Nice Zombies | 2024-04-03 | 1 | -3/+6 |
| | |||||
* | gh-117349: Micro-optimize a few `os.path` functions (#117350) | Nice Zombies | 2024-04-02 | 1 | -16/+13 |
| | | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Barney Gale <barney.gale@gmail.com> Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com> | ||||
* | gh-117335: Handle non-iterables for `ntpath.commonpath` (GH-117336) | Nice Zombies | 2024-03-28 | 1 | -6/+5 |
| | |||||
* | gh-117114: Make os.path.isdevdrive available on all platforms (GH-117115) | Nice Zombies | 2024-03-25 | 1 | -21/+7 |
| | |||||
* | gh-88569: add `ntpath.isreserved()` (#95486) | Barney Gale | 2024-01-26 | 1 | -2/+38 |
| | | | | | | | | | | | Add `ntpath.isreserved()`, which identifies reserved pathnames such as "NUL", "AUX" and "CON". Deprecate `pathlib.PurePath.is_reserved()`. --------- Co-authored-by: Eryk Sun <eryksun@gmail.com> Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Steve Dower <steve.dower@microsoft.com> | ||||
* | GH-44626, GH-105476: Fix `ntpath.isabs()` handling of part-absolute paths ↵ | Barney Gale | 2024-01-13 | 1 | -10/+3 |
| | | | | | | | | | | | | | (#113829) On Windows, `os.path.isabs()` now returns `False` when given a path that starts with exactly one (back)slash. This is more compatible with other functions in `os.path`, and with Microsoft's own documentation. Also adjust `pathlib.PureWindowsPath.is_absolute()` to call `ntpath.isabs()`, which corrects its handling of partial UNC/device paths like `//foo`. Co-authored-by: Jon Foster <jon@jon-foster.co.uk> | ||||
* | gh-82367: Use `FindFirstFile` Win32 API in `ntpath.realpath()` (GH-110298) | 박문식 | 2023-10-05 | 1 | -6/+10 |
| | | | | | | | * Use `FindFirstFile` Win32 API to fix a bug where `ntpath.realpath()` breaks out of traversing a series of paths where a (handled) `ERROR_ACCESS_DENIED` or `ERROR_SHARING_VIOLATION` occurs. * Update docs to reflect that `ntpath.realpath()` eliminates MS-DOS style names. | ||||
* | gh-106242: Make ntpath.realpath errors consistent with abspath when there ↵ | Steve Dower | 2023-08-22 | 1 | -0/+12 |
| | | | | | | | | | | | | | are embedded nulls (GH-108248) * gh-106242: Make ntpath.realpath errors consistent with abspath when there are embedded nulls * Update 2023-08-22-00-36-57.gh-issue-106242.q24ITw.rst mention Windows and the former incorrect ValueError. --------- Co-authored-by: Gregory P. Smith <greg@krypto.org> | ||||
* | gh-104803: Implement ntpath.isdevdrive for checking whether a path is on a ↵ | Steve Dower | 2023-05-29 | 1 | -0/+16 |
| | | | | Windows Dev Drive (GH-104805) | ||||
* | GH-103220: Fix `ntpath.join()` of partial UNC drive with trailing slash ↵ | Barney Gale | 2023-04-11 | 1 | -1/+1 |
| | | | | (GH-103221) | ||||
* | GH-88013: Fix TypeError raised by ntpath.realpath in some cases (GH-102813) | AN Long | 2023-04-07 | 1 | -1/+1 |
| | |||||
* | gh-101196: Make isdir/isfile/exists faster on Windows (GH-101324) | Michael Droettboom | 2023-02-08 | 1 | -19/+8 |
| | | | Co-authored-by: Eryk Sun <eryksun@gmail.com> | ||||
* | gh-101000: Add os.path.splitroot() (#101002) | Barney Gale | 2023-01-27 | 1 | -54/+72 |
| | | | | Co-authored-by: Eryk Sun <eryksun@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | gh-96290: Support partial/invalid UNC drives in ntpath.normpath() and ↵ | Barney Gale | 2023-01-12 | 1 | -34/+21 |
| | | | | | | | splitdrive() (GH-100351) This brings the Python implementation of `ntpath.normpath()` in line with the C implementation added in 99fcf15 Co-authored-by: Eryk Sun <eryksun@gmail.com> | ||||
* | bpo-44817: Ignore additional errors in ntpath.realpath (GH-27574) | Michael Förderer | 2022-12-05 | 1 | -1/+4 |
| | |||||
* | gh-99547: Add isjunction methods for checking if a path is a junction (GH-99548) | Charles Machalow | 2022-11-22 | 1 | -1/+19 |
| | |||||
* | gh-89545: Updates platform module to use new internal _wmi module on Windows ↵ | Steve Dower | 2022-09-07 | 1 | -3/+2 |
| | | | | to directly query OS properties (GH-96289) | ||||
* | gh-81790: support "UNC" device paths in `ntpath.splitdrive()` (GH-91882) | Barney Gale | 2022-06-10 | 1 | -1/+7 |
| | |||||
* | bpo-42658: Use LCMapStringEx in ntpath.normcase to match OS behaviour for ↵ | AN Long | 2022-06-06 | 1 | -8/+34 |
| | | | | case-folding (GH-32010) | ||||
* | bpo-46362: Ensure ntpath.abspath() uses the Windows API correctly (GH-30571) | neonene | 2022-01-13 | 1 | -1/+1 |
| | | | This makes ntpath.abspath()/getpath_abspath() follow normpath(), since some WinAPIs such as PathCchSkipRoot() require backslashed paths. | ||||
* | bpo-45582: Port getpath[p].c to Python (GH-29041) | Steve Dower | 2021-12-03 | 1 | -49/+63 |
| | | | | | The getpath.py file is frozen at build time and executed as code over a namespace. It is never imported, nor is it meant to be importable or reusable. However, it should be easier to read, modify, and patch than the previous code. This commit attempts to preserve every previously tested quirk, but these may be changed in the future to better align platforms. | ||||
* | bpo-43757: Make pathlib use os.path.realpath() to resolve symlinks in a path ↵ | Barney Gale | 2021-04-28 | 1 | -1/+3 |
| | | | | | (GH-25264) Also adds a new "strict" argument to realpath() to avoid changing the default behaviour of pathlib while sharing the implementation. | ||||
* | bpo-39899: Don't double-check directory name if we're requesting the current ↵ | Barney Gale | 2021-04-09 | 1 | -8/+9 |
| | | | | user's home directory in ntpath.expanduser() (GH-25277) | ||||
* | bpo-39899: os.path.expanduser(): don't guess other Windows users' home ↵ | Barney Gale | 2021-04-07 | 1 | -3/+15 |
| | | | | | | | directories if the basename of the current user's home directory doesn't match their username. (GH-18841) This makes `ntpath.expanduser()` match `pathlib.Path.expanduser()` in this regard, and is more in line with `posixpath.expanduser()`'s cautious approach. Also remove the near-duplicate implementation of `expanduser()` in pathlib, and by doing so fix a bug where KeyError could be raised when expanding another user's home directory. | ||||
* | bpo-38453: Ensure ntpath.realpath correctly resolves relative paths (GH-16967) | Steve Dower | 2019-11-15 | 1 | -8/+41 |
| | | | | | Ensure isabs() is always True for \\?\ prefixed paths Avoid unnecessary usage of readlink() to avoid resolving broken links incorrectly Ensure shutil tests run in test directory | ||||
* | bpo-38355: Fix ntpath.realpath failing on sys.executable (GH-16551) | Steve Dower | 2019-10-03 | 1 | -11/+9 |
| | |||||
* | bpo-38081: Add more non-fatal error codes for ntpath.realpath (GH-16156) | Steve Dower | 2019-09-16 | 1 | -7/+34 |
| | |||||
* | bpo-38081: Fixes ntpath.realpath('NUL') (GH-15899) | Steve Dower | 2019-09-11 | 1 | -6/+7 |
| | |||||
* | bpo-9949: Call normpath() in realpath() and avoid unnecessary prefixes ↵ | Steve Dower | 2019-08-21 | 1 | -3/+8 |
| | | | | (GH-15369) | ||||
* | bpo-9949: Enable symlink traversal for ntpath.realpath (GH-15287) | Steve Dower | 2019-08-21 | 1 | -19/+88 |
| | |||||
* | bpo-30427: eliminate redundant type checks in os.path.normcase() (GH-1712) | Wolfgang Maier | 2019-03-28 | 1 | -10/+4 |
| | | | https://bugs.python.org/issue30427 | ||||
* | bpo-36264: Don't honor POSIX HOME in os.path.expanduser on Windows (GH-12282) | Anthony Sottile | 2019-03-12 | 1 | -3/+1 |
| | |||||
* | bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082) | Tim Graham | 2018-10-25 | 1 | -1/+1 |
| | | | Regression in b0bf51b32240369ccb736dc32ff82bb96f375402. | ||||
* | bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant ↵ | Serhiy Storchaka | 2018-09-18 | 1 | -3/+3 |
| | | | | | | | | | | to invalid paths. (#7695) Such functions as os.path.exists(), os.path.lexists(), os.path.isdir(), os.path.isfile(), os.path.islink(), and os.path.ismount() now return False instead of raising ValueError or its subclasses UnicodeEncodeError and UnicodeDecodeError for paths that contain characters or bytes unrepresentative at the OS level. | ||||
* | bpo-31047: Fix ntpath.abspath for invalid paths (GH-8544) | Franz Wöllert | 2018-07-29 | 1 | -22/+20 |
| | |||||
* | bpo-31802: Fix importing native path module before importing os. (#4017) | Serhiy Storchaka | 2018-01-07 | 1 | -11/+12 |
| | |||||
* | Issue #29197: Removed deprecated function ntpath.splitunc(). | Serhiy Storchaka | 2017-01-13 | 1 | -23/+1 |
| | |||||
* | Issue #27355: Removed support for Windows CE. It was never finished, | Larry Hastings | 2016-09-05 | 1 | -2/+0 |
| | | | | and Windows CE is no longer a relevant platform for Python. | ||||
* | Issue #26027, #27524: Add PEP 519/__fspath__() support to os and | Brett Cannon | 2016-08-26 | 1 | -2/+16 |
| | | | | | | os.path. Thanks to Jelle Zijlstra for the initial patch against posixmodule.c. | ||||
* | Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc | Martin Panter | 2016-04-15 | 1 | -1/+1 |
| | | | | This affects documentation, code comments, and a debugging messages. | ||||
* | Issue #23780: Improved error message in os.path.join() with single argument. | Serhiy Storchaka | 2015-05-19 | 1 | -0/+2 |
| | | | | Idea by R. David Murray. | ||||
* | Issue #10395: Added os.path.commonpath(). Implemented in posixpath and ntpath. | Serhiy Storchaka | 2015-03-31 | 1 | -1/+62 |
| | | | | Based on patch by Rafik Draoui. |