[New-bugs-announce] [issue19229] operator.py: move the Python implementation in the else block of try/except ImportError

STINNER Victor 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.

----------
files: operator.py
messages: 199525
nosy: christian.heimes, haypo
priority: normal
severity: normal
status: open
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>
<http://bugs.python.org/issue19229>
_______________________________________


More information about the New-bugs-announce mailing list