←back to thread

620 points tambourine_man | 1 comments | | HN request time: 0s | source
Show context
enescakir ◴[] No.43749266[source]
Not sure about introducing yet another string prefix. Between f-strings, raw strings, and i18n stuff, it’s already getting crowded. Curious how readable this will be in large codebases.
replies(3): >>43749334 #>>43749489 #>>43749515 #
wodenokoto ◴[] No.43749334[source]
I'm of the opposite opinion. Let's set the prefixes free!

    from sql import sql

    query = sql"SELECT user_id, user_name FROM {user_table_versioned} WHERE user_name = {user_name}"
replies(4): >>43749474 #>>43749545 #>>43749548 #>>43749927 #
1. masklinn ◴[] No.43749548[source]
This was considered and rejected: https://peps.python.org/pep-0750/#arbitrary-string-literal-p...