[issue33754] f-strings should be part of the Grammar

2020-10-21 Thread Eric V. Smith
Eric V. Smith added the comment: Just some notes to consider before work starts on this in earnest: We need to decide what sort of changes we'll accept, if any. For at least the first round of this, I'm okay with "absolutely no change will be acceptable". For example, here's a good change

[issue33754] f-strings should be part of the Grammar

2020-10-20 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- nosy: +lys.nikolaou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33754] f-strings should be part of the Grammar

2020-07-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: I share Eric's concern about "unknowingly changing the behavior of f-strings." -- nosy: +rhettinger ___ Python tracker ___

[issue33754] f-strings should be part of the Grammar

2020-07-08 Thread Eric V. Smith
Change by Eric V. Smith : -- versions: +Python 3.10 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33754] f-strings should be part of the Grammar

2019-12-01 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33754] f-strings should be part of the Grammar

2018-06-03 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not completely opposed to it, but I need to understand the benefits and side effects. And I wouldn't exactly describe the multiple passes over the string as "parsing", but I see your point. -- ___ Python

[issue33754] f-strings should be part of the Grammar

2018-06-03 Thread David Halter
David Halter added the comment: As I wrote before, I'm not trying to change anything about the f-string behavior. It is a refactoring. If anyone wants to change the behavior, I feel like they should probably write a PEP anyway. I personally don't like that f-strings get parsed multiple

[issue33754] f-strings should be part of the Grammar

2018-06-03 Thread Eric V. Smith
Eric V. Smith added the comment: What is the goal here? Are you just trying to simplify ast.c? My concern is that there are many, many edge cases, and that you'll be unknowingly changing the behavior of f-strings. One of the goals of the f-string specification is for a simple third-party

[issue33754] f-strings should be part of the Grammar

2018-06-03 Thread Berker Peksag
Change by Berker Peksag : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33754] f-strings should be part of the Grammar

2018-06-03 Thread David Halter
New submission from David Halter : Currently f-strings are a bit of a hack. They certainly work very well for users, but they are implemented in ast.c and therefore not part of the Python grammar and the tokenizer. I want to change this. I wrote an alternative implementation of f-strings in