Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33574 > unrolled thread

Re: Splitting a line while keeping quoted items together

Started byTim Chase <python.list@tim.thechases.com>
First post2012-11-19 19:20 -0600
Last post2012-11-19 19:20 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Splitting a line while keeping quoted items together Tim Chase <python.list@tim.thechases.com> - 2012-11-19 19:20 -0600

#33574 — Re: Splitting a line while keeping quoted items together

FromTim Chase <python.list@tim.thechases.com>
Date2012-11-19 19:20 -0600
SubjectRe: Splitting a line while keeping quoted items together
Message-ID<mailman.25.1353374371.29569.python-list@python.org>
>> 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web