Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33574
| Date | 2012-11-19 19:20 -0600 |
|---|---|
| From | Tim Chase <python.list@tim.thechases.com> |
| Subject | Re: Splitting a line while keeping quoted items together |
| References | <CAMZYqRR2Nj04Ex4CpKZgf_yf5WrRsxWjTZpxekLAQ-uDUHFTkQ@mail.gmail.com> <R0w3SldISiNfOzskSjkzNTQ5NjA1Mzc1@Joshdesktop> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.25.1353374371.29569.python-list@python.org> (permalink) |
>> Use the "shlex" module in the std lib? > > Well color me ignorant. > > Works cleanly. I shouldn't have reinvented the wheel. I've experienced this enough: the csv module, option parsing, config-file parsing, logging, timeit, and pwd all come to mind as code I've written before realizing the stdlib already has it. Now, if my task sounds remotely like something that somebody else might have implemented already, my first stop is always to browse through the stdlib docs. Then try http://pypi.python.org/pypi to see if somebody else has already solved the problem without the solution getting into the stdlib. Only then do I proceed to trying to code up something of my own. -tkc
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Splitting a line while keeping quoted items together Tim Chase <python.list@tim.thechases.com> - 2012-11-19 19:20 -0600
csiph-web