Closed
Description
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.
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.