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.

Author martin.panter
Recipients JelleZijlstra, barry, eric.smith, martin.panter, python-dev, yselivanov
Date 2015-09-13.04:21:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I’m actually trying out your patch now. A couple strange errors and observations:

>>> f"{'{'}"  # Why is this allowed in an outer format expression--
>>> f"{3:{'{'}>10}"  # --but not inside a format specifier?
SyntaxError: nesting of '{' in format specifier is not allowed
>>> opening = "{"; f"{3:{opening}>10}"  # Workaround
>>> f"{3:{'}'}<10}"  # Error message is very strange!
SyntaxError: missing '}' in format string expression
>>> f"{\x00}"  # It seems this is treated as a null terminator
  File "<fstring>", line 1
SyntaxError: unexpected EOF while parsing
>>> f"{'s'!\x00:.<10}"  # Default conversion is the null character?
Date User Action Args
2015-09-13 04:21:21martin.pantersetrecipients: + martin.panter, barry, eric.smith, python-dev, yselivanov, JelleZijlstra
2015-09-13 04:21:21martin.pantersetmessageid: <>
2015-09-13 04:21:21martin.panterlinkissue24965 messages
2015-09-13 04:21:21martin.pantercreate