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

python/cpython

vstinner

Commits on Dec 8, 2020

  1. bpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642)

    Fix encoding name when running a ".pyc" file on Windows:
    PyRun_SimpleFileExFlags() now uses the correct encoding to decode the
    filename.
    
    * Add pyrun_file() subfunction.
    * Add pyrun_simple_file() subfunction.
    * PyRun_SimpleFileExFlags() now calls _Py_fopen_obj() rather than
      _Py_fopen().

Commits on Dec 5, 2020

  1. bpo-42536: GC track recycled tuples (GH-23623)

    Several built-in and standard library types now ensure that their internal result tuples are always tracked by the garbage collector:
    
    - collections.OrderedDict.items
    - dict.items
    - enumerate
    - functools.reduce
    - itertools.combinations
    - itertools.combinations_with_replacement
    - itertools.permutations
    - itertools.product
    - itertools.zip_longest
    - zip
    
    Previously, they could have become untracked by a prior garbage collection.