[proxy] web.archive.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

python/cpython

rhettinger

Commits on Nov 29, 2020

  1. bpo-39096: Improve description of 'e', 'f' and 'g' presentation types (

    …#23537)
    
    * Improve description of 'e', 'f' and 'g' presentation types
    
    * Drop the 'E' from Scientific 'E' notation; remove >= 0 qualifications
    
    * Fix false statement that the alternate form is valid for Decimal
    
    * Nitpick: remove the Harvard/Oxford comma
    
    * Add note that the decimal point is also removed if no digits follow it, except in alternate form

Commits on Nov 25, 2020

  1. bpo-42202: Store func annotations as a tuple (GH-23316)

    Reduce memory footprint and improve performance of loading modules having many func annotations.
    
      >>> sys.getsizeof({"a":"int","b":"int","return":"int"})
      232
      >>> sys.getsizeof(("a","int","b","int","return","int"))
      88
    
    The tuple is converted into dict on the fly when `func.__annotations__` is accessed first.
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    Co-authored-by: Inada Naoki <songofacandy@gmail.com>

    3 people committed

    Nov 25, 2020