Message344462
The inconsistency is a bit weird. Looking at https://github.com/python/cpython/blob/master/Lib/pathlib.py#L825 the question is why is self.name not being set for '.' but it is for '..'. I suspect there's special-casing for '.' somewhere that sets self.name to '' for '.' but leaves it alone in all other instances.
Based on what with_name() is supposed to do I would argue that '..' shouldn't work since without a filename the with_name() method makes no sense. |
|
Date |
User |
Action |
Args |
2019-06-03 18:58:59 | brett.cannon | set | recipients:
+ brett.cannon, Nophke |
2019-06-03 18:58:59 | brett.cannon | set | messageid: <1559588339.78.0.495909885096.issue37130@roundup.psfhosted.org> |
2019-06-03 18:58:59 | brett.cannon | link | issue37130 messages |
2019-06-03 18:58:59 | brett.cannon | create | |
|