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/35242443
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue26303>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com