[Python-Dev] The desired behaviour for resolve() when the path doesn't exist (original) (raw)
Vajrasky Kok sky.kok at speaklikeaking.com
Mon Jan 6 11:38:46 CET 2014
- Previous message: [Python-Dev] Python 2.7 root buildbot showing errors
- Next message: [Python-Dev] The desired behaviour for resolve() when the path doesn't exist
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Dear friends,
This is related with ticket 19717: "resolve() fails when the path doesn't exist".
Assuming /home/cutecat exists but not /home/cutecat/aa,
what is the desired output of Path('/home/cutecat/aa/bb/cc').resolve(strict=False)?
Should it be:
"/home/cutecat" (the existed path only), "/home/cutecat/aa" (the first non-existed path; my current strategy), or "/home/cutecat/aa/bb/cc" (the default behaviour of os.path.realpath)?
Vajrasky
- Previous message: [Python-Dev] Python 2.7 root buildbot showing errors
- Next message: [Python-Dev] The desired behaviour for resolve() when the path doesn't exist
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]