The current implementation of pathlib.Path.absolute() calls self.cwd() rather than os.getcwd(), and so constructs two Path objects rather than one. As path objects are slow to construct, this has a performance impact.
Linked PRs
Reactions are currently unavailable
The current implementation of pathlib.Path.absolute() calls self.cwd() rather than os.getcwd(), and so constructs two Path objects rather than one. As path objects are slow to construct, this has a performance impact.
Linked PRs