Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31133
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <gvanem@broadpark.no> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.022 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'paths': 0.05; 'merging': 0.07; 'python': 0.09; 'file,': 0.15; 'to:name:python-list': 0.15; 'is).': 0.16; 'script?': 0.16; 'wrote:': 0.17; 'headers': 0.17; 'variable': 0.20; 'skip:% 10': 0.22; 'x-mailer:microsoft outlook express 6.00.2900.5931': 0.22; "i'd": 0.22; 'installed': 0.23; 'separate': 0.27; 'initial': 0.28; 'related': 0.30; 'figure': 0.30; 'stuff': 0.30; 'to:addr:python-list': 0.33; 'list': 0.35; 'needed': 0.35; 'programming.': 0.35; 'too.': 0.35; 'add': 0.36; 'really': 0.36; 'but': 0.36; "didn't": 0.36; 'too': 0.36; 'charset :us-ascii': 0.36; 'option': 0.37; 'two': 0.37; 'why': 0.37; 'rather': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'several': 0.39; 'to:addr:python.org': 0.39; 'subject:-': 0.40; 'your': 0.60; 'real': 0.61; 'save': 0.61; 'walking': 0.91 |
| MIME-version | 1.0 |
| Content-transfer-encoding | 7BIT |
| Content-type | text/plain; CHARSET=US-ASCII; format=flowed; reply-type=original |
| From | Gisle Vanem <gvanem@broadpark.no> |
| To | Python-list <python-list@python.org> |
| References | <E7295A9F2EFF4FD0A64C1225370AAC56@dev.null> <5076B379.4010503@davea.name> <75D2196AFD71466088D040B005B0BFFF@dev.null> <50772ED7.1090409@davea.name> |
| Subject | Re: for-loop on cmd-line |
| Date | Thu, 11 Oct 2012 23:00:09 +0200 |
| X-Priority | 3 |
| X-MSMail-priority | Normal |
| X-Mailer | Microsoft Outlook Express 6.00.2900.5931 |
| X-MIMEOLE | Produced By Microsoft MimeOLE V6.00.2900.6157 |
| 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.2067.1349989207.27098.python-list@python.org> (permalink) |
| Lines | 20 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1349989207 news.xs4all.nl 6894 [2001:888:2000:d::a6]:34224 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:31133 |
Show key headers only | View raw
"Dave Angel" <d@davea.name> wrote: > Why would you write some C-program just to save having two separate > files, one batch and one for the script? For that matter, several > answers have given you approaches that didn't involve list > comprehensions, including merging the two in a single file, using an > initial variable of rem=""" Like I wrote; use popen() or system() from a C-program (an env-var checker) that's not really related to Python programming. But rather to check various stuff needed for C-programming . Like walking the list of %INCLUDE / %C_INCLUDE_PATH dirs to figure out what headers are where. So I'd just as well add an option to check for Python paths too (if Python is installed that is). > What are your real constraints? Are you just playing code-golf? That too. --gv
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: for-loop on cmd-line Gisle Vanem <gvanem@broadpark.no> - 2012-10-11 23:00 +0200
csiph-web