Message298571
Should we consider a C-based implementation like https://github.com/llllllllll/cnamedtuple? It could improve speed even more, but would be harder to maintain and test and harder to keep compatible. My sense is that it's not worth it unless benchmarks show a really dramatic difference.
As for Raymond's list of goals, my PR now preserves _source and verbose=True and the test suite passes. I think the only docs change needed is in the description for _source (https://docs.python.org/3/library/collections.html#collections.somenamedtuple._source), which is no longer "used to create the named tuple class". I'll add that to my PR. I haven't done anything towards the last two goals yet.
Should the change be applied to 3.6? It is fully backwards compatible, but perhaps the change is too disruptive to be included in the 3.6 series at this point. |
|
Date |
User |
Action |
Args |
2017-07-18 03:35:55 | JelleZijlstra | set | recipients:
+ JelleZijlstra, gvanrossum, rhettinger, ncoghlan, pitrou, vstinner, eric.smith, giampaolo.rodola, methane, serhiy.storchaka, xiang.zhang |
2017-07-18 03:35:55 | JelleZijlstra | set | messageid: <1500348955.18.0.294124010504.issue28638@psf.upfronthosting.co.za> |
2017-07-18 03:35:55 | JelleZijlstra | link | issue28638 messages |
2017-07-18 03:35:54 | JelleZijlstra | create | |
|