Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Can we make that the standard and get rid of the ugly str.format(UGLINESS) syntax.

No, please.

F-strings are useful for some things, but there's a good reason. to define templates other than deep in code for ease of editing them distinct from functionality (often, completely externally to code) and using str.format supports that.

If anything, I'd prefer r-strinfs as the default with both escape handling and formatting non-default options, but the status quo is acceptable and better than r-strings as the base.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: