Sitelet https://web.archive.org/web/20200624163205/https://github.com/python/cpython/commits/master
Skip to content
Permalink
Branch: master
Commits on Jun 24, 2020
  1. bpo-41038: Fix non-ASCII string corruption in Win32 resource files (G…

    nnemkin committed Jun 24, 2020
    …H-20985)
    
    In absence of explicit declaration, resource compiler uses system
    codepage. When this codepage is DBCS or UTF-8, Python's copyright
    string is corrupted, because it contains copyright sign encoded
    as \xA9.
    
    The fix is to explicitly declare codepage 1252.
  2. bpo-40521: Always create the empty tuple singleton (GH-21116)

    vstinner committed Jun 24, 2020
    Py_InitializeFromConfig() now always creates the empty tuple
    singleton as soon as possible.
    
    Optimize PyTuple_New(0): it no longer has to check if the empty tuple
    was created or not, it is always creatd.
    
    * Add tuple_create_empty_tuple_singleton() function.
    * Add tuple_get_empty() function.
    * Remove state parameter of tuple_alloc().
  3. Fix typo in dataclasses module (GH-21109)

    jugmac00 committed Jun 24, 2020
    Automerge-Triggered-By: @matrixise
  4. bpo-40707: Document that Popen.communicate sets the returncode attrib…

    gareth-rees committed Jun 24, 2020
    …ute (GH-20283)
  5. bpo-40521: Fix _PyContext_Fini() (GH-21103)

    vstinner committed Jun 24, 2020
    Only clear _token_missing in the main interpreter.
  6. bpo-40521: Make Unicode latin1 singletons per interpreter (GH-21101)

    vstinner committed Jun 24, 2020
    Each interpreter now has its own Unicode latin1 singletons.
    
    Remove "ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS"
    and "ifdef LATIN1_SINGLETONS": always enable latin1 singletons.
    
    Optimize unicode_result_ready(): only attempt to get a latin1
    singleton for PyUnicode_1BYTE_KIND.
