What's the best way to minimize the need of run time checks?
Chris Angelico
rosuav at gmail.com
Tue Aug 9 14:46:24 EDT 2016
On Wed, Aug 10, 2016 at 4:29 AM, Juan Pablo Romero Méndez
<jpablo.romero at gmail.com> wrote:
> What is the best way to use the dynamic features of Python to avoid having
> to write a poor's man type system?
>
Step 1: Don't even care about it. Take whatever comes, and assume that
it's what you expect.
Step 2: When step 1 starts showing that you're getting the same
problems lots of times, slap in a try/except to deal with just that.
Most of the time, step 1 is all you need.
ChrisA
More information about the Python-list
mailing list