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 Roger Aiudi
Recipients Roger Aiudi, berker.peksag, xtreak
Date 2018-09-23.14:41:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537713704.83.0.956365154283.issue34775@psf.upfronthosting.co.za>
In-reply-to
Content
Using your above example, my use case is returning an instance of Spam instead of PurePath from the division operation. The Spam class would have extra properties and methods for dealing with a substructure of our file system that can exist in different places, so being able to use a normal Path to locate it later with the division operation would be useful. (I know I could have a method that would do that, but I personally think reading the division left to right is clearer.)

The current implementation makes this impossible and I found raising a TypeError to be inconsistent with how Python handles operator overloading in the standard library.
History
Date User Action Args
2018-09-23 14:41:44Roger Aiudisetrecipients: + Roger Aiudi, berker.peksag, xtreak
2018-09-23 14:41:44Roger Aiudisetmessageid: <1537713704.83.0.956365154283.issue34775@psf.upfronthosting.co.za>
2018-09-23 14:41:44Roger Aiudilinkissue34775 messages
2018-09-23 14:41:44Roger Aiudicreate