Hacker News new | ask | show | jobs
by vhodges 319 days ago
According to the Programming Guide, it supports aliases for imports

"In case of conflict or convenience, you can give modules an alias as well."

1 comments

This isn't about conflict, it's about how humans read it.

Let's say I have two modules, "telnet" and "ssh", and both have a "connect" function. When I read "import connect, (long list of other imports here)" I don't know which connect it is, and I might form the wrong mental connection, which I then have to revise when I start to read the module name.