Filter
Exclude
Time range
-
Near
When Garry Tan writes python is used Gstrings instead of Fstrings
May 25
faster than I expected, must've had GClaw running
2
98
Replying to @vikhyatk
Fstrings are GenAI now
1
10
311
Day 2 of #100daysofcode #connect #python Today I created a tip calculator! Things I learned today: 1. Type Checking 2. Type Conversion 3. Mathematical Operations 4. PEMDAS 5. Assignment Operators 6. FStrings
1
2
32
impresi pertama fstrings: -molornya lumayan cepet (ga kelamaan nunggu in tune) -licin bejir (enak sih) -coatingnya ga tebel (krn gasuka senar coated jd ini mantep)
1
2
63
A quick @matplotlib tip. If you need a custom numeric format for the bar labels, sometimes it's more convenient to use `label` param alongside list comprehension and fstrings (see🟩) as oppose to setting the format using the inbuilt `fmt` param (see 🟨):
1
4
132
31 Jul 2025
homelab works yall can finally use fstrings on these old ass computers
4
137
19 Jul 2025
Replying to @mitsuhiko
I dislike fstrings/std::fmt::Formatter/whatever because of a lot of these, I don't think there should be "formatting variants" other than Debug and Display with no toggles, you should use wrapper types to get different formatting behaviour (and yes, I don't particularly care for "propagating formatting changes down the thing you're formatting", though that would also be possible with good comptime) I got 20/26 on the quiz
2
4
840
14 Jul 2025
interesting, only knew basic fstrings
3
49
Replying to @hawwkeyem
I love f strings You don't know man So many times I want to put variable inside of a string and it's so easy and nice with f strings Ofc I can do string formatting but fstrings are the best
1
2
31
C is a lot nicer with variable interpolating fstrings and the ability to concisely test cross products of flow control.
4
4
763
Replying to @dwkos @tekbog
I hate this meme. It went too far. That abomination breaks normal language conventions like fstrings and dicts
2
12
28 Feb 2025
Replying to @mattpocockuk
it 100% reduces clarity and becomes an obstacle, especially if it hides fundamentally simple stuff like api calls or string interpolations (Python fstrings etc). Try debugging something that is hidden in 10 layers of abstraction
2
194
fstrings are SO flexible. My favourite datetime trick is to print the same variable multiple times:
Did you know f-strings can do date formatting? 🐍 😍 #python #tips
2
2
4
690
I've just found out it's possible to have nested fstrings in Python. I needed this as I've got a list of values that I want to show as annotation in a plot/animation. When I simply pass on the whole list to `ax.text()` in @matplotlib, the fstring converts it to text but there's a problem with the decimal precision for each element of the list. This is where the nested fstring enters the scene and solves the problem for me without a need to create an additional variable to create this text for annotation. Cool 😊
1
9
455
Replying to @akshay_pachaar
Fstrings are one of the Python's coolest features!
1
4
1,234
28 Sep 2024
How to use fstrings for different operations in Python?
2
67
378
31,579
all the fstrings you need in one place or something
4
400
Manipulating strings when writing Terraform config is something anyone using it for Infrastructure as Code (IaC) will be doing. The article below can really help with learning to optimize string manipulation. The config files for Terraform are written in HCL which is similar to JSON and offers many useful control flow mechanisms and utility functions similar to many programming languages. You can interpolate strings similar to Python FStrings and Javascript template literals, convert to/from base64, concatenate, and much more. Here Jack Roper iterates over most of the string-related functions and topics you will come across when using Terraform and you can hopefully optimize your own config files using some of these functions or techniques.
1
2
236
27 Aug 2024
Replying to @ryanels @RyanEls4
also breaks fstrings
1
2
4,965
Whoa! πŸ‘€ @JetBrainsRider just added a bunch of UE debugging superpowers. Being able to just use "==" for FStrings in conditional breakpoints is so much easier than the soup of characters you needed before (FNames when Rider?) But the sexiest debugging feature in my opinion? 🧡
πŸ₯΅ Tired of jumping through hoops just to do a simple string comparison in @UnrealEngine ? Rider 2024.2 fixes that! Now you can use the == and != operators directly on string types and smart pointers, making debugging simpler and more intuitive. More about enhancements to game development in Rider 2024.2 here: jb.gg/rd-242-unreal-debuggin… #GameDev #UnrealEngine
7
26
122
8,325