From 381dc91c9c9fcbcb84d49034dacdc47500f81b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 28 Nov 2024 15:38:01 +0100 Subject: [PATCH] Introspection --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 28f50eb..804ed19 100644 --- a/README.md +++ b/README.md @@ -2235,7 +2235,7 @@ Introspection ``` ```python - = dir() # Returns names of all object's attributes (incl. methods). + = dir() # Returns names of object's attributes (including methods). = vars() # Returns dict of writable attributes. Also .__dict__. = hasattr(, '') # Checks if object possesses attribute with passed name. value = getattr(, '') # Returns object's attribute or raises AttributeError. diff --git a/index.html b/index.html index e332aa2..c2f9bfa 100644 --- a/index.html +++ b/index.html @@ -1831,7 +1831,7 @@ CRITICAL:my_module:Running out of disk space. <dict> = globals() # Dict of global names and their objects, e.g. __builtin__. -
<list> = dir(<obj>)                 # Returns names of all object's attributes (incl. methods).
+
<list> = dir(<obj>)                 # Returns names of object's attributes (including methods).
 <dict> = vars(<obj>)                # Returns dict of writable attributes. Also <obj>.__dict__.
 <bool> = hasattr(<obj>, '<name>')   # Checks if object possesses attribute with passed name.
 value  = getattr(<obj>, '<name>')   # Returns object's attribute or raises AttributeError.