New submission from Hanish <hanish0...@gmail.com>:
There seems to an error in the `f-string` error description when one do: >>> f'{1:,,}' Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: Cannot specify both ',' and '_'. >>> The error seems to be that, i am not specifying both ',' and '_', but it does seem to think so. This also seems to be happening for `str.format`: >>> '{:,,}'.format(1) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: Cannot specify both ',' and '_'. So i was just wondering if this is an issue worth raising :) Thank you ---------- components: Interpreter Core messages: 376160 nosy: eric.smith, han-solo priority: normal severity: normal status: open title: f-string error description seems wrong type: enhancement versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41681> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com