We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96f64a2 commit 23df46aCopy full SHA for 23df46a
Lib/pathlib/__init__.py
@@ -90,7 +90,9 @@ def __init__(self, *args):
90
"object where __fspath__ returns a str, "
91
f"not {type(path).__name__!r}")
92
paths.append(path)
93
- super().__init__(*paths)
+ # Avoid calling super().__init__, as an optimisation
94
+ self._raw_paths = paths
95
+ self._resolving = False
96
97
def __reduce__(self):
98
# Using the parts tuple helps share interned path parts
0 commit comments