[New-bugs-announce] [issue19229] operator.py: move the Python implementation in the else block of try/except ImportError
report at bugs.python.org
Sat Oct 12 01:49:11 CEST 2013
New submission from STINNER Victor:
To speedup Python startup, it may be interesting to not create useless many functions and classes in operator.py: "from _operator import *" will remove them a few line later.
What do you think of moving the Python implementation of the operator module inside in the else block of "try/except ImportError" section?
See attached operator.py for an example.
It adds an ugly level of indentation, but it's for performances!
Another option is to add a _pyoperator module.
nosy: christian.heimes, haypo
title: operator.py: move the Python implementation in the else block of try/except ImportError
versions: Python 3.4
Added file: http://bugs.python.org/file32053/operator.py
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce