mariatta,
@mariatta@fosstodon.org avatar

Finding anything about f-strings docs in docs.python.org is hard (and I say this even as a core dev 🤨)

"F-strings" is like a "common name" that everybody knows now, but...it wasn't its original name.

First, the PEP for it is (PEP 498) is called "Formatted String Interpolation"

Then, CPython officially documents this feature not under "f-strings" heading but as "Formatted String Literal"

😵‍💫 🤕

diji,
@diji@mastodon.social avatar

@mariatta Yeah, “Interpolated strings” just doesn’t have the same zazz that “f-strings” does. I agree that the documentation should adopt “f-string” as the formal name.

mariatta,
@mariatta@fosstodon.org avatar

@diji Can you file that issue? To rename the heading from "Formatted string literal" to "F-strings (formatted string literals)" or something like that. You can even write the PR too if you want!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • GTA5RPClips
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • ethstaker
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • ngwrru68w68
  • kavyap
  • tester
  • cisconetworking
  • JUstTest
  • InstantRegret
  • khanakhh
  • cubers
  • everett
  • Durango
  • tacticalgear
  • Leos
  • modclub
  • normalnudes
  • megavids
  • anitta
  • provamag3
  • lostlight
  • All magazines