Feb. 6, 2016
4:16 p.m.
kernc added the comment: The use case is not unpopular [1] and with unambiguous examples like >>> arr = np.arange(5) >>> my_sum(arr) 10 (i.e., without importing numpy as np everywhere), it also makes a lot of sense. [1]: http://stackoverflow.com/questions/13106118/object-reuse-in-python-doctest/3... ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue26303> _______________________________________