What's the best way to minimize the need of run time checks?

Juan Pablo Romero Méndez jpablo.romero at gmail.com
Tue Aug 9 15:29:37 EDT 2016


2016-08-09 12:06 GMT-07:00 Paul Rubin <no.email at nospam.invalid>:

> Juan Pablo Romero Méndez <jpablo.romero at gmail.com> writes:
> > In online forums sometimes people complain that they end up having to
> > test constantly for None
>
> That's something of a style issue.  You can code in a way that avoids a
> lot of those tests (not all of them).
>


This is exactly what I'm looking for :).  Do you have any resource (blog /
book, etc) that discusses this style?


>
> > Do you guys have any resources you like that addresses the following
> > issue: What is the best way to use the dynamic features of Python to
> > avoid having to write a poor's man type system?
>
> In practice dynamically typed code often is monomorphic anyway.
> Dynamism shows up in things like deserializers.
> --
> https://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list