Checking Signature of Function Parameter

Chris Angelico rosuav at gmail.com
Sun Aug 28 20:27:53 EDT 2011


On Mon, Aug 29, 2011 at 10:20 AM, Travis Parks <jehugaleahsa at gmail.com> wrote:
> Maybe I should give up on it, like you said. I am still familiarizing
> myself with the paradigm. I want to make sure I am developing code
> that is consistent with the industry standards.
>

In Python, the industry standard is "easier to ask forgiveness than
permission" - that is, let the exceptions happen. It's not worth the
hassle of error-checking when the result of not checking an error is
exactly the same thing.

ChrisA



More information about the Python-list mailing list