-
Notifications
You must be signed in to change notification settings - Fork 49
Open
4 / 104 of 10 issues completedDescription
I just checked the most common py_method_call
in mypy and it looks like many could be removed by adding some primitive ops..
- 18 ('replace') PyUnicode_Replace
- 19 ('write')
- 20 ('clear') PyDict_Clear
- 20 ('copy') PyDict_Copy/..
- 23 ('setdefault') PyDict_SetDefault
- 32 ('keys') (Faster dict iteration #167)
- 33 ('strip')
- 38 ('endswith') PyUnicode_Tailmatch
- 49 ('values') (Faster dict iteration #167)
- 50 ('startswith') PyUnicode_Tailmatch
- 73 ('split') PyUnicode_Split
- 100 ('join') PyUnicode_Join
- 118 ('items') (Faster dict iteration #167)
- 535 ('format') (Faster string formatting #724)
1455 total
Some of these would not be correct for subclasses of dict. str etc. This can either be handwaved away, or not.