Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31175 > unrolled thread
| Started by | Herman <sorsorday@gmail.com> |
|---|---|
| First post | 2012-10-12 15:51 -0700 |
| Last post | 2012-10-12 15:51 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
How to use "while" within the command in -c option of python? Herman <sorsorday@gmail.com> - 2012-10-12 15:51 -0700
| From | Herman <sorsorday@gmail.com> |
|---|---|
| Date | 2012-10-12 15:51 -0700 |
| Subject | How to use "while" within the command in -c option of python? |
| Message-ID | <mailman.2100.1350082282.27098.python-list@python.org> |
python -c "import os; while True: print('hello')"
File "<string>", line 1
import os; while True: print('hello')
^
SyntaxError: invalid syntax
Back to top | Article view | comp.lang.python
csiph-web