How to waste computer memory?

Chris Angelico rosuav at gmail.com
Sat Mar 19 04:48:16 EDT 2016


On Sat, Mar 19, 2016 at 7:38 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> ls -l /home/user/documents/stuff/foo
>
>
> ls -l "home","user","documents","stuff","foo"
>
>
> I think users of command line tools and shells will hate you.

You misunderstand him. He doesn't want path names like that. He wants
JSON, remember?

{"command": "ls", "options": ["-l"], "arguments":
[["home","user","documents","stuff","foo"]]}

Of course, if this is too long, you can omit the spaces in between.

ChrisA



More information about the Python-list mailing list