Commits on Jun 23, 2020
  1. bpo-41070: Simplify pyshellext.dll build (GH-21037)

    nnemkin committed Jun 23, 2020
    Replace MIDL-generated file with manual GUID definition.
    Use the same .def file for release and debug builds.
    Update setup build to support latest toolset
  2. bpo-40521: Optimize PyUnicode_New(0, maxchar) (GH-21099)

    vstinner committed Jun 23, 2020
    Functions of unicodeobject.c, like PyUnicode_New(), no longer check
    if the empty Unicode singleton has been initialized or not. Consider
    that it is always initialized. The Unicode API must not be used
    before _PyUnicode_Init() or after _PyUnicode_Fini().
  3. bpo-40521: Make empty Unicode string per interpreter (GH-21096)

    vstinner committed Jun 23, 2020
    Each interpreter now has its own empty Unicode string singleton.
  4. bpo-31938: Fix default-value signatures of several functions in the s…

    asottile committed Jun 23, 2020
    …elect module (GH-21066)
  5. bpo-40521: Make MemoryError free list per interpreter (GH-21086)

    vstinner committed Jun 23, 2020
    Each interpreter now has its own MemoryError free list: it is not
    longer shared by all interpreters.
    
    Add _Py_exc_state structure and PyInterpreterState.exc_state member.
    Move also errnomap into _Py_exc_state.
  6. bpo-41039: Simplify python3.dll build (GH-20989)

    nnemkin committed Jun 23, 2020
    Use linker comment #pragma and preprocessor for re-exporting stable
    API functions and variables.
    
    Module definition file, custom build targets and entry point code
    become unnecessary and can be removed.
    
    This change also fixes missing _PyErr_BadInternalCall export on x86.
  7. bpo-41054: Simplify resource compilation on Windows (GH-21004)

    nnemkin committed Jun 23, 2020
    Remove auto-generated resource header. Pass definitions required
    by resource files (ORIGINAL_FILENAME and FIELD3) directly to resource
    compiler.
    
    Remove unused MS_DLL_ID resource string and related dead code.
  8. On path with known exact float, extract the double with the fast macr…

    rhettinger committed Jun 23, 2020
    …o. (GH-21072)
  9. bpo-41089: Filters and other issues in Visual Studio projects (GH-21070)

    nnemkin committed Jun 23, 2020
    * Add missing header files to pythoncore.
    * Add missing file filters ("Resource Files" in particular) to
      all projects.
    * Add new sub-filters for private headers in pythoncore and
      for 3rd party source files.
    * Add missing _zoneinfo configurations in pcbuild.sln.
    * Update bdist_wininst with the new zlib location.
  10. bpo-40521: Empty frozenset is no longer a singleton (GH-21085)

    rhettinger committed Jun 23, 2020
    * Revert "bpo-40521: Make the empty frozenset per interpreter (GH-21068)"
    
    This reverts commit 261cfed.
    
    * bpo-40521: Empty frozensets are no longer singletons
    
    * Complete the removal of the frozenset singleton
  11. bpo-40521: Cleanup code of free lists (GH-21082)

    vstinner committed Jun 23, 2020
    Add get_xxx_state() function to factorize duplicated code.
  12. bpo-41065: Use zip-strict in zoneinfo (GH-21031)

    cool-RR committed Jun 23, 2020
  13. Call _PyWarnings_InitState() in subinterpreters (GH-21078)

    vstinner committed Jun 23, 2020
    Py_InitializeFromConfig() now calls also _PyWarnings_InitState() in
    subinterpreters.
  14. bpo-36710: Pass tstate explicitly in abstract.c (GH-21075)

    vstinner committed Jun 23, 2020
    In functions calling more than one PyErr function, get tstate and
    then pass it explicitly.
  15. bpo-40521: Make bytes singletons per interpreter (GH-21074)

    vstinner committed Jun 23, 2020
    Each interpreter now has its own empty bytes string and single byte
    character singletons.
    
    Replace STRINGLIB_EMPTY macro with STRINGLIB_GET_EMPTY() macro.
  16. bpo-40521: Remove freelist from collections.deque() (GH-21073)

    rhettinger committed Jun 23, 2020
  17. bpo-41085: Fix array.array.index() on 64-bit Windows (GH-21071)

    WildCard65 committed Jun 23, 2020
    Fix integer overflow in the :meth:`array.array.index` method on 64-bit Windows
    for index larger than ``2**31``.
  18. bpo-40521: Make the empty frozenset per interpreter (GH-21068)

    vstinner committed Jun 23, 2020
    Each interpreter now has its own empty frozenset singleton.
  19. bpo-40521: Make dict free lists per-interpreter (GH-20645)

    vstinner committed Jun 23, 2020
    Each interpreter now has its own dict free list:
    
    * Move dict free lists into PyInterpreterState.
    * Move PyDict_MAXFREELIST define to pycore_interp.h
    * Add _Py_dict_state structure.
    * Add tstate parameter to _PyDict_ClearFreeList() and _PyDict_Fini().
    * In debug mode, ensure that the dict free lists are not used after
      _PyDict_Fini() is called.
    * Remove "#ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS".
  20. Small clean-ups for the random module (GH-21038)

    rhettinger committed Jun 23, 2020
  21. Improve asyncio.loop.call_soon() documentation (GH-20883)

    rogerthat94 and aeros committed Jun 23, 2020
    * Add a glossary entry for the term "callback"
    * Link to it in loop.call_soon() and in the "Concurrency and Multithreading" section
    
    Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Commits on Jun 22, 2020
  1. bpo-41078: Fix bltinmodule.c with Py_TRACE_REFS (GH-21058)

    vstinner committed Jun 22, 2020
    Add pycore_object.h include to fix bltinmodule.c when Py_TRACE_REFS
    macro is defined.
  2. bpo-41078: Add pycore_list.h internal header file (GH-21057)

    vstinner committed Jun 22, 2020
    * Move _PyList_ITEMS() to pycore_list.h.
    * The C extension "_heapq" is now built with Py_BUILD_CORE_MODULE
      macro defined to access the internal C API.
  3. bpo-41005: Fixed perrmission error (GH-20936)

    3 people committed Jun 22, 2020
    * fixed issue 41005: webbrowser fails when xdg-settings cannot be executed
    
    Co-authored-by: KrishnaSai2020 <krishnasai.chivukula@gmal.com>
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
  4. bpo-26407: Do not mask errors in csv. (GH-20536)

    serhiy-storchaka committed Jun 22, 2020
    Unexpected errors in calling the __iter__ method are no longer
    masked by TypeError in csv.reader(), csv.writer.writerow() and
    csv.writer.writerows().
Older
You can’t perform that action at this time.