• Raymond Hettinger's avatar
    bpo-28638: Optimize namedtuple() creation time by minimizing use of exec() (#3454) · 8b57d736
    Raymond Hettinger yazdı
    * 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
    8b57d736
__init__.py 45.2 KB