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.

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 "<stdin>", line 1, in <module>
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 issue31780.
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:06adminsetgithub: 79049
2018-10-02 05:18:18miss-islingtonsetmessages: + msg326858
2018-10-02 05:12:07miss-islingtonsetnosy: + miss-islington
messages: + msg326857
2018-10-02 04:55:01miss-islingtonsetpull_requests: + pull_request9061
2018-10-02 04:54:53miss-islingtonsetpull_requests: + pull_request9060
2018-10-02 04:54:44benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg326856

stage: patch review -> resolved
2018-10-02 04:38:14benjamin.petersonsetkeywords: + patch
stage: patch review
pull_requests: + pull_request9058
2018-10-02 04:34:28serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg326851
2018-10-02 04:10:59benjamin.petersoncreate