"one two three".split()

On Tue, Oct 22, 2019, 3:56 PM Steve Jorgensen <stevej@stevej.name> wrote:
See https://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Literals#The_%_Notation for what Ruby offers.

For me, the arrays are the most useful aspect.

    %w{one two three}
    => ["one", "two", "three"]

I did a search, and I don't see that this has been suggested before, but I might have missed something. I'm guessing I'm not the first person to ask whether this seems like a desirable feature to add to Python.
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-leave@python.org
Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/D5RMXPN3NXVM2OJIAJ2NSBII6UJGDVDZ/
Code of Conduct: http://python.org/psf/codeofconduct/