help on "from deen import *" vs. "import deen"
jfong at ms4.hinet.net
jfong at ms4.hinet.net
Sun Nov 20 20:32:40 EST 2016
Tristan B. Kildaire at 2016/11/20 8:23:37PM wrote:
> From deen import * imports all the things in deen but accessable with no
> `deen.`
These "accessible" objects become read-only even if it's mutable. For immutable objects, you can't even create a new one in the deen's namespace.
> import deen imports all of deen but accessible via `deen.thing`
:-)
--Jach
More information about the Python-list
mailing list