What's the best way to minimize the need of run time checks?
Paul Rubin
no.email at nospam.invalid
Tue Aug 9 15:06:28 EDT 2016
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).
> 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.
More information about the Python-list
mailing list