Message203819
| Author |
pitrou |
| Recipients |
gvanrossum, neologix, pitrou |
| Date |
2013年11月22日.17:45:53 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1385142353.37.0.842056066182.issue19717@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Currently Path.resolve() raises FileNotFoundError when the path does not exist. Guido pointed out that it may more useful to resolve the path components until one doesn't exist, and then return the rest unchanged.
e.g. if /home/ points to /var/home/, Path("/home/antoine/toto") should resolve to Path("/var/home/antoine/toto") even if toto doesn't actually exist.
However, this makes the function less safe. Perhaps with a "strict" flag? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年11月22日 17:45:53 | pitrou | set | recipients:
+ pitrou, gvanrossum, neologix |
| 2013年11月22日 17:45:53 | pitrou | set | messageid: <1385142353.37.0.842056066182.issue19717@psf.upfronthosting.co.za> |
| 2013年11月22日 17:45:53 | pitrou | link | issue19717 messages |
| 2013年11月22日 17:45:53 | pitrou | create |
|