[issue15598] relative import unexpectedly binds name

2012-08-08 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue15598] relative import unexpectedly binds name

2012-08-08 Thread Eric Snow
Eric Snow added the comment: I agree with Benjamin. The name is not bound due to the from-import statement. -- nosy: +eric.snow ___ Python tracker ___ __

[issue15598] relative import unexpectedly binds name

2012-08-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't think this is incorrect. Importing a submodule implicit sets its name in the package scope, which is __init__'s module scope. -- nosy: +benjamin.peterson ___ Python tracker

[issue15598] relative import unexpectedly binds name

2012-08-08 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue15598] relative import unexpectedly binds name

2012-08-08 Thread Antony Lee
New submission from Antony Lee: The language reference is clear: "The from form does not bind the module name" (Section 6.12) However, consider the following example: * package/__init__.py: foo = "FOO" from .foo import bar print(foo) os = "OS" from os import path print(os) * package/foo.py: fo