summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/pathlib/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/pathlib/__init__.py b/Lib/pathlib/__init__.py
index f4668ab..b020d2d 100644
--- a/Lib/pathlib/__init__.py
+++ b/Lib/pathlib/__init__.py
@@ -90,7 +90,9 @@ class PurePath(_abc.PurePathBase):
"object where __fspath__ returns a str, "
f"not {type(path).__name__!r}")
paths.append(path)
- super().__init__(*paths)
+ # Avoid calling super().__init__, as an optimisation
+ self._raw_paths = paths
+ self._resolving = False
def __reduce__(self):
# Using the parts tuple helps share interned path parts