New submission from Brandt Bucher <brandtbuc...@gmail.com>:
This complements the current Path behavior that overrides division operators for path joining, in that it makes manually-constructed paths easier to form and arguably more readable. Before: p = Path("some", "relative", "path") q = p.absolute() / "some" / "further" / "path" After: p = Path("some", "relative", "path") q = abs(p) / "some" / "further" / "path" ---------- components: Library (Lib) messages: 324890 nosy: brandtbucher priority: normal severity: normal status: open title: Builtin `abs(Path)` returns `Path.absolute()`. type: enhancement versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34614> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com