Using import foo.bar.baz as fbb

There is a wonderful feature in Python import statement to make an alias for an imported object (import foo.bar.baz as fbb
). It allows to avoid name conflicts and improve code readability if necessary. And of course, using it you can easily turn your perfect code into a completely unreadable mess. Recently I’ve seen this several times. I’ve met some strange abbreviations and confusing aliases.
Continue reading