basename with extensions

Tal Einat tal.no.no.spam at gmail.com
Wed Aug 30 08:57:50 EDT 2006


Peter Saffrey wrote:
> I'd like to resurrect this subject:
>
> http://groups.google.com/group/comp.lang.python/browse_frm/thread/11146344b03e72b6/6b2a3b0c0e902114?lnk=gst&q=basename&rnum=2#6b2a3b0c0e902114
>
> [snip]
>
> Or have I missed something?
>
The Python developers are working on a new path module for the standard
library, since the current tools for working with paths are widely
accepted as being quite clumsy. Check out PEP 355 for details.

In the mean time, there are several alternative path modules you can
check out:

Jason Orendorff's path module:
http://www.jorendorff.com/articles/python/path/

PEP 355 reference implementation:
http://wiki.python.org/moin/PathModule

There are also others, to be found with Google.

- Tal




More information about the Python-list mailing list