From 47b4c77df7b60f271662c8622b90f58e25c755cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 19 Nov 2021 14:33:21 +0100 Subject: [PATCH] Operator --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e43ebb5..68c0e70 100644 --- a/README.md +++ b/README.md @@ -2147,7 +2147,7 @@ union_of_sets = functools.reduce(op.or_, ) last_element = op.methodcaller('pop')() ``` * **Functions and\_() and or\_() correspond to operators '&' and '|'.** -* **They only work on objects with defined and() and or() special methods, ie. ints and sets.** +* **They only work on objects with defined and() and or() special methods, i.e. ints and sets.** Introspection diff --git a/index.html b/index.html index 08b9223..fc1151d 100644 --- a/index.html +++ b/index.html @@ -1920,7 +1920,7 @@ last_element = op.methodcaller('pop')(<l
  • Functions and_() and or_() correspond to operators '&' and '|'.
  • -
  • They only work on objects with defined and() and or() special methods, ie. ints and sets.
  • +
  • They only work on objects with defined and() and or() special methods, i.e. ints and sets.

#Introspection

Inspecting code at runtime.

Variables

<list> = dir()                             # Names of local variables (incl. functions).
 <dict> = vars()                            # Dict of local variables. Also locals().