This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients berker.peksag, r.david.murray, rhendrikse, vinay.sajip
Date 2016-07-12.13:32:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468330320.64.0.787669321782.issue27493@psf.upfronthosting.co.za>
In-reply-to
Content
It will be interesting to see how much logging itself needs to be aware of PEP 519 once the support is added to posixpath.  ideally, to meet the goals of PEP 519, the answer would be "not at all".

@richard: python uses duck typing: if it quacks like a duck, pretend it is a duck.  That means that the code (generally, there are exceptions) doesn't check for types, but just handles the object the way it normally would until it fails to quack, at which point you get an exception.  Sometimes we add code to turn such exceptions into clearer error messages, when the existing error *hides* what is really going on.  This would not be one of those cases though, even if supporting Path wasn't on the long term agenda: the existing error tells you that the module expects it to act like a string (support startswith, and other string methods).
History
Date User Action Args
2016-07-12 13:32:00r.david.murraysetrecipients: + r.david.murray, vinay.sajip, berker.peksag, rhendrikse
2016-07-12 13:32:00r.david.murraysetmessageid: <1468330320.64.0.787669321782.issue27493@psf.upfronthosting.co.za>
2016-07-12 13:32:00r.david.murraylinkissue27493 messages
2016-07-12 13:32:00r.david.murraycreate