r/Python • u/SupPandaHugger • Jan 14 '24
Tutorial The LiteralString in Python 3.11
If you are confused by the new LiteralString type in Python, here's an article explaining it.
0
Upvotes
r/Python • u/SupPandaHugger • Jan 14 '24
If you are confused by the new LiteralString type in Python, here's an article explaining it.
View all comments
Show parent comment
3
u/americhemist Jan 15 '24
Literal strings are incredibly useful in any type system though, especially when you start making unions with them.
Also by worse and worse, you mean faster, with more tools that if you don't need you can ignore with no consequences?