This is a curiosity. Say I am using IPython interactively, which by default imports
from numpy import sum
and after that I decide to use sum
from the standard library. Say, to do something like
texts = [['a','good','day'],['a','lovely','day']]
sum(texts, [])
Can I do that? How?
- Notice that I don't need a solution for flattening a list. I want a general solution for importing the standard library as if I were importing any other library, or a way to circumvent the shadowing of a function.