New submission from Berker Peksag <berker.pek...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue34333>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to