Staging: this is not the live site, pydocs.org.
File and Directory Access
Return the canonical path of the specified filename, eliminating any
symbolic links encountered in the path.
Changed in 3.6, 3.8, 3.10, 3.15
- 3.6: Accepts a path-like object.
- 3.8: Symbolic links and junctions are now resolved on Windows.
- 3.10: The strict parameter was added.
- 3.15: The ALL_BUT_LAST and ALLOW_MISSING values for the strict parameter was added.