Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-30465: Fix lineno and col_offset in fstring AST nodes (#1800) | Łukasz Langa | 2017-09-07 | 1 | -0/+248 |
| | | | For f-string ast nodes, fix the line and columns so that tools such as flake8 can identify them correctly. | ||||
* | bpo-30682: Removed a too-strict assertion that failed for certain f-strings. ↵ | ericvsmith | 2017-06-16 | 1 | -0/+6 |
| | | | | | | (#2232) This caused a segfault on eval("f'\\\n'") and eval("f'\\\r'") in debug build. | ||||
* | bpo-30529: Fix errors for invalid whitespaces in f-string subexpressions. ↵ | Serhiy Storchaka | 2017-06-08 | 1 | -0/+10 |
| | | | | | | | | (#1888) 'invalid character in identifier' now is raised instead of 'f-string: empty expression not allowed' if a subexpression contains only whitespaces and they are not accepted by Python parser. | ||||
* | bpo-29104: Fixed parsing backslashes in f-strings. (#490) | Serhiy Storchaka | 2017-05-25 | 1 | -0/+14 |
| | |||||
* | Issue #28739: f-string expressions no longer accepted as docstrings and | Serhiy Storchaka | 2016-12-11 | 1 | -10/+10 |
| | | | | by ast.literal_eval() even if they do not include subexpressions. | ||||
* | Fixed issue #28633: segfault when concatenating bytes literal and f-string. | Eric V. Smith | 2016-11-07 | 1 | -0/+7 |
| | |||||
* | Update test_no_escapes_for_braces to clarify behavior with a docstring and ↵ | Jason R. Coombs | 2016-11-06 | 1 | -5/+8 |
| | | | | expressions that clearly are not evaluated. | ||||
* | Additionally show that a backslash-escaped opening brace is treated as a ↵ | Jason R. Coombs | 2016-11-06 | 1 | -0/+1 |
| | | | | literal and thus triggers the single closing brace error, clarifying #28590. | ||||
* | Add an additional test with a newline, one that's very similar to ↵ | Jason R. Coombs | 2016-11-06 | 1 | -0/+1 |
| | | | | test_parens_in_expressions, but because the newline is not a literal newline, but a backslash en, this error is triggered. | ||||
* | Update the f-string test broken in issue #28385. | Serhiy Storchaka | 2016-10-31 | 1 | -1/+1 |
| | |||||
* | Add another f-string comment test, to make sure # are being caught in the ↵ | Eric V. Smith | 2016-09-11 | 1 | -0/+2 |
| | | | | right place. | ||||
* | Make an f-string error message more exact and consistent. | Eric V. Smith | 2016-09-11 | 1 | -1/+2 |
| | |||||
* | Issue 27948: Allow backslashes in the literal string portion of f-strings, ↵ | Eric V. Smith | 2016-09-10 | 1 | -46/+86 |
| | | | | but not in the expressions. Also, require expressions to begin and end with literal curly braces. | ||||
* | Closes issue 27921: Disallow backslashes anywhere in f-strings. This is a ↵ | Eric V. Smith | 2016-09-03 | 1 | -91/+51 |
| | | | | temporary restriction. In 3.6 beta 2, the plan is to again allow backslashes in the string parts of f-strings, but disallow them in the expression parts. | ||||
* | Issue #27626: Further spelling fixes for 3.6 | Martin Panter | 2016-07-28 | 1 | -1/+1 |
| | |||||
* | Fix issue 26287: While handling FORMAT_VALUE opcode, the top of stack was ↵ | Eric V. Smith | 2016-02-05 | 1 | -0/+11 |
| | | | | being corrupted if an error occurred in PyObject_Format(). | ||||
* | f-strings: More tests for empty expressions along with missing closing braces. | Eric V. Smith | 2015-09-23 | 1 | -0/+7 |
| | |||||
* | Added more f-string test for empty expressions. | Eric V. Smith | 2015-09-23 | 1 | -0/+3 |
| | |||||
* | Move f-string compilation of the expression earlier, before the conversion ↵ | Eric V. Smith | 2015-09-23 | 1 | -0/+9 |
| | | | | character and format_spec are checked. This allows for error messages that more closely match what a user would expect. | ||||
* | Issue #24965: Implement PEP 498 "Literal String Interpolation". ↵ | Eric V. Smith | 2015-09-19 | 1 | -0/+715 |
Documentation is still needed, I'll open an issue for that. |