Antoine Pitrou added the comment: > "import operator" is only 2x faster (289 usec => 136 usec). It's less > interesting.
The real question for me is: why are you interested in speeding up the import of the operator module? 200 µs won't make a visible difference. > And what would be the purpose of a file of 4 line which > containing "import *"? To make it obvious that there are two implementations, one of which is a fallback. ---------- title: operator.py: move the Python implementation in the else block of try/except ImportError -> operator.py: move the Python implementation in the else block of try/except ImportError _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19229> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com