Message147132
| Author |
ncoghlan |
| Recipients |
eric.araujo, ncoghlan, pitrou, vstinner |
| Date |
2011年11月06日.01:25:01 |
| SpamBayes Score |
1.2667261e-05 |
| Marked as misclassified |
No |
| Message-id |
<1320542703.43.0.0844579264037.issue13229@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
That's one of the nicer attempts I've seen at an object-oriented path library, but I have a core problem with OOP path APIs, and it relates to the Unicode encoding/decoding problem: the ultimate purpose of path objects is almost always to either pass them to the OS, or else to another application. That exchange will almost *always* happen as a plain string.
So when your approach is based on a more sophisticated type internally, you end up having to be very careful about all of your system boundaries, making sure that "paths" are correctly being turned into "Paths".
However, one of my hopes for iterwalk will be that it *won't* care if the underlying walk iterator produces Path objects instead of ordinary strings, so long as those objects can be passed to fnmatch, os, etc and work correctly. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年11月06日 01:25:03 | ncoghlan | set | recipients:
+ ncoghlan, pitrou, vstinner, eric.araujo |
| 2011年11月06日 01:25:03 | ncoghlan | set | messageid: <1320542703.43.0.0844579264037.issue13229@psf.upfronthosting.co.za> |
| 2011年11月06日 01:25:02 | ncoghlan | link | issue13229 messages |
| 2011年11月06日 01:25:01 | ncoghlan | create |
|