Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31133 > unrolled thread
| Started by | Gisle Vanem <gvanem@broadpark.no> |
|---|---|
| First post | 2012-10-11 23:00 +0200 |
| Last post | 2012-10-11 23:00 +0200 |
| 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.
Re: for-loop on cmd-line Gisle Vanem <gvanem@broadpark.no> - 2012-10-11 23:00 +0200
| From | Gisle Vanem <gvanem@broadpark.no> |
|---|---|
| Date | 2012-10-11 23:00 +0200 |
| Subject | Re: for-loop on cmd-line |
| Message-ID | <mailman.2067.1349989207.27098.python-list@python.org> |
"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 top | Article view | comp.lang.python
csiph-web