Skip to content
Permalink
Branch: master
Commits on Feb 8, 2020
  1. Doc: sys.__unraisablehook__ and bytearray.hex separators are new in 3…

    gousaiyang committed Feb 8, 2020
    ….8 (GH-17884)
    
    Minor fix in documentation:
    
    - `sys.__unraisablehook__` is new in version 3.8
    - Optional `sep` and `bytes_per_sep` parameters for `bytearray.hex` is also supported in Python 3.8 (just like `bytes.hex`)
Commits on Feb 7, 2020
  1. closes bpo-39575: Change -lgcov to --coverage. (GH-18382)

    MaskRay committed Feb 7, 2020
    This allows clang to get rid of the dependency on libgcov.
    When linking, GCC passes -lgcov while clang passes the path to libclang_rt.profile-$arch.a
  2. bpo-39350: Fix fractions for int subclasses (GH-18375)

    vstinner committed Feb 7, 2020
    Fix regression in fractions.Fraction if the numerator and/or the
    denominator is an int subclass. The math.gcd() function is now
    used to normalize the numerator and denominator. math.gcd() always
    return a int type. Previously, the GCD type depended on numerator
    and denominator.
  3. bpo-39573: Use Py_SET_SIZE() function (GH-18402)

    vstinner committed Feb 7, 2020
    Replace direct acccess to PyVarObject.ob_size with usage of
    the Py_SET_SIZE() function.
  4. bpo-39502: Fix 64-bit Python PyTime_localtime() on AIX (GH-18285)

    aixtools committed Feb 7, 2020
    Fix time.localtime() on 64-bit AIX to support years before 1902 and after 2038.
  5. bpo-39573: Add Py_SET_SIZE() function (GH-18400)

    vstinner committed Feb 7, 2020
    Add Py_SET_SIZE() function to set the size of an object.
  6. bpo-38644: Add Py_EnterRecursiveCall() to python3.def (GH-18399)

    vstinner committed Feb 7, 2020
    Add Py_EnterRecursiveCall and Py_LeaveRecursiveCall functions to
    python3.def.
  7. bpo-39573: Use Py_TYPE() macro in object.c (GH-18398)

    vstinner committed Feb 7, 2020
    Replace direct acccess to PyVarObject.ob_size with usage of the
    Py_SIZE() macro.
  8. bpo-35134: Create Include/cpython/listobject.h (GH-18395)

    vstinner committed Feb 7, 2020
    Move listobject.h code surrounded by "#ifndef Py_LIMITED_API"
    to a new Include/cpython/listobject.h header file.
    
    Add cpython/ header files to Makefile.pre.in and pythoncore project
    of PCbuild.
    
    Add _PyList_CAST() macro.
  9. bpo-39573: Add Py_SET_TYPE() function (GH-18394)

    vstinner committed Feb 7, 2020
    Add Py_SET_TYPE() function to set the type of an object.
  10. bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393)

    vstinner committed Feb 7, 2020
    Replace direct access to PyObject.ob_type with Py_TYPE().
  11. bpo-39573: Use Py_TYPE() macro in Objects directory (GH-18392)

    vstinner committed Feb 7, 2020
    Replace direct access to PyObject.ob_type with Py_TYPE().
  12. bpo-39573: Use Py_TYPE() macro in Python and Include directories (GH-…

    vstinner committed Feb 7, 2020
    …18391)
    
    Replace direct access to PyObject.ob_type with Py_TYPE().
  13. bpo-39491: Mention Annotated in get_origin() docstring (GH-18379)

    jstasiak committed Feb 7, 2020
    I forgot to do it in #18260.
  14. bpo-39573: Use Py_TYPE() in abstract.c (GH-18390)

    vstinner committed Feb 7, 2020
    Replace direct access to PyObject.ob_type with Py_TYPE().
  15. bpo-39571: Fix clang warning on PyTypeObject typedef (GH-18385)

    vstinner committed Feb 7, 2020
    Only define PyTypeObject type once.
  16. bpo-39573: Add Py_SET_REFCNT() function (GH-18389)

    vstinner committed Feb 7, 2020
    Add a Py_SET_REFCNT() function to set the reference counter of an
    object.
