On 2021-06-24 20:59:31, Steven D'Aprano wrote:
Seriously, there's a time to realise when arguments against a feature devolve down to utterly spurious claims that Python programmers are idiots who will be confused by:
from extensions use flatten mylist.flatten()
but can instantly understand:
from extensions import flatten flatten(mylist)
Does this mean importing a module can modify other objects, including builtins? Should this spooky-action-at-a-distance be encouraged?
OTOH, this already happens in the stdlib with rlcompleter, I assume using monkey-patching. This is a special case for interactive use, though.