Jukka Lehtosalo
Jukka Lehtosalo
Yeah, I'll write more about some of the other items. Here's an issue about fixed-width integers with some more detail: #837
I've started prototyping some of these and the implementation of always defined attributes, fixed-width integers and packed arrays doesn't seem very difficult (but it's still quite a lot of work)....
My thoughts about packed arrays: #840
More details about record types: #841
Hmm importing setuptools takes over 200ms on my laptop. Importing mypyc takes about 450ms, so this would possibly slow down use cases where we don't need setuptools (e.g. some tests)...
I'm pretty sure that deleting a module from `sys.modules` doesn't reliably free it. A better way to measure import cost is do something like `time python -c 'import foo.bar'`, and...
If we split the isinstance check, it seems to work okay: ```py def g(x: SymbolNode) -> None: if isinstance(x, FuncBase): print(x) elif isinstance(x, Decorator): print(x) else: print('no match') g(FuncDef()) g(Decorator())...
This also affects enum classes (python/mypy#11546) at least.
@Ashu-1309 Feel free to start working on this. We don't use GitHub "Assignees" very often unless it's a a big issue that takes a long time to work on.
I'm not sure if the other ABCs beyond `Number` are very straightforward either. It would be an interesting exercise for somebody to write a prototype stub (using the protocol PR)...