[issue29222] Python3 interactive shell hangs on

2017-01-09 Thread Eryk Sun

Eryk Sun added the comment:

As a workaround, the platform's default Ctrl+C handler should allow killing the 
process:

>>> signal.signal(signal.SIGINT, signal.SIG_DFL)


>>> counter = itertools.count()
>>> 'count' in counter
^C

But it's nowhere near as useful as a KeyboardInterrupt exception, if something 
ever gets implemented to resolve issue 26351.

--
nosy: +eryksun
status: open -> closed

___
Python tracker 

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



[issue29222] Python3 interactive shell hangs on

2017-01-09 Thread R. David Murray

R. David Murray added the comment:

This is an instance of the the problem discussed in Issue 26351.

--
nosy: +r.david.murray
resolution:  -> duplicate
stage:  -> resolved
superseder:  -> Occasionally check for Ctrl-C in long-running operations like 
sum

___
Python tracker 

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



[issue29222] Python3 interactive shell hangs on

2017-01-09 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +rhettinger

___
Python tracker 

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



[issue29222] Python3 interactive shell hangs on

2017-01-09 Thread Vex Woo

New submission from Vex Woo:

I'v tested the following steps against python3.5 and python3.6. Python shell 
hangs on.

$ python3.6
Python 3.6.0 (v3.6.0:41df79263a11, Dec 22 2016, 17:23:13)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import itertools
>>> counter = itertools.count()
>>> next(counter)
0
>>> next(counter)
1
>>> 'count' in counter




^C^C^C^C^C^C^C^C



^C^C^C


^D
^Z
[1]  + 47254 suspended  python3.6
~ ->> fg
[1]  + 47254 continued  python3.6


^C^C^Z
[1]  + 47254 suspended  python3.6

--
components: Build
messages: 285093
nosy: Nixawk
priority: normal
severity: normal
status: open
title: Python3 interactive shell hangs on
type: behavior
versions: Python 3.5

___
Python tracker 

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