12.01.21 21:28, Sebastian Kreft пише: > class ForcePythonLruCache(importlib.abc.MetaPathFinder): > def find_spec(self, fullname, path, target=None): > if fullname == '_functools': > raise ImportError('_functools not available')
You can just set sys.modules['_functools'] = None. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/DQDGTHKTQLQYKD7EZAQQ2RL5HBG6QGEU/ Code of Conduct: http://python.org/psf/codeofconduct/