Author lucas.steinmann
Recipients Jeffrey.Kintscher, Nophke, brett.cannon, lucas.steinmann, pitrou, terry.reedy
Date 2019-07-08.13:47:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
@Brett: I also think making Path('.').name evaluate to '.' would be the most logical thing. More even so since the documentation says is equivalent to os.path.basename()[1], but:

>>> Path('.').name
>>> os.path.basename('.')

Though I'm not sure if that is ok to change this behaviour or if people already rely on it.

No matter which decision is made, I would say the documentation should be improved.
If it will be the same as basename, document this also here [2].
Otherwise add a note to [1], maybe in the same format and position as was done for os.path.relpath().

Date User Action Args
2019-07-08 13:47:26lucas.steinmannsetrecipients: + lucas.steinmann, brett.cannon, terry.reedy, pitrou, Jeffrey.Kintscher, Nophke
2019-07-08 13:47:26lucas.steinmannsetmessageid: <>
2019-07-08 13:47:26lucas.steinmannlinkissue37130 messages
2019-07-08 13:47:26lucas.steinmanncreate