diff options
author | Barney Gale <barney.gale@gmail.com> | 2024-01-13 08:03:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-13 08:03:21 (GMT) |
commit | f20b151a1c49602282a0e80ffb92f68c28c04abd (patch) | |
tree | a6297cc95d132dda30a1c961cd608a2ffdbb81f4 /Python/getopt.c | |
parent | e4ff131e01184b68d868cfd241a03f8b7d2e0ff9 (diff) | |
download | cpython-f20b151a1c49602282a0e80ffb92f68c28c04abd.zip cpython-f20b151a1c49602282a0e80ffb92f68c28c04abd.tar.gz cpython-f20b151a1c49602282a0e80ffb92f68c28c04abd.tar.bz2 |
pathlib ABCs: add `_raw_path` property (#113976)
It's wrong for the `PurePathBase` methods to rely so much on `__str__()`.
Instead, they should treat the raw path(s) as opaque objects and leave the
details to `pathmod`.
This commit adds a `PurePathBase._raw_path` property and uses it through
many of the other ABC methods. These methods are all redefined in
`PurePath` and `Path`, so this has no effect on the public classes.
Diffstat (limited to 'Python/getopt.c')
0 files changed, 0 insertions, 0 deletions