Part of bzrlib
Importing the python standard module 'copy' is far more expensive than it needs to be, because copy imports 'inspect' which imports 'tokenize'. And 'copy' only needs 2 small functions out of 'inspect', but has to load all of 'tokenize', which makes it horribly slow.
This module is designed to use tricky hacks in import rules, to avoid this overhead.
|Function||getmro||Return tuple of base classes (including cls) in method resolution order.|
|Function||import_copy_with_hacked_inspect||Import the 'copy' module with a hacked 'inspect' module|