diff --git a/README.md b/README.md index 983d8d2..18ca85b 100644 --- a/README.md +++ b/README.md @@ -2141,7 +2141,7 @@ Introspection ### Attributes ```python = dir() # Names of object's attributes (incl. methods). - = vars() # Dict of writable attrs. Also .__dict__. + = vars() # Dict of writable attributes. Also .__dict__. = hasattr(, '') # Checks if getattr() raises an AttributeError. value = getattr(, '') # Raises AttributeError if attribute is missing. setattr(, '', value) # Only works on objects with __dict__ attribute. diff --git a/index.html b/index.html index 55df028..c4d37f2 100644 --- a/index.html +++ b/index.html @@ -1905,7 +1905,7 @@ last_el = op.methodcaller('pop')(<l

Attributes

<list> = dir(<object>)                     # Names of object's attributes (incl. methods).
-<dict> = vars(<object>)                    # Dict of writable attrs. Also <obj>.__dict__.
+<dict> = vars(<object>)                    # Dict of writable attributes. Also <obj>.__dict__.
 <bool> = hasattr(<object>, '<attr_name>')  # Checks if getattr() raises an AttributeError.
 value  = getattr(<object>, '<attr_name>')  # Raises AttributeError if attribute is missing.
 setattr(<object>, '<attr_name>', value)    # Only works on objects with __dict__ attribute.