flatsurf / surface-dynamics

Teichmüller dynamics in SageMath
https://flatsurf.github.io/surface-dynamics/
GNU General Public License v2.0
12 stars 14 forks source link

switch to pathlib.Path in the databases #87

Open fchapoton opened 4 months ago

fchapoton commented 4 months ago

Checklist

Switch to use pathlib.Path in the databases handling.

fchapoton commented 4 months ago

ping ?

videlec commented 4 months ago

Merci Frédéric. Pour quelle(s) raison(s) faudrait t-il utiliser pathlib plutôt que os.path?

fchapoton commented 4 months ago

Salut,

Euh, y a plein de sites web qui donnent des raisons assez convaincantes en cherchant pathlib versus os.path.

Juste un echantillon : https://treyhunner.com/2018/12/why-you-should-be-using-pathlib/

Notamment,

le code avec pathlib est plus concis et plus lisible ; on manipule des objets et pas juste des chaines ;

le module pathlib est plus petit que le module os

fchapoton commented 4 months ago

voir aussi https://peps.python.org/pep-0519/