This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2009年05月18日 10:28 by exe, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg88024 - (view) | Author: Kandalintsev Alexandre (exe) | Date: 2009年05月18日 10:28 | |
Hello! I found this problem: $ python3 -c 'import sys; for line in sys.stdout: pass' File "<string>", line 1 import sys; for line in sys.stdout: pass ^ SyntaxError: invalid syntax Without import-statement this work great. Also code 'import sys; pass' works too. |
|||
| msg88035 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2009年05月18日 16:40 | |
The error message is correct: your example is invalid python code. Try it in a file and you will get the same error message. Check the documentation of the '-c' option to learn how to correctly code your example. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:49 | admin | set | github: 50302 |
| 2009年05月18日 16:40:41 | r.david.murray | set | status: open -> closed nosy: + r.david.murray messages: + msg88035 resolution: not a bug stage: resolved |
| 2009年05月18日 10:28:59 | exe | create | |