4 ms·
itemgetter and attrgetter are compiled C functions called by cpython https://github.com/python/cpython/blob/master/Modules/_operator.c https://github.com/pytho
by nszceta 8y ago
itemgetter and attrgetter are compiled C functions called by cpython https://github.com/python/cpython/blob/master/Modules/_operator.c https://github.com/python/cpython/blob/master/Modules/_opera...
- masklinn 8y agoThey mean faster to write, not that it's necessarily faster to execute (though the difference is likely immaterial).