Issue 36251: Invalid format specifiers in MatchObject and StdPrinter repr (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/80432

classification

Title: Invalid format specifiers in MatchObject and StdPrinter repr
Type: behavior Stage: resolved
Components: Interpreter Core, Regular Expressions Versions: Python 3.8, Python 3.7

process

Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ezio.melotti, miss-islington, mrabarnett, serhiy.storchaka, sth
Priority: normal Keywords: patch

Created on 2019-03-09 16:53 by sth, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 12252 merged sth,2019-03-09 16:54
PR 12263 merged miss-islington,2019-03-10 10:29
Messages (4)
msg337574 - (view) Author: Stephan Hohe (sth) * Date: 2019-03-09 16:53
match_repr() and stdprinter_repr() contain calls to PyUnicode_FromFormat() with format specifiers that don't match the arguments. See the upcoming pull request for details.
msg337604 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2019-03-10 10:29
New changeset 8b91edadc06dcb0d391a65d1ecdf07dcb429df1b by Serhiy Storchaka (sth) in branch 'master': bpo-36251: Fix format strings used in match_repr() and stdprinter_repr(). (GH-12252) https://github.com/python/cpython/commit/8b91edadc06dcb0d391a65d1ecdf07dcb429df1b
msg337607 - (view) Author: miss-islington (miss-islington) Date: 2019-03-10 10:52
New changeset e4be2057d4bd06eb56fbfef4e4ed88fff7fb47cd by Miss Islington (bot) in branch '3.7': bpo-36251: Fix format strings used in match_repr() and stdprinter_repr(). (GH-12252) https://github.com/python/cpython/commit/e4be2057d4bd06eb56fbfef4e4ed88fff7fb47cd
msg337608 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2019-03-10 10:56
Thank you for your contribution Stephan! Versions older than 3.6 take only security fixes. See also .
History
Date User Action Args
2022-04-11 14:59:12 admin set github: 80432
2019-03-10 10:56:34 serhiy.storchaka set status: open -> closedversions: - Python 3.4, Python 3.5, Python 3.6type: behaviormessages: + resolution: fixedstage: patch review -> resolved
2019-03-10 10:52:58 miss-islington set nosy: + miss-islingtonmessages: +
2019-03-10 10:29:41 miss-islington set pull_requests: + <pull%5Frequest12248>
2019-03-10 10:29:21 serhiy.storchaka set nosy: + serhiy.storchakamessages: +
2019-03-09 16:54:13 sth set keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest12240>
2019-03-09 16:53:01 sth create