Roger Aiudi <aiudi...@gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34775>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to