Ma Lin <malin...@163.com> added the comment:
> My initial idea was to add a lightweight module cachesreg with two functions: > register() and clear_caches(). If it only has two functions, it could be a sub-module sys.cachesreg Or a lifecycle module, as the name, dedicated to such kind of functions. Register callback functions for memory low, poweroff system, etc. I don't want lifecycle module, just provide a possibility. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36485> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com