Just remembered that the reason some people are all in on doing from imports in ...
Ryan @yantor3d@mas.to
Just remembered that the reason some people are all in on doing from imports in Python is that it takes fewer lookups to resolve MyClass than to resolve my_package.my_module.MyClass which means the code runs faster.
How much faster? They never say, and they never cite a source.
But what it means is that if you have to mock MyClass in your tests, now you have to mock it everywhere it has been from imported, instead of just where it was defined.
Which rapidly devolves into a wild goose chase if there are from imports of the thing you're trying to mock in your dependencies as well...