tags:

views:

89

answers:

1

Ruby has this really handy module called Pathname.

Is there a python equivalent to it?

+1  A: 

That looks a lot like os.path.

Just Some Guy
Same functionality, but not not object oriented.
mikerobi
Is that a problem?
Just Some Guy
The ruby lib is object oriented, so I assumed that was what he was looking for, because I didn't think someone would need to ask if python had functionality for path manipulation. It just seemed too obvious.
mikerobi
Lots of people have made OO-style interfaces to pathname manipulation. No-one has come up with one that everyone's happy to put in the stdlib though. See [PEP 355](http://www.python.org/dev/peps/pep-0355/)
bobince
mikirobi is right... Ruby has two ways to manipulate path objects. One is like the `os.path` stuff, the one I want is OO based.
The Doctor What