# PEP 701 – Syntactic formalization of f-strings

**URL:** <https://discuss.python.org/t/pep-701-syntactic-formalization-of-f-strings/22046>\
**Category:** PEPs\
**Created:** [December 19, 2022, 5:53pm UTC](https://discuss.python.org/t/pep-701-syntactic-formalization-of-f-strings/22046 "2022-12-19T17:53:22Z")\
**Posts on this page:** 1\
**Showing post:** 74

<div class="post-metadata">

**Author:** ![malemburg](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/malemburg/32/50_2.png) [@malemburg](https://discuss.python.org/u/malemburg)\
**Post date:** [December 23, 2022, 10:58am UTC](https://discuss.python.org/t/pep-701-syntactic-formalization-of-f-strings/22046/74 "2022-12-23T10:58:54Z")

</div>

> [@dumbpotato](#):
>
> Having read through everything here, I still believe that the mere possibility of having deeply nested f-strings(and the re-use of quotes) is not a good enough reason to disallow it on the parser level.
> 
> Ultimately(in my opinion), such restrictions belong in linters and code formatters rather than in the language grammar itself.

That’s a fair point.

Perhaps it would be enough to rephrase the PEP to not encourage such use and instead refer to it as an implementation detail. At the moment, it reads in a way which promotes reusing the same quotes inside f-string expressions as a feature.

---

_[View the full topic](https://discuss.python.org/t/pep-701-syntactic-formalization-of-f-strings/22046)._
