MCPcopy Index your code
hub / github.com/python/cpython / short_title

Method short_title

Lib/idlelib/editor.py:1034–1036  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1032 self.undo.reset_undo()
1033
1034 def short_title(self):
1035 filename = self.io.filename
1036 return os.path.basename(filename) if filename else "untitled"
1037
1038 def long_title(self):
1039 return self.io.filename or ""

Callers 1

saved_change_hookMethod · 0.95

Calls 1

basenameMethod · 0.45

Tested by

no test coverage detected