"import X" and "from X import y" produce different results, Why?

Parzival Herzog parz at home.com
Fri Mar 2 00:41:35 EST 2001


Thanks guys!, I guess I got caught by the word "IDENTICAL" in the Essential Reference,
and I didn't see the implication of the words "creates a reference".

"from x import y" is anything BUT identical to plain import!

humbly-acknowledging-the-higher-pythonic-wisdom-of-those-who-know-about-effbot.org-ly
    - Parzival

"Alex Martelli" <aleaxit at yahoo.com> wrote in message news:97l3e8027ho at news2.newsguy.com...

> Right.  I.e., it's identical, except that it isn't:-).






More information about the Python-list mailing list