Newbie: static typing?

Joshua Landau joshua at landau.ws
Tue Aug 6 05:29:13 EDT 2013


On 6 August 2013 10:05, Rui Maciel <rui.maciel at gmail.com> wrote:
> Gary Herron wrote:
>
>> The Pythonic way is to *enjoy* the freedom and flexibility and power of
>> dynamic typing.  If you are stepping out of a static typing language
>> into Python, don't step just half way.  Embrace dynamic typing.  (Like
>> any freedom, it can bite you at times, but that's no reason to hobble
>> Python with static typing.)
>
> What's the Python way of dealing with objects being passed to a function
> that aren't of a certain type, have specific attributes of a specific type,
> nor support a specific interface?

What's the actual problem you're facing? Where do you feel that you
need to verify types?



More information about the Python-list mailing list