1. 19 Ock, 2017 3 kayıt (commit)
    • INADA Naoki's avatar
      Issue #29296: convert print() to METH_FASTCALL · bd584f16
      INADA Naoki yazdı
      * Replace PyArg_ParseTupleAndKeywords() with _PyArg_ParseStackAndKeywords()
        which is more efficient to parse keywords, since it decodes only keywords
        (char*) from UTF-8 once, instead of decoding at each call.
      * METH_FASTCALL avoids the creation of a temporary tuple to pass positional
        arguments.
      
      Patch written by INADA Naoki, pushed by Victor Stinner.
      bd584f16
    • Victor Stinner's avatar
      91f0d4aa
    • Victor Stinner's avatar
      dict.get() and dict.setdefault() now use AC · 7dc6a5f5
      Victor Stinner yazdı
      Issue #29311: dict.get() and dict.setdefault() methods now use Argument Clinic
      to parse arguments. Their calling convention changes from METH_VARARGS to
      METH_FASTCALL which avoids the creation of a temporary tuple.
      
      The signature of docstrings is also enhanced. For example,
          get(...)
      becomes:
          get(self, key, default=None, /)
      7dc6a5f5
  2. 18 Ock, 2017 24 kayıt (commit)
  3. 17 Ock, 2017 13 kayıt (commit)