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


Groups > comp.lang.python > #31133

Re: for-loop on cmd-line

From Gisle Vanem <gvanem@broadpark.no>
References <E7295A9F2EFF4FD0A64C1225370AAC56@dev.null> <5076B379.4010503@davea.name> <75D2196AFD71466088D040B005B0BFFF@dev.null> <50772ED7.1090409@davea.name>
Subject Re: for-loop on cmd-line
Date 2012-10-11 23:00 +0200
Newsgroups comp.lang.python
Message-ID <mailman.2067.1349989207.27098.python-list@python.org> (permalink)

Show all headers | 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


Thread

Re: for-loop on cmd-line Gisle Vanem <gvanem@broadpark.no> - 2012-10-11 23:00 +0200

csiph-web