[New-bugs-announce] [issue34333] Path.with_suffix() raises TypeError when doing %-formatting
Berker Peksag
report at bugs.python.org
Fri Aug 3 17:03:07 EDT 2018
New submission from Berker Peksag <berker.peksag at gmail.com>:
import pathlib
path = pathlib.Path('TR')
with_suffix = path.with_suffix(('/', '.md'))
The snippet I shared above will raise:
TypeError: not all arguments converted during string formatting
While we are relying on duck typing, I think this can be considered as a bug in this case.
----------
assignee: berker.peksag
components: Library (Lib)
messages: 323078
nosy: berker.peksag, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: Path.with_suffix() raises TypeError when doing %-formatting
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34333>
_______________________________________
More information about the New-bugs-announce
mailing list