Python: Difference between revisions
Line 105: | Line 105: | ||
;Notes | ;Notes | ||
* One annoyance with <code>pathlib.Path</code> is that you need to convert things to strings manually | * One annoyance with <code>pathlib.Path</code> is that you need to convert things to strings manually | ||
** This can be done with <code>str<code>, <code>.resolve()</code>, or <code>os.fspath()</code> | ** This can be done with <code>str</code>, <code>.resolve()</code>, or <code>os.fspath()</code> | ||
* [https://treyhunner.com/2019/01/no-really-pathlib-is-great/ "No really, pathlib is great" by Trey Hunger] | * [https://treyhunner.com/2019/01/no-really-pathlib-is-great/ "No really, pathlib is great" by Trey Hunger] | ||