[New-bugs-announce] [issue34775] pathlib.PurePath division raises TypeError instead of returning NotImplemented
Roger Aiudi
report at bugs.python.org
Sun Sep 23 03:02:08 EDT 2018
New submission from Roger Aiudi <aiudirog at gmail.com>:
PurePath.__truediv__ and __rtruediv__ raise a TypeError when passed something which is not an instance of string or PurePath. This prevents creating any sort of compatible class that doesn't inherit from the previously mentioned types.
----------
components: Library (Lib)
messages: 326140
nosy: Roger Aiudi
priority: normal
pull_requests: 8915
severity: normal
status: open
title: pathlib.PurePath division raises TypeError instead of returning NotImplemented
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34775>
_______________________________________
More information about the New-bugs-announce
mailing list