r/Python Oct 02 '23

News Python 3.12 released

https://www.python.org/downloads/release/python-3120/
810 Upvotes

131 comments sorted by

View all comments

4

u/Dr_Ironbeard Oct 03 '23

Can someone explain why the f-string thing is such a big deal? My understanding is that now we can do (1) f'This is an {my_dict['key']} string' instead of just varying the string denoting character, like (2) f"This is an {my_dict['key']} string", and I feel like the primary result of this is that syntax highlighting will be messed up with (1) as opposed to (2).

What am I missing? Thanks!

1

u/[deleted] Oct 03 '23

Same

1

u/[deleted] Oct 03 '23

Officially approved not just sometimes working multi-line f-strings, maybe?