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

Function write_history

Lib/site.py:579–590  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

577 pass
578
579 def write_history():
580 try:
581 readline_module.write_history_file(history)
582 except FileNotFoundError, PermissionError:
583 # home directory does not exist or is not writable
584 # https://bugs.python.org/issue19891
585 pass
586 except OSError:
587 if errno.EROFS:
588 pass # gh-128066: read-only file system
589 else:
590 raise
591
592 atexit.register(write_history)
593

Callers

nothing calls this directly

Calls 1

write_history_fileMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…