1. 12 Haz, 2018 2 kayıt (commit)
  2. 11 Haz, 2018 14 kayıt (commit)
  3. 10 Haz, 2018 12 kayıt (commit)
  4. 09 Haz, 2018 7 kayıt (commit)
    • Ammar Askar's avatar
    • MarcoFalke's avatar
      doc: Fix typo in asyncio-eventloop.rst (GH-7345) · 7e0d882a
      MarcoFalke yazdı
      This is a fixup to 19a44f63
      7e0d882a
    • Ned Deily's avatar
    • Christian Tismer's avatar
      bpo-33738: Fix macros which contradict PEP 384 (GH-7477) · ea62ce7f
      Christian Tismer yazdı
      During development of the limited API support for PySide,
      we saw an error in a macro that accessed a type field.
      
      This patch fixes the 7 errors in the Python headers.
      Macros which were not written as capitals were implemented
      as function.
      
      To do the necessary analysis again, a script was included that
      parses all headers and looks for "->tp_" in serctions which can
      be reached with active limited API.
      
      It is easily possible to call this script as a test.
      
      Error listing:
      
      ../../Include/objimpl.h:243
      #define PyObject_IS_GC(o) (PyType_IS_GC(Py_TYPE(o)) && \
          (Py_TYPE(o)->tp_is_gc == NULL || Py_TYPE(o)->tp_is_gc(o)))
      Action: commented only
      
      ../../Include/objimpl.h:362
      #define PyType_SUPPORTS_WEAKREFS(t) ((t)->tp_weaklistoffset > 0)
      Action: commented only
      
      ../../Include/objimpl.h:364
      #define PyObject_GET_WEAKREFS_LISTPTR(o) \
          ((PyObject **) (((char *) (o)) + Py_TYPE(o)->tp_weaklistoffset))
      Action: commented only
      
      ../../Include/pyerrors.h:143
      #define PyExceptionClass_Name(x) \
           ((char *)(((PyTypeObject*)(x))->tp_name))
      Action: implemented function
      
      ../../Include/abstract.h:593
      #define PyIter_Check(obj) \
          ((obj)->ob_type->tp_iternext != NULL && \
           (obj)->ob_type->tp_iternext != &_PyObject_NextNotImplemented)
      Action: implemented function
      
      ../../Include/abstract.h:713
      #define PyIndex_Check(obj)                              \
          ((obj)->ob_type->tp_as_number != NULL &&            \
           (obj)->ob_type->tp_as_number->nb_index != NULL)
      Action: implemented function
      
      ../../Include/abstract.h:924
      #define PySequence_ITEM(o, i)\
          ( Py_TYPE(o)->tp_as_sequence->sq_item(o, i) )
      Action: commented only
      ea62ce7f
    • Zackery Spytz's avatar
      bpo-33375: Fix GCC warning in Python/_warnings.c (GH-7556) · 3f45f5da
      Zackery Spytz yazdı
      _Py_IDENTIFIER(argv) is now unused.
      3f45f5da
    • Nick Coghlan's avatar
      bpo-33409: Clarify PEP 538/540 relationship (GH-7534) · 1bcb8a63
      Nick Coghlan yazdı
      While locale coercion and UTF-8 mode turned out to
      be complementary ideas rather than competing ones,
      it isn't immediately obvious why it's useful to
      have both, or how they interact at runtime.
      
      This updates both the Python 3.7 What's New doc
      and the PYTHONCOERCECLOCALE and PYTHONUTF8
      documentation in an attempt to clarify that
      relationship:
      
      - in the respective What's New sections, add a closing paragraph
        explaining which problem each one solves, and pointing to the
        other PEP's section for the specific aspects it relies on the other
        PEP to solve
      - use "locale-aware mode" as a more descriptive term for the
        default non-UTF-8 mode
      - improve wording conistenccy between the PYTHONCOERCECLOCALE
        and PYTHONUTF8 docs when they cover the same thing (mostly
        related to legacy locale detection and setting the standard
        stream error handler)
      - improve the description of the locale coercion trigger conditions
        (including pointing out that setting LC_ALL turns off locale coercion)
      - port the full description of the UTF-8 mode behaviour changes
        from PEP 540 into the PYTHONUTF8 documentation
      - be explicit that PYTHONIOENCODING still overrides the settings
        for the standard streams
      - mention concrete examples of things that do and don't get their
        text encoding assumptions adjusted by the two text encoding
        assumption override techniques
      1bcb8a63
    • Andrés Delfino's avatar
  5. 08 Haz, 2018 5 kayıt (commit)