Name

globals

Synopsis

globals( )

Returns the __dict__ of the calling module (i.e., the dictionary used as the global namespace at the point of call). See also locals in this section.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.