[issue13349] Uninformal error message in index() and remove() functions
Ezio Melotti
report at bugs.python.org
Fri Nov 18 10:22:12 CET 2011
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
> I found safe_repr() from Lib/unittest/util.py.
The functions in Lib/unittest/util.py shouldn't be used outside unittest.
> We would require a similar function, just implemented in C.
> What is a good place to define such C helpers that could be used everywhere?
You could start by adding it in the file where you need it. If it starts becoming useful elsewhere too, it can then be moved somewhere else. I would expect such function to be private, so we are free to move it whenever we need it.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13349>
_______________________________________
More information about the Python-bugs-list
mailing list