[issue17644] str.format() crashes

2013-05-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6786e681ed58 by Benjamin Peterson in branch '3.3': only recursively expand in the format spec (closes #17644) http://hg.python.org/cpython/rev/6786e681ed58 -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/rejected

[issue17644] str.format() crashes

2013-04-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +3.3regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue17644] str.format() crashes

2013-04-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The first patch looks better for me. It is simpler and I do not sure the thing is worth a complication. -- stage: needs patch -> patch review ___ Python tracker

[issue17644] str.format() crashes

2013-04-06 Thread Mark Dickinson
Mark Dickinson added the comment: > I wonder if having braces in the field name at all should be an error. There's some discussion of this in issue #12014; e.g. msg137617. I'm not sure what conclusion was reached. Eric? -- nosy: +mark.dickinson _

[issue17644] str.format() crashes

2013-04-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here's a more comprehensive patch. It follows the PEP by allowing "{" and "}" inside "[]" in the field name. -- Added file: http://bugs.python.org/file29693/fix_format_spec.patch ___ Python tracker

[issue17644] str.format() crashes

2013-04-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here is a patch, which fixes the issue. This brings up rather subtle issues. For example you can have "{[{}]}" but not "{[{]}" as a format string. I wonder if having braces in the field name at all should be an error. -- keywords: +patch nosy: +benj

[issue17644] str.format() crashes

2013-04-06 Thread Ezio Melotti
Ezio Melotti added the comment: Confirmed on Linux too. This only affects 3.3+, on 2.7/3.2 it returns '5'. -- components: +Interpreter Core, Unicode nosy: +eric.smith, ezio.melotti, haypo, serhiy.storchaka priority: normal -> high stage: -> needs patch versions: +Python 3.4 __

[issue17644] str.format() crashes

2013-04-06 Thread Anton Poldnev
New submission from Anton Poldnev: Windows interpreter immediately crashes on this command: >>> "{[{}]}".format({"{}": 5}) -- messages: 186130 nosy: poldnev priority: normal severity: normal status: open title: str.format() crashes type: crash versions: Python 3.3 __