3 ms·
"the [speed] difficulties come from Python's extremely rich object model, not from anything about its dynamic scopes or dynamic types. The problem is that ever
by mhneu 10y ago
"the [speed] difficulties come from Python's extremely rich object model, not from anything about its dynamic scopes or dynamic types. The problem is that every operation in Python will typically have multiple points at which the user can override the behavior, and these features are used, often very extensively. Some examples are inspecting the locals of a frame after the frame has exited, mutating functions in-place, or even something as banal as overriding isinstance."
It's not typing that's the problem, it's dynamic behavior like monkeypatchable methods which require dict lookups.
- denfromufa 10y agoNowhere did I state that typing is the problem. I was explaining potential move to Python 3 with mypy.