by wiredfool · 3y ago · 0 comments
It's something of a lost cause in the numpy/pandas ecosystem though, since every single example has them renamed this way and it induces just the cognitive load that I'm trying to avoid.
Maybe you could be pedantically happy if "numpy" itself were renamed "np"? Then we can just "import np" and spare you from a DSL nightmare and ourselves from a few keystrokes while you can move on to complaining about obtuse, ungoogleable and inscrutable package names instead.
I'm thinking more of a community that can't decide between
from foo import toolkit
from foo import toolkit as tk
from foo.toolkit import thing1, thing2
from not.foo_toolkit import internalThing1, internalThing2
and the pain it is to deal with reading code there.