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.

Author Albert.Zeyer
Recipients Albert.Zeyer, georg.brandl, terry.reedy
Date 2013-10-22.12:20:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382444429.58.0.78007772787.issue17294@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks a lot for the long and detailed response! I didn't meant to start a header war; I thought that my request was misunderstood and thus the header changes were by mistake. But I guess it is a good suggestion to leave that decision to a core dev.

I still thing that this would have been more straight-forward in the first place:

for statement in user_input():
  if statement:
    value = exec(compile(statement, '<input>', 'single'))
    if value is not None: print value

Because it is more explicit. But because introducing such an incompatible change is bad, I thought it's a good idea to add another compile-mode.

Your `ee_compile` seems somewhat inefficient to me because you call `compile` twice and I don't like solutions like this very much (try one thing, then try another thing) as rock-solid solutions. (Of course, neither is `interactive_py_compile`, that one just shows what I want.)
History
Date User Action Args
2013-10-22 12:20:29Albert.Zeyersetrecipients: + Albert.Zeyer, georg.brandl, terry.reedy
2013-10-22 12:20:29Albert.Zeyersetmessageid: <1382444429.58.0.78007772787.issue17294@psf.upfronthosting.co.za>
2013-10-22 12:20:29Albert.Zeyerlinkissue17294 messages
2013-10-22 12:20:29Albert.Zeyercreate