Message325509
If sys is imported and sys.stdout.shell.console is typed, IDLE does not return to the prompt. Ctrl-C has no effect and after a restart with Ctrl-F6, IDLE does not react after a command is typed in. This also occurs when other variables such as sys.stdout.shell.stdout are used, but not with non-existent variables such as sys.stdout.shell.not_a_variable. No such issue occurs using the command line; however, sys.stdout.shell is not defined in the command line. This behaviour exists in at least Python 3.6.1 and 3.7.0 on Mac OS X 10.9.
This might be related to a similar issue that occurs in at least Python 3.2 on Windows 2000. Entering sys.stdout.shell.console causes IDLE to crash immediately; a crash also occurs when you type sys.stdout.shell.console. and wait for IDLE to bring up the list of attributes.
I know that this bug shouldn't be encountered unless you're using the IDLE PyShell object for some reason, but it still seems weird that getting the value of a variable causes crashes and hangs, especially when I know that the variable exists from looking at idlelib.
This is marked as Python 3.4 to 3.7 because I tested with 3.7, 3.6 and 3.2 and I don't think that this would have been fixed and then broken again. I don't know about 3.8, though. |
|
Date |
User |
Action |
Args |
2018-09-17 02:53:01 | Harrison Chudleigh | set | recipients:
+ Harrison Chudleigh, terry.reedy |
2018-09-17 02:53:01 | Harrison Chudleigh | set | messageid: <1537152781.74.0.956365154283.issue34708@psf.upfronthosting.co.za> |
2018-09-17 02:53:01 | Harrison Chudleigh | link | issue34708 messages |
2018-09-17 02:53:00 | Harrison Chudleigh | create | |
|