|
|
|
|
|
by scott_w
420 days ago
|
|
> My only point has been, "Pythonic" things tend to be pretty liberal in what they accept Being able to use a string as a string and an int as an int are not “pretty liberal in what they accept,” it’s just programming language theory 101! I think you’re mistaking duck typing for “liberal acceptance,” which are not the same thing. There’s always been an expectation that you should use compatible interfaces, even within the standard library. I’ve been bitten enough times by passing a generator in when a function expects a list, for example. |
|