diff options
author | krotera <01101011@tuta.io> | 2021-01-15 17:44:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 17:44:19 -0500 |
commit | 4076d78e2604ea95cc7c469864d989d1949550c1 (patch) | |
tree | 42dadd1ebcd941c43416b9746abaa6e39c51653f /python.html.markdown | |
parent | 967591e4c25fcd3ee9e57effcd0b8ad0aafe9b89 (diff) |
Fix tiny typos
Diffstat (limited to 'python.html.markdown')
-rw-r--r-- | python.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python.html.markdown b/python.html.markdown index e21d7dde..39e60455 100644 --- a/python.html.markdown +++ b/python.html.markdown @@ -482,7 +482,7 @@ except (TypeError, NameError): pass # Multiple exceptions can be handled together, if required. else: # Optional clause to the try/except block. Must follow all except blocks print("All good!") # Runs only if the code in try raises no exceptions -finally: # Execute under all circumstances +finally: # Execute under all circumstances print("We can clean up resources here") # Instead of try/finally to cleanup resources you can use a with statement @@ -735,7 +735,7 @@ class Human: return "*grunt*" # A property is just like a getter. - # It turns the method age() into an read-only attribute of the same name. + # It turns the method age() into a read-only attribute of the same name. # There's no need to write trivial getters and setters in Python, though. @property def age(self): |