News for hackers. Stuff that matters.
Re:Why Is Python Growing So Quickly? by crdoconnor on Friday September 15, 2017 @09:49AM (#15257105)
>How do other Python projects avoid this?

https://github.com/jonathanslenders/pymux/blob/master/pymux/...

Here's one way. Those asserts will typically pick up on errors during spikes, development and tests and turn a head scratching problem into a straightforward issue.

A couple of times on a disastrously tech debt ridden project I used it to pick up obscure configuration errors in prod, too (shouldn't see it in prod on a relatively well written project tho).

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 ?
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.