Reuven M. Lerner @lernerpython.com · 12d

Old #Python: os.path.join(base, "data", "f.txt") New Python: base / "data" / "f.txt" pathlib gives you path objects, and / joins them. Path also has .read_text() and .exists(), so you rarely need os.path now.

2 likes 0 replies

?