From 960d1cb8960bc1b9590932161cb13f94422708bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 26 Dec 2019 16:41:20 +0100 Subject: [PATCH] Introspection --- README.md | 6 +++--- index.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 09df393..91b79a2 100644 --- a/README.md +++ b/README.md @@ -2090,9 +2090,9 @@ Introspection ### Variables ```python - = dir() # Returns names of variables in current scope. - = locals() # Returns dict of local variables. Also vars(). - = globals() # Returns dict of global variables. + = dir() # Returns names of variables in current scope. + = locals() # Returns dict of local variables. Also vars(). + = globals() # Returns dict of global variables. ``` ### Attributes diff --git a/index.html b/index.html index 9fa99f3..f036ce6 100644 --- a/index.html +++ b/index.html @@ -1830,9 +1830,9 @@ product_of_elems = functools.reduce(op.mul, <collection>) LogicOp = enum.Enum('LogicOp', {'AND': op.and_, 'OR' : op.or_}) last_el = op.methodcaller('pop')(<list>) -

#Introspection

Inspecting code at runtime.

Variables

<list> = dir()                       # Returns names of variables in current scope.
-<dict> = locals()                    # Returns dict of local variables. Also vars().
-<dict> = globals()                   # Returns dict of global variables.
+

#Introspection

Inspecting code at runtime.

Variables

<list> = dir()                                # Returns names of variables in current scope.
+<dict> = locals()                             # Returns dict of local variables. Also vars().
+<dict> = globals()                            # Returns dict of global variables.