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.

classification
Title: IDLE undo calls get_saved() when set to None
Type: behavior Stage: resolved
Components: IDLE Versions: Python 3.8
process
Status: closed Resolution: duplicate
Dependencies: Superseder: IDLE's close fails io is set to None on Mac
View: 35379
Assigned To: terry.reedy Nosy List: ZackerySpytz, rhettinger, terry.reedy
Priority: normal Keywords:

Created on 2019-09-12 03:53 by rhettinger, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (4)
msg352047 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2019-09-12 03:53
Terry, I don't know if these exception reports are useful to you.  If not, feel free to close this.  I run IDLE in day long sessions and only see these tracebacks when I'm exiting, so I don't know the proximate trigger event.


Exception in Tkinter callback
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/tkinter/__init__.py", line 1883, in __call__
    return self.func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/multicall.py", line 176, in handler
    r = l[i](event)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/filelist.py", line 54, in close_all_callback
    reply = edit.close()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/pyshell.py", line 1008, in close
    return EditorWindow.close(self)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/editor.py", line 1077, in close
    reply = self.maybesave()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/outwin.py", line 94, in maybesave
    return 'yes' if self.get_saved() else 'no'
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/editor.py", line 1010, in get_saved
    return self.undo.get_saved()
AttributeError: 'NoneType' object has no attribute 'get_saved'
msg352048 - (view) Author: Zackery Spytz (ZackerySpytz) * (Python triager) Date: 2019-09-12 03:56
This seems like a duplicate of bpo-35263.
msg352234 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2019-09-13 01:22
Here's one more:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/tkinter/__init__.py", line 1883, in __call__
    return self.func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/multicall.py", line 176, in handler
    r = l[i](event)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/filelist.py", line 54, in close_all_callback
    reply = edit.close()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/editor.py", line 1079, in close
    self._close()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/pyshell.py", line 312, in _close
    EditorWindow._close(self)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/editor.py", line 1083, in _close
    if self.io.filename:
AttributeError: 'NoneType' object has no attribute 'filename'
msg352407 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2019-09-14 05:27
None.get_saved (closing shell) was reported in #35263.
None.filename (closing editor) was reported in #35379.
Up-to-date reports in one page were a bit helpful.
History
Date User Action Args
2022-04-11 14:59:20adminsetgithub: 82309
2019-09-14 05:27:22terry.reedysetstatus: open -> closed
superseder: IDLE's close fails io is set to None on Mac
messages: + msg352407

resolution: duplicate
stage: resolved
2019-09-13 01:22:05rhettingersetmessages: + msg352234
2019-09-12 03:56:59ZackerySpytzsetnosy: + ZackerySpytz
messages: + msg352048
2019-09-12 03:53:29rhettingercreate