In article <[email protected]>, 
[email protected] says...
> 
> On Sat, Jan 24, 2015 at 2:14 PM, Mario Figueiredo <[email protected]> wrote:
> > But that begs the OT question:
> 
> No, it doesnt. http://en.wikipedia.org/wiki/Begging_the_question

Cute.

> I'm not sure I'm understanding what you're asking, but the import
> statement imports the module, looks up "a_name" in that module's
> globals dict, and binds the same object to a_name in the current
> module's globals dict.

Meaning the interpreter knows a variable's name. Which would allow it to 
produce an error message such as:

    AttributeError: 'foo' object has no attribute '__bases__'

For the following code:

    class Sub:
        pass
 
    foo = Sub()
    foo.__bases__


-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to