Differences between revisions 1 and 2
Revision 1 as of 2005-07-24 14:29:33
Size: 733
Editor: mh391
Comment:
Revision 2 as of 2005-07-25 06:24:23
Size: 734
Editor: east23-p206
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
Other implementations to look at include the original, py.path and some things that others have mentioned on c.l.p. and python-dev Other implementations to look at include the original, path.py and some things that others have mentioned on c.l.p. and python-dev.

Path class Pre-Pre-PEP

Implementation(s)

Reinhold has modified Jason Orendorff's original path.py to fit discussions in python-dev and comp.lang.python and has placed it in Python CVS under nondist/sandbox/path.

Other implementations to look at include the original, path.py and some things that others have mentioned on c.l.p. and python-dev.

Design Principles

1. A Path should be a drop-in replacement for a str or unicode as much as possible.

2. Properties are the interface for immutable attributes of a Path. For example, a Path's basename will be the same regardless of data on the local filesystem.

3. Methods are the interface for mutable attributes, for example, the last-modified-time.

PathClass (last edited 2009-09-13 06:07:15 by 216)

Unable to edit the page? See the FrontPage for instructions.