Re:Why Is Python Growing So Quickly?
by andybak on Saturday September 16, 2017 @06:46AM
(#15264011)
You might consider this too much of an edge case but what if I want to pass something that quacks like an EventLoop to Process init ?
[ Parent
| on HN ]
Re:Why Is Python Growing So Quickly?
by crdoconnor on Saturday September 16, 2017 @10:21AM
(#15264756)
Unless it's a subclass (which would pass), I don't imagine that would be at all likely.
Never been much of a fan of duck typing. It only really makes sense when you have objects that approximate built in types.
Take a random object with a .run() method, for example, and you don't have a fucking clue what it might be doing so there's no point interpreting that as a quack.