Issue 34868: bad error message when combining _ grouping specifier with invalid type (original) (raw)

Issue34868

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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

classification

Title: bad error message when combining _ grouping specifier with invalid type
Type: Stage: resolved
Components: Interpreter Core Versions: Python 3.8, Python 3.7, Python 3.6

process

Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, miss-islington, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2018-10-02 04:10 by benjamin.peterson, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 9666 merged benjamin.peterson,2018-10-02 04:38
PR 9668 merged miss-islington,2018-10-02 04:54
PR 9669 merged miss-islington,2018-10-02 04:55
Messages (5)
msg326848 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2018-10-02 04:10
>>> format(34, '_n') Traceback (most recent call last): File "", line 1, in ValueError: Cannot specify ',' with 'n'. Why is it talking about ","?
msg326851 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-10-02 04:34
See .
msg326856 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2018-10-02 04:54
New changeset cbda8fc5d76b10bcbb92d927537576c229143836 by Benjamin Peterson in branch 'master': closes bpo-34868: Improve error message with '_' is combined with an invalid type specifier. (GH-9666) https://github.com/python/cpython/commit/cbda8fc5d76b10bcbb92d927537576c229143836
msg326857 - (view) Author: miss-islington (miss-islington) Date: 2018-10-02 05:12
New changeset cd4dd9374d0fc65b070a61871801d306090f8375 by Miss Islington (bot) in branch '3.7': closes bpo-34868: Improve error message with '_' is combined with an invalid type specifier. (GH-9666) https://github.com/python/cpython/commit/cd4dd9374d0fc65b070a61871801d306090f8375
msg326858 - (view) Author: miss-islington (miss-islington) Date: 2018-10-02 05:18
New changeset 7455bf46a222780805fd0375328f5732e5bbb684 by Miss Islington (bot) in branch '3.6': closes bpo-34868: Improve error message with '_' is combined with an invalid type specifier. (GH-9666) https://github.com/python/cpython/commit/7455bf46a222780805fd0375328f5732e5bbb684
History
Date User Action Args
2022-04-11 14:59:06 admin set github: 79049
2018-10-02 05🔞18 miss-islington set messages: +
2018-10-02 05:12:07 miss-islington set nosy: + miss-islingtonmessages: +
2018-10-02 04:55:01 miss-islington set pull_requests: + <pull%5Frequest9061>
2018-10-02 04:54:53 miss-islington set pull_requests: + <pull%5Frequest9060>
2018-10-02 04:54:44 benjamin.peterson set status: open -> closedresolution: fixedmessages: + stage: patch review -> resolved
2018-10-02 04:38:14 benjamin.peterson set keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest9058>
2018-10-02 04:34:28 serhiy.storchaka set nosy: + serhiy.storchakamessages: +
2018-10-02 04:10:59 benjamin.peterson create