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 terry.reedy
Recipients ned.deily, py78py90py, ronaldoussoren, serhiy.storchaka, steven.daprano, terry.reedy
Date 2017-08-09.19:21:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502306501.64.0.566082628247.issue31142@psf.upfronthosting.co.za>
In-reply-to
Content
There is still something you left out.  Entering either print(")<return> or print(')<return> at either a shell prompt or in a file and running the file should result in "SyntaxError: EOL while scanning string literal", as Steven said.  Ditto for eval("print(')") or eval('print(")').  The error comes from Python's compile() function.  The result *should* be the same on all systems. This is feature, neither a crash nor a bug.  So my first inclination was to close this as 'Not a bug'.

But getting a system crash log is usually a bug when running Python code. From my reading of Mac's crash log, what crashed is not IDLE but Python running _tkinter calling tcl running tk calling OSX's CoreFoundation which raised NSRangeException.  How did you bypass compile()?

Where did you get the Python that you installed?  If from python.org, did you pay attention to https://www.python.org/download/mac/tcltk/ and install a tcl/tk that works?  If not, not our bug.

Ned and Serhiy: can we patch  _tkinter on Mac to refuse to run with the buggy Apple tcl/tk?  Or at least pop up a Warning box that says to not bug us when it crashes?
History
Date User Action Args
2017-08-09 19:21:41terry.reedysetrecipients: + terry.reedy, ronaldoussoren, ned.deily, steven.daprano, serhiy.storchaka, py78py90py
2017-08-09 19:21:41terry.reedysetmessageid: <1502306501.64.0.566082628247.issue31142@psf.upfronthosting.co.za>
2017-08-09 19:21:41terry.reedylinkissue31142 messages
2017-08-09 19:21:41terry.reedycreate