Skip to main content

All Questions

51 votes
4 answers
10k views

Python Forgiveness vs. Permission and Duck Typing

In Python, I often hear that it is better to "beg forgiveness" (exception catching) instead of "ask permission" (type/condition checking). In regards to enforcing duck typing in Python, is this try: ...
darkfeline's user avatar
  • 1,283