[issue34333] Path.with_suffix() raises TypeError when doing %-formatting

2018-08-11 Thread Berker Peksag


Change by Berker Peksag :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions:  -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34333] Path.with_suffix() raises TypeError when doing %-formatting

2018-08-11 Thread Berker Peksag


Berker Peksag  added the comment:


New changeset c614121224a5a81d958643471720645b1cb3166e by Berker Peksag (Miss 
Islington (bot)) in branch '3.7':
bpo-34333: Fix %-formatting in Path.with_suffix() (GH-8663)
https://github.com/python/cpython/commit/c614121224a5a81d958643471720645b1cb3166e


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34333] Path.with_suffix() raises TypeError when doing %-formatting

2018-08-10 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8217

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34333] Path.with_suffix() raises TypeError when doing %-formatting

2018-08-10 Thread Berker Peksag


Berker Peksag  added the comment:


New changeset 423d05f6f59b24c91b9ef6b2e4ac130316764382 by Berker Peksag in 
branch 'master':
bpo-34333: Fix %-formatting in Path.with_suffix() (GH-8663)
https://github.com/python/cpython/commit/423d05f6f59b24c91b9ef6b2e4ac130316764382


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34333] Path.with_suffix() raises TypeError when doing %-formatting

2018-08-03 Thread Berker Peksag


Change by Berker Peksag :


--
keywords: +patch
pull_requests: +8158
stage: needs patch -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34333] Path.with_suffix() raises TypeError when doing %-formatting

2018-08-03 Thread Berker Peksag


New submission from Berker Peksag :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com