mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
`PurePathBase.__repr__()` produces a string like `MyPath('/foo')`. This
repr is incorrect/misleading when a subclass's `__init__()` method is
customized, which I expect to be the very common.
This commit moves the `__repr__()` method to `PurePath`, leaving
`PurePathBase` with the default `object` repr.
No user-facing changes because the `pathlib._abc` module remains private.
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _abc.py | ||