Message228373
On Python 2.7.8, on Windows 7, if I start up the Python interactive console using the flags -i -u -c, nothing else will be considered valid syntax from that point forward.
My understanding is:
-i tells Python to enter interactive mode after it's done running whatever else it's told to do
-u tells Python to not buffer output
-c tells Python to treat any further arguments as Python code and to run it
None of these flags should be causing the issues that I'm seeing, I don't think.
Example:
$ python -i -u -c "print('Test')"
Test
>>> print('verify')
File "<stdin>", line 1
print('verify')
^
SyntaxError: invalid syntax
This doesn't occur on my computer running OS X Mavericks (10.9.4) and Python 2.7.6 which leads me to think this may be a platform or version specific issue... |
|
Date |
User |
Action |
Args |
2014-10-03 20:39:31 | Taylor.Marks | set | recipients:
+ Taylor.Marks |
2014-10-03 20:39:31 | Taylor.Marks | set | messageid: <1412368771.6.0.381085911452.issue22551@psf.upfronthosting.co.za> |
2014-10-03 20:39:31 | Taylor.Marks | link | issue22551 messages |
2014-10-03 20:39:31 | Taylor.Marks | create | |
|