Skip to content
Permalink
Branch: master
Commits on Mar 20, 2019
  1. bpo-36285: Fix integer overflow in the array module. (GH-12317)

    sth authored and serhiy-storchaka committed Mar 20, 2019
  2. bpo-36312: Fix decoders for some code pages. (GH-12369)

    serhiy-storchaka committed Mar 20, 2019
  3. bpo-8677: use PY_DWORD_MAX instead of INT_MAX (GH-12469)

    methane committed Mar 20, 2019
  4. bpo-8677: use PY_SSIZE_T_CLEAN in PC/winreg.c (GH-12466)

    methane committed Mar 20, 2019
  5. bpo-8677: use PY_SSIZE_T_CLEAN in socketmodule.c (GH-12467)

    methane committed Mar 20, 2019
  6. bpo-8677: use PY_SSIZE_T_CLEAN in Modules/_gdbmodule.c (GH-12464)

    methane committed Mar 20, 2019
  7. bpo-36301: Add _PyPreCmdline internal API (GH-12458)

    vstinner committed Mar 20, 2019
    _PyCoreConfig_ReadFromArgv() now reuses the code parsing command line
    options from preconfig.c.
  8. bpo-36356: Fix _PyCoreConfig_Read() (GH-12454)

    vstinner committed Mar 20, 2019
    Don't override parameters which are already set by the user.
  9. bpo-36301: Add _PyRuntime.pre_initialized (GH-12457)

    vstinner committed Mar 20, 2019
    * Add _PyRuntime.pre_initialized: set to 1 when Python
      is pre-initialized
    * Add _Py_PreInitialize() and _Py_PreInitializeFromPreConfig().
    * _PyCoreConfig_Read() now calls  _Py_PreInitialize().
    * Move _PyPreConfig_GetGlobalConfig() and
      _PyCoreConfig_GetGlobalConfig() calls from main.c to preconfig.c
      and coreconfig.c.
Commits on Mar 19, 2019
  1. bpo-36365: Rewrite structseq_repr() using _PyUnicodeWriter (GH-12440)

    vstinner committed Mar 19, 2019
    No longer limit repr(structseq) to 512 bytes. Use _PyUnicodeWriter
    for better performance and to write directly Unicode rather than
    encoding repr() value to UTF-8 and then decoding from UTF-8.
  2. bpo-35388: Fix _PyRuntime_Finalize() (GH-12443)

    vstinner committed Mar 19, 2019
    Calling _PyRuntime_Initialize() after _PyRuntime_Finalize() now re-initializes
    _PyRuntime structure. Previously, _PyRuntime_Initialize() did
    nothing in that case.
  3. NormalDist.inv_cdf(): In-line constants because the variable names we…

    rhettinger authored and miss-islington committed Mar 19, 2019
    …re not informative (GH-12446)
  4. bpo-36236: Fix _PyPathConfig_ComputeSysPath0() for empty argv (GH-12441)

    vstinner committed Mar 19, 2019
    * _PyPathConfig_ComputeSysPath0() now returns 0 if argv is empty.
    * Cleanup also _PyPathConfig_ComputeSysPath0() code: move variables
      definitions closer to where they are used.
  5. bpo-36367: Free buffer if realloc fails in tokenize.c (GH-12442)

    pablogsal committed Mar 19, 2019
  6. bpo-36236: Handle removed cwd at Python init (GH-12424)

    vstinner committed Mar 19, 2019
    At Python initialization, the current directory is no longer
    prepended to sys.path if it has been removed.
    
    Rename _PyPathConfig_ComputeArgv0() to
    _PyPathConfig_ComputeSysPath0() to avoid confusion between argv[0]
    and sys.path[0].
  7. bpo-36356: pymain_free() calls _PyRuntime_Finalize() (GH-12435)

    vstinner committed Mar 19, 2019
    Ensure that _PyRuntime_Finalize() is always call. This change fix a
    few memory leaks when running "python3 -V".
  8. bpo-36356: Release Unicode interned strings on Valgrind (#12431)

    vstinner committed Mar 19, 2019
    When Python is compiled with Valgrind support, release Unicode
    interned strings at exit in _PyUnicode_Fini().
    
    * Rename _Py_ReleaseInternedUnicodeStrings() to
      unicode_release_interned() and make it private.
    * unicode_release_interned() is now called from _PyUnicode_Fini():
      it must be called with a running Python thread state for TRASHCAN,
      it cannot be called from pymain_free().
    * Don't display statistics on interned strings at exit anymore
  9. bpo-36333, bpo-36356: Fix _PyEval_FiniThreads() (GH-12432)

    vstinner committed Mar 19, 2019
    _PyEval_FiniThreads() now free the pending lock.
  10. bpo-8677: use PY_SSIZE_T_CLEAN in sqlite (GH-12434)

    methane committed Mar 19, 2019
    Modules/_sqlite/cursor.c uses "y#" format.
    It didn't declare PY_SSIZE_T_CLEAN, but the argument is Py_ssize_t already.
  11. bpo-36333: Fix leak _PyRuntimeState_Fini (GH-12400)

    matrixise authored and vstinner committed Mar 19, 2019
  12. bpo-36356: Fix memory leak in _PyPreConfig_Read() (GH-12425)

    btharper authored and vstinner committed Mar 19, 2019
    _PyPreConfig_Read() now free 'old_old' at exit.
  13. Add docstrings to the arithmetic methods in NormalDist() (GH-12426)

    rhettinger authored and miss-islington committed Mar 19, 2019
  14. bpo-36324: Add inv_cdf() to statistics.NormalDist() (GH-12377)

    rhettinger committed Mar 19, 2019
  15. bpo-36352: Avoid hardcoded MAXPATHLEN size in getpath.c (GH-12423)

    vstinner committed Mar 19, 2019
    * Use Py_ARRAY_LENGTH() rather than hardcoded MAXPATHLEN in getpath.c.
    * Pass string length to functions modifying strings.
  16. bpo-36301: Error if decoding pybuilddir.txt fails (GH-12422)

    vstinner committed Mar 19, 2019
    Python initialization now fails if decoding pybuilddir.txt
    configuration file fails at startup.
    
    _PyPathConfig_Calculate() now reports memory allocation failure and
    decoding error on decoding pybuilddir.txt content from
    UTF-8/surrogateescape.
Commits on Mar 18, 2019
  1. bpo-36352: Add error handling to getpath.c (GH-12421)

    vstinner committed Mar 18, 2019
    Replace Py_FatalError() with _PyInitError to let the caller handle
    the fatal error.
  2. bpo-36301: Fix Py_Main() memory leaks (GH-12420)

    vstinner and matrixise committed Mar 18, 2019
    bpo-36301, bpo-36333:
    
    * Fix memory allocator used by _PyPathConfig_ClearGlobal():
      force the default allocator.
    * _PyPreConfig_ReadFromArgv(): free init_ctype_locale memory.
    * pymain_main(): call pymain_free() on init error
    
    Co-Authored-By: Stéphane Wirtel <stephane@wirtel.be>
  3. bpo-36292: Mark unreachable code as such in long bitwise ops (GH-12333)

    stratakis authored and vstinner committed Mar 18, 2019
  4. bpo-36320: Switch typing.NamedTuple from OrderedDict to regular dict (G…

    rhettinger authored and miss-islington committed Mar 18, 2019
    …H-12396)
    
    Also,  deprecate the *_field_types* attributes which duplicated the information in *\__annotations__*.
    
    
    https://bugs.python.org/issue36320
  5. bpo-36352: Clarify fileutils.h documentation (GH-12406)

    vstinner committed Mar 18, 2019
    The last parameter of _Py_wreadlink(), _Py_wrealpath() and
    _Py_wgetcwd() is a length, not a size: number of characters including
    the trailing NUL character.
    
    Enhance also documentation of error conditions.
  6. bpo-36235: Enhance distutils test_customize_compiler() (GH-12403)

    vstinner committed Mar 18, 2019
    The test test_customize_compiler() now mocks all sysconfig variables
    and all environment variables used by customize_compiler().
Older
You can’t perform that action at this time.