Terry J. Reedy <tjre...@udel.edu> added the comment:

Raymond, I presume 1. your tracebacks are on macOS. 2. They occur with 
installed, not repository Python. 3. The missing attribute depends on whether 
Shell or an editor window is closed either only or last.  Please verify.  What 
macOS version?  python.org installer?

I cannot, at least now, reproduce this on my Macbook with macOS Mohave (? the 
latest version) running 3.7.4 ('python3') from Terminal.  What could be 
different your system.  The macOS version?  Were your 3.8 reports based on the 
last beta (.0b4)?

I also cannot reproduce on Win10 running installed 3.7.4 or 3.8.0b4 from 
Command Prompt with the py launcher, I do not have any problems when closing.  
---

When running from repository 3.8 or 3.9 (master), but not 3.7, is see the 
following if a Shell is closed, last or not.

Exception ignored in: <idlelib.run.PseudoInputFile object at 0x05681418>
Traceback (most recent call last):
  File "f:\dev\38\lib\idlelib\run.py", line 488, in close
  File "f:\dev\38\lib\idlelib\pyshell.py", line 1020, in close
  File "f:\dev\38\lib\idlelib\editor.py", line 1062, in close
  File "f:\dev\38\lib\idlelib\outwin.py", line 94, in maybesave
  File "f:\dev\38\lib\idlelib\editor.py", line 995, in get_saved
AttributeError: 'NoneType' object has no attribute 'get_saved'

The get_saved fix proposed in PR 10564 (object.method() => object and 
object.method()) will fix this also.  But I want to try changing the closing 
order first.

Tal and Cheryl, other people testing might be helpful.

----------
nosy: +cheryl.sabella, taleinat -ronaldoussoren
stage: patch review -> 
title: IDLE's close fails when io.filename set to None -> IDLE's close fails io 
is set to None on Mac

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35379>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to