A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-April/134274.html below:

[Python-Dev] static typing of input arguments in signatures

[Python-Dev] static typing of input arguments in signatures [Python-Dev] static typing of input arguments in signaturesŁukasz Langa lukasz at langa.pl
Thu Apr 24 20:02:35 CEST 2014
On Apr 19, 2014, at 11:05 AM, Ethan Furman <ethan at stoneleaf.us> wrote:

> Personal experience:  I have my own copy of paramiko because it type checks for strings, and I routinely use a str-subclass.

I have had that kind of problem myself in the past. Most of the time the core issue wasn’t type checking, it was how (badly) it was implemented. `assert obj.__class__ == list` being my favorite one (especially when any iterable would work just fine).

-- 
Best regards,
Łukasz Langa

WWW: http://lukasz.langa.pl/
Twitter: @llanga
IRC: ambv on #python-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140424/da6526e2/attachment.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4