Ma Lin <malin...@163.com> added the comment:
I suggest the documentation be written in more detail. For example, in __clearcache__'s section, state explicitly that this magic function is for module-level cache, and it will be invoked by sys.clear_caches(). Maybe also introduce the background: some caches may grow unlimitedly, sys.clear_caches() gives the user a chance to empty them. ---------- nosy: +Ma Lin _______________________________________ 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