Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33574
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python.list@tim.thechases.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'docs.': 0.09; 'subject:while': 0.09; 'cc:addr:python-list': 0.10; '-tkc': 0.16; 'already,': 0.16; 'csv': 0.16; 'enough:': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'logging,': 0.16; 'message- id:@tim.thechases.com': 0.16; 'pwd': 0.16; 'received:70.251': 0.16; 'received:dsl.rcsntx.swbell.net': 0.16; 'received:rcsntx.swbell.net': 0.16; 'received:swbell.net': 0.16; 'stdlib.': 0.16; 'subject:quoted': 0.16; 'module,': 0.17; "shouldn't": 0.17; 'module': 0.19; 'written': 0.20; 'trying': 0.21; 'own.': 0.22; 'somebody': 0.23; 'task': 0.23; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'implemented': 0.27; 'remotely': 0.29; 'code': 0.31; 'url:python': 0.32; 'getting': 0.33; 'problem': 0.33; 'something': 0.35; 'url:org': 0.36; 'option': 0.37; 'subject:: ': 0.38; 'first': 0.61; 'color': 0.69; 'sounds': 0.71; 'received:50.22': 0.84; 'browse': 0.93; 'subject:together': 0.93 |
| Date | Mon, 19 Nov 2012 19:20:16 -0600 |
| From | Tim Chase <python.list@tim.thechases.com> |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111120 Icedove/3.1.16 |
| MIME-Version | 1.0 |
| To | Joshua R English <josh@merchantconcepts.com> |
| Subject | Re: Splitting a line while keeping quoted items together |
| References | <CAMZYqRR2Nj04Ex4CpKZgf_yf5WrRsxWjTZpxekLAQ-uDUHFTkQ@mail.gmail.com> <R0w3SldISiNfOzskSjkzNTQ5NjA1Mzc1@Joshdesktop> |
| In-Reply-To | <R0w3SldISiNfOzskSjkzNTQ5NjA1Mzc1@Joshdesktop> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| X-AntiAbuse | This header was added to track abuse, please include it with any abuse report |
| X-AntiAbuse | Primary Hostname - boston.accountservergroup.com |
| X-AntiAbuse | Original Domain - python.org |
| X-AntiAbuse | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-AntiAbuse | Sender Address Domain - tim.thechases.com |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.25.1353374371.29569.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1353374371 news.xs4all.nl 6922 [2001:888:2000:d::a6]:40593 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:33574 |
Show key headers only | View raw
>> 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