For a while I used to use a Perl-inspired `q("red green blue")` as a
shortcut. That's one character more than the proposed syntax, I leave the
one line implementation to readers.[*]

Despite saving some characters, it wasn't important enough to bother
keeping in a utility module, let alone song as single-purpose syntax.

[*] I did this long enough ago that the implementation probably involved
`import string` ... Something only us folks quite long-in-tooth remember.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/VHV4USG3J7PAG25IXHDSG6BNH2UIATST/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to