Handling 3 operands in an expression without raising an exception

Chris Angelico rosuav at gmail.com
Sun Sep 29 09:58:01 EDT 2013


On Sun, Sep 29, 2013 at 8:57 PM, Dave Angel <davea at davea.name> wrote:
> Try help(globals()) at the interpreter prompt.
>
> Help on built-in function globals in module builtins:
>
> globals(...)
>     globals() -> dictionary
>
>     Return the dictionary containing the current scope's global variables.

Insignificant quibble: help(globals()) will give you help on the dict
type. What you actually want here is help(globals). Otherwise agreed.

ChrisA



More information about the Python-list mailing list