[Python-ideas] Working with Path objects: p-strings?

Random832 random832 at fastmail.com
Tue Mar 29 23:23:54 EDT 2016


On Tue, Mar 29, 2016, at 17:37, Brett Cannon wrote:

> > You can't add an int to a float and expect to get an integer back,
> > either.
> 
> 
> Sure, but that's because int and float are both part of the same type
> hierarchy (https://www.python.org/dev/peps/pep-3141/).

...so would str and path, in the scenario being discussed.

The argument presented here against allowing paths to be strings is also
an argument against allowing ints to be Numbers.


More information about the Python-ideas mailing list