News for hackers. Stuff that matters.
Re:Static types in Python by dllthomas on Friday October 14, 2016 @06:28AM (#12707162)
Part of the issue is the name, which is generic enough that with the generic implementation, it probably also wants a maximally generic type.

A more constrained type throws away "the advantages of Python's duck-typing", but it also throws away disadvantages, and that can be precisely what you want.

Re:Static types in Python by clusmore on Friday October 14, 2016 @06:48AM (#12707224)
Yes, this is a good point too which I certainly agree with. Sometimes by using the most general type, you actually permit more than you intended and you might restrict yourself from making refactorings to the function because it would restrict the types.