[Tutor] Question on "import foobar" vs "from foobar import *"

Rob Cherry pythontutor at lxrb.com
Fri Jan 8 20:39:23 CET 2010


Extending on this advice somewhat - is it *ever* correct to "import foobar".

There are countless examples of

import os,sys

etc,etc.  Strictly speaking should we always be using "from" to only
get what we know we need?

Thanks,

Rob


More information about the Tutor mailing list