Use f-strings
See original GitHub issueThey offer a simpler syntax and speed, so once we drop Python 3.5 support I guess it makes sense to look into replacing %
and format
usages with f-strings where possible.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:21 (13 by maintainers)
Top Results From Across the Web
Python 3's f-Strings: An Improved String Formatting Syntax ...
As of Python 3.6, f-strings are a great new way to format strings. ... By the end of this article, you will learn...
Read more >f-strings in Python - GeeksforGeeks
The idea behind f-strings is to make string interpolation simpler. To create an f-string, prefix the string with the letter “ f ”....
Read more >PEP 498 – Literal String Interpolation
F-strings provide a way to embed expressions inside string literals, using a minimal syntax. It should be noted that an f-string is really...
Read more >A Guide to Formatting with f-strings in Python - CIS Sandbox
To use formatted string literals, begin a string with f or F before the opening quotation mark or triple quotation mark in a...
Read more >Python f-String Tutorial – String Formatting in ... - freeCodeCamp
In this tutorial, you'll learn about f-strings in Python, and a few different ways you can use them to format strings.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
#4324 is open, but I don’t think it is a good idea to start that early, because of the merge conflicts along the way, I will suspend the work there on my side.
@siva432 Sorry, this issue is already taken (#4324). The changes have not been merged yet simply because first we need to drop Python 3.5 support in Scrapy.