[issue31142] python shell crashed while input quotes in print()

2017-08-11 Thread Ned Deily

Ned Deily added the comment:

Note that the web page states you need to use Tcl/Tk 8.5.18, and not 8.6.x.  
Both are available from ActiveState here:

https://www.activestate.com/activetcl/downloads

Try installing 8.5.18 (you don't need to uninstall 8.6.x) and your crashes 
should go away.

--
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31142] python shell crashed while input quotes in print()

2017-08-10 Thread py78py90py

py78py90py added the comment:

I downloaded python from www.python.org. And I think I have tcl/tk installed.

Python 3.6.2 (v3.6.2:5fd33b5926, Jul 16 2017, 20:11:06) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "copyright", "credits" or "license()" for more information.
>>> WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable.
Visit http://www.python.org/download/mac/tcltk/ for current information.

I am trying to use the recommended tcltk version.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31142] python shell crashed while input quotes in print()

2017-08-09 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee: terry.reedy -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31142] python shell crashed while input quotes in print()

2017-08-09 Thread Terry J. Reedy

Terry J. Reedy added the comment:

There is still something you left out.  Entering either print(") or 
print(') 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?

--
components: +Tkinter, macOS
nosy: +ned.deily, ronaldoussoren, serhiy.storchaka
type:  -> crash

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31142] python shell crashed while input quotes in print()

2017-08-09 Thread py78py90py

py78py90py added the comment:

Sorry for the incomplete information.

I have inputed following line:
print(")
IDLE crashed.
I also input following line:
print(')
IDLE also crashed.
I have uploaded the crash log.

--
Added file: http://bugs.python.org/file47068/crashlog.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31142] python shell crashed while input quotes in print()

2017-08-08 Thread Steven D'Aprano

Steven D'Aprano added the comment:

I'm afraid your error report isn't completely clear. What do you mean "input 
single quote in print"? Do you mean this?

print(')


You say IDLE "crashed". What do you mean? Do you mean the IDLE application put 
up an error message and then disappeared? If so, what was the error message?

If IDLE said something like:

SyntaxError: EOL while scanning string literal

that's perfectly normal. That's because you haven't written a valid string, you 
need to quote the single quote: print("'").

--
assignee:  -> terry.reedy
components: +IDLE -Demos and Tools
nosy: +steven.daprano, terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31142] python shell crashed while input quotes in print()

2017-08-08 Thread py78py90py

New submission from py78py90py:

I have downloaded python 3.6 into MacOSX system.
Python 3.6.2 (v3.6.2:5fd33b5926, Jul 16 2017, 20:11:06) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin

Then I opened the IDLE and try to input some sentences.
I inputed "print()", then input single quote in print.
But the IDLE crashed.

--
components: Demos and Tools
messages: 299909
nosy: py78py90py
priority: normal
severity: normal
status: open
title: python shell crashed while input quotes in print()
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com