summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2017-09-10 17:23:36 (GMT)
committerGitHub <noreply@github.com>2017-09-10 17:23:36 (GMT)
commit8b57d7363916869357848e666d03fa7614c47897 (patch)
treece2c871ab523dbbf05bd80ee9dcfd1f2534d5798 /configure
parent3cedf46cdbeefc019f4a672c1104f3d5e94712bd (diff)
downloadcpython-8b57d7363916869357848e666d03fa7614c47897.zip
cpython-8b57d7363916869357848e666d03fa7614c47897.tar.gz
cpython-8b57d7363916869357848e666d03fa7614c47897.tar.bz2
bpo-28638: Optimize namedtuple() creation time by minimizing use of exec() (#3454)
* Working draft without _source * Re-use itemgetter() instances * Speed-up calls to __new__() with a pre-bound tuple.__new__() * Add note regarding string interning * Remove unnecessary create function wrappers * Minor sync-ups with PR-2736. Mostly formatting and f-strings * Bring-in qualname/__module fix-ups from PR-2736 * Formally remove the verbose flag and _source attribute * Restore a test of potentially problematic field names * Restore kwonly_args test but without the verbose option * Adopt Inada's idea to reuse the docstrings for the itemgetters * Neaten-up a bit * Add news blurb * Serhiy pointed-out the need for interning * Jelle noticed as missing f on an f-string * Add whatsnew entry for feature removal * Accede to request for dict literals instead keyword arguments * Leave the method.__module__ attribute pointing the actual location of the code * Improve variable names and add a micro-optimization for an non-public helper function * Simplify by in-lining reuse_itemgetter() * Arrange steps in more logical order * Save docstring in local cache instead of interning
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions