Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #34681
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.009 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'parsing': 0.07; 'command.': 0.09; 'filenames,': 0.09; 'suggest': 0.11; '-tkc': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'message-id:@tim.thechases.com': 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; 'thanks,': 0.18; 'code.': 0.20; "i've": 0.23; 'header:User- Agent:1': 0.26; 'appear': 0.26; 'knows': 0.30; 'point': 0.31; 'implement': 0.32; 'could': 0.32; 'to:addr:python-list': 0.33; 'list': 0.35; 'subject:?': 0.35; 'there': 0.35; 'should': 0.36; 'unable': 0.36; 'possible': 0.37; 'things': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'hints': 0.65; 'diving': 0.84; 'received:50.22': 0.84; 'to:name:python': 0.84 |
| Date | Tue, 11 Dec 2012 22:15:32 -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 | Python <python-list@python.org> |
| Subject | PyParsing contextual suggestions? |
| 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 |
| 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.768.1355285674.29569.python-list@python.org> (permalink) |
| Lines | 16 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1355285674 news.xs4all.nl 6845 [2001:888:2000:d::a6]:36728 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:34681 |
Show key headers only | View raw
I've just started tinkering around with PyParsing and have unable to come up with an answer to the following without deep diving into the code. Is there a way to do a partial parsing and then get the list of possible things that could appear at the terminus of the parsing? My hope is to implement context-aware suggestions in a readline.py/cmd.py application. So I might have a grammar that knows about filenames, and could then appropriately suggest file-names at the given point in a parsing of the command. Any hints on where I should read up? Thanks, -tkc
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
PyParsing contextual suggestions? Tim Chase <python.list@tim.thechases.com> - 2012-12-11 22:15 -0600
csiph-web