Commits on Feb 6, 2020
  1. bpo-39573: Use Py_REFCNT() macro (GH-18388)

    vstinner committed Feb 6, 2020
    Replace direct acccess to PyObject.ob_refcnt with usage of the
    Py_REFCNT() macro.
  2. bpo-39534: Doc: Clarify return in finally (GH-18324)

    JulienPalard committed Feb 6, 2020
  3. What's New in Python 3.9: sort improved modules (GH-18383)

    vstinner committed Feb 6, 2020
  4. bpo-39542: Document limited C API changes (GH-18378)

    vstinner committed Feb 6, 2020
  5. bpo-39274: Ensure Fraction.__bool__() returns a bool (GH-18017)

    seberg committed Feb 6, 2020
    Some numerator types used (specifically NumPy) decides to not
    return a Python boolean for the "a != b" operation. Using the equivalent
    call to bool() guarantees a bool return also for such types.
  6. bpo-39245: Make Vectorcall C API public (GH-17893)

    encukou committed Feb 6, 2020
    * Add backcompat defines and move non-limited API declaration to cpython/
    
    This partially reverts commit 2ff58a2
    which added PyObject_CallNoArgs to the 3.9+ stable ABI. This should not
    be done; there are enough other call APIs in the stable ABI to choose from.
    
    * Adjust documentation
    
    Mark all newly public functions as added in 3.9.
    Add a note about the 3.8 provisional names.
    Add notes on public API.
    
    * Put PyObject_CallNoArgs back in the limited API
    
    * Rename PyObject_FastCallDict to PyObject_VectorcallDict
  7. bpo-39555: Fix distutils test to handle _d suffix on Windows debug bu…

    zooba committed Feb 6, 2020
    …ild (GH-18357)
Commits on Feb 5, 2020
  1. bpo-39127: Make _Py_HashPointer's argument be const (GH-17690)

    petdance committed Feb 5, 2020
  2. bpo-39542: Declare _Py_AddToAllObjects() in pycore_object.h (GH-18368)

    vstinner committed Feb 5, 2020
    _Py_AddToAllObjects() is used in bltinmodule.c and typeobject.c when
    Py_TRACE_REFS is defined.
    
    Fix Py_TRACE_REFS build.
  3. Add PyInterpreterState.fs_codec.utf8 (GH-18367)

    vstinner committed Feb 5, 2020
    Add a fast-path for UTF-8 encoding in PyUnicode_EncodeFSDefault()
    and PyUnicode_DecodeFSDefaultAndSize().
    
    Add _PyUnicode_FiniEncodings() helper function for _PyUnicode_Fini().
  4. bpo-39542: Define PyTypeObject earlier in object.h (GH-18366)

    vstinner committed Feb 5, 2020
    Replace "struct _typeobject" with PyTypeObject in object.h.
  5. bpo-39542: Convert PyType_Check() to static inline function (GH-18364)

    vstinner committed Feb 5, 2020
    Convert PyType_HasFeature(), PyType_Check() and PyType_CheckExact()
    macros to static inline functions.
  6. bpo-39542: Make PyObject_INIT() opaque in limited C API (GH-18363)

    vstinner committed Feb 5, 2020
    In the limited C API, PyObject_INIT() and PyObject_INIT_VAR() are now
    defined as aliases to PyObject_Init() and PyObject_InitVar() to make
    their implementation opaque. It avoids to leak implementation details
    in the limited C API.
    
    Exclude the following functions from the limited C API, move them
    from object.h to cpython/object.h:
    
    * _Py_NewReference()
    * _Py_ForgetReference()
    * _PyTraceMalloc_NewReference()
    * _Py_GetRefTotal()
Older
You can’t perform that action at this time.