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


Groups > comp.lang.python > #31175 > unrolled thread

How to use "while" within the command in -c option of python?

Started byHerman <sorsorday@gmail.com>
First post2012-10-12 15:51 -0700
Last post2012-10-12 15:51 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  How to use "while" within the command in -c option of python? Herman <sorsorday@gmail.com> - 2012-10-12 15:51 -0700

#31175 — How to use "while" within the command in -c option of python?

FromHerman <sorsorday@gmail.com>
Date2012-10-12 15:51 -0700
SubjectHow 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web