Issue2106

classification
Title: InteractiveInterpreter.runsource doesn't accept 'exec' as symbol parameter
Type: Severity: normal
Components: Core Versions: Jython 2.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: traff, zyasoft
Priority: Keywords:

Created on 2013-12-10.01:22:30 by traff, last changed 2015-01-09.03:17:41 by zyasoft.

Messages
msg8194 (view) Author: traff (traff) Date: 2013-12-10.01:22:30
Method InteractiveInterpreter.runsource(source[, filename[, symbol]]) in CPython accepts 'single', 'eval' and 'exec' as symbol, while Jython accepts only 'single' and 'evel'
msg9360 (view) Author: Jim Baker (zyasoft) Date: 2015-01-09.03:17:41
Per https://docs.python.org/2/library/code.html#code.InteractiveInterpreter.runsource

"symbol is the optional grammar start symbol, which should be either 'single' (the default) or 'eval'."

I would not be surprised if "exec" is also accepted if undocumented (and apparently untested). What's the purpose of this usage?
History
Date User Action Args
2015-01-09 03:17:41zyasoftsetnosy: + zyasoft
messages: + msg9360
2013-12-10 01:22:30traffcreate