[Python-ideas] PEP 428 - object-oriented filesystem paths

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Oct 7 04:19:44 CEST 2012

Ben Finney wrote:
> filenames often
> have several suffixes in sequence, e.g. ‘foo.tar.gz’ or ‘foo.pg.sql’,
> and each one conveys meaningful intent by whoever named the file.

When I talk about "the extension", I mean the last one. The
vast majority of the time, that's all you're interested in --
you unwrap one layer of the onion at a time, and leave the
rest for the next layer of software up.

That's not always true, but it's true often enough that I
think it's worth having special APIs for dealing with the last


More information about the Python-ideas mailing list