1. 10 May, 2019 1 kayıt (commit)
  2. 25 Nis, 2019 1 kayıt (commit)
  3. 18 Nis, 2019 2 kayıt (commit)
  4. 17 Nis, 2019 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-36635: Change pyport.h for Py_BUILD_CORE_MODULE define (GH-12853) · 5c75f37d
      Victor Stinner yazdı
      Change PyAPI_FUNC(type), PyAPI_DATA(type) and PyMODINIT_FUNC macros
      of pyport.h when Py_BUILD_CORE_MODULE is defined.
      
      The Py_BUILD_CORE_MODULE define must be now be used to build a C
      extension as a dynamic library accessing Python internals: export the
      PyInit_xxx() function in DLL exports on Windows.
      
      Changes:
      
      * Py_BUILD_CORE_BUILTIN and Py_BUILD_CORE_MODULE now imply
        Py_BUILD_CORE directy in pyport.h.
      * ceval.c compilation now fails with an error if Py_BUILD_CORE is not
        defined, just to ensure that Python is build with the correct
        defines.
      * setup.py now compiles _pickle.c with Py_BUILD_CORE_MODULE define.
      * setup.py compiles _json.c with Py_BUILD_CORE_MODULE define, rather
        than Py_BUILD_CORE_BUILTIN define
      * PCbuild/pythoncore.vcxproj: Add Py_BUILD_CORE_BUILTIN define.
      5c75f37d
  5. 15 Nis, 2019 1 kayıt (commit)
  6. 13 Nis, 2019 1 kayıt (commit)
  7. 29 Mar, 2019 2 kayıt (commit)
  8. 27 Mar, 2019 1 kayıt (commit)
  9. 21 Mar, 2019 2 kayıt (commit)
  10. 18 Mar, 2019 1 kayıt (commit)
  11. 15 Mar, 2019 1 kayıt (commit)
  12. 07 Mar, 2019 1 kayıt (commit)
  13. 04 Mar, 2019 1 kayıt (commit)
    • Victor Stinner's avatar
      Revert: bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall().… · 4d61e6e3
      Victor Stinner yazdı
      Revert: bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (GH-11617) (GH-12159)
      
      * Revert "bpo-36097: Use only public C-API in the_xxsubinterpreters module (adding as necessary). (#12003)"
      
      This reverts commit bcfa450f.
      
      * Revert "bpo-33608: Simplify ceval's DISPATCH by hoisting eval_breaker ahead of time. (gh-12062)"
      
      This reverts commit bda918bf.
      
      * Revert "bpo-33608: Use _Py_AddPendingCall() in _PyCrossInterpreterData_Release(). (gh-12024)"
      
      This reverts commit b05b711a.
      
      * Revert "bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (GH-11617)"
      
      This reverts commit ef4ac967.
      4d61e6e3
  14. 01 Mar, 2019 4 kayıt (commit)
    • Eric Snow's avatar
    • Pablo Galindo's avatar
      bpo-35808: Retire pgen and use pgen2 to generate the parser (GH-11814) · 1f24a719
      Pablo Galindo yazdı
      Pgen is the oldest piece of technology in the CPython repository, building it requires various #if[n]def PGEN hacks in other parts of the code and it also depends more and more on CPython internals. This commit removes the old pgen C code and replaces it for a new version implemented in pure Python. This is a modified and adapted version of lib2to3/pgen2 that can generate grammar files compatibles with the current parser.
      
      This commit also eliminates all the #ifdef and code branches related to pgen, simplifying the code and making it more maintainable. The regen-grammar step now uses $(PYTHON_FOR_REGEN) that can be any version of the interpreter, so the new pgen code maintains compatibility with older versions of the interpreter (this also allows regenerating the grammar with the current CI solution that uses Python3.5). The new pgen Python module also makes use of the Grammar/Tokens file that holds the token specification, so is always kept in sync and avoids having to maintain duplicate token definitions.
      1f24a719
    • Victor Stinner's avatar
      bpo-36142: Add preconfig.c (GH-12128) · 91b9ecf8
      Victor Stinner yazdı
      * Add _PyArgv_Decode() function
      * Move _Py_ClearFileSystemEncoding() and _Py_SetFileSystemEncoding()
        to preconfig.c.
      91b9ecf8
    • Victor Stinner's avatar
      bpo-36142: Exclude coreconfig.h from Py_LIMITED_API (GH-12111) · f684d83d
      Victor Stinner yazdı
      The whole coreconfig.h header is now excluded from Py_LIMITED_API.
      Move functions definitions into a new internal pycore_coreconfig.h
      header.
      
      * Move Include/coreconfig.h to Include/cpython/coreconfig.h
      * coreconfig.h header is now excluded from Py_LIMITED_API
      * Move functions to pycore_coreconfig.h
      f684d83d
  15. 14 Şub, 2019 1 kayıt (commit)
  16. 02 Şub, 2019 1 kayıt (commit)
  17. 10 Ock, 2019 1 kayıt (commit)
  18. 08 Ock, 2019 1 kayıt (commit)
  19. 22 Ara, 2018 1 kayıt (commit)
    • Serhiy Storchaka's avatar
      bpo-30455: Generate all token related code and docs from Grammar/Tokens. (GH-10370) · 8ac65811
      Serhiy Storchaka yazdı
      "Include/token.h", "Lib/token.py" (containing now some data moved from
      "Lib/tokenize.py") and new files "Parser/token.c" (containing the code
      moved from "Parser/tokenizer.c") and "Doc/library/token-list.inc" (included
      in "Doc/library/token.rst") are now generated from "Grammar/Tokens" by
      "Tools/scripts/generate_token.py". The script overwrites files only if
      needed and can be used on the read-only sources tree.
      
      "Lib/symbol.py" is now generated by "Tools/scripts/generate_symbol_py.py"
      instead of been executable itself.
      
      Added new make targets "regen-token" and "regen-symbol" which are now
      dependencies of "regen-all".
      
      The documentation contains now strings for operators and punctuation tokens.
      8ac65811
  20. 21 Ara, 2018 1 kayıt (commit)
  21. 14 Ara, 2018 2 kayıt (commit)
  22. 11 Ara, 2018 2 kayıt (commit)
  23. 10 Ara, 2018 2 kayıt (commit)
  24. 07 Ara, 2018 2 kayıt (commit)
  25. 28 Kas, 2018 1 kayıt (commit)
  26. 25 Kas, 2018 1 kayıt (commit)
  27. 23 Kas, 2018 2 kayıt (commit)
    • Victor Stinner's avatar
      bpo-35134: Create Include/cpython/ subdirectory (GH-10624) · e421106b
      Victor Stinner yazdı
      Include/*.h should be the "portable Python API", whereas
      Include/cpython/*.h should be the "CPython API": CPython
      implementation details.
      
      Changes:
      
      * Create Include/cpython/ subdirectory
      * "make install" now creates $prefix/include/cpython and copy
        Include/cpython/* to $prefix/include/cpython
      * Create Include/cpython/objimpl.h: move objimpl.h code
        surrounded by "#ifndef Py_LIMITED_API" to cpython/objimpl.h.
      * objimpl.h now includes cpython/objimpl.h
      * Windows installer (MSI) now also install Include/ subdirectories:
        Include/cpython/ and Include/internal/.
      e421106b
    • Victor Stinner's avatar
      bpo-35081: Add new internal headers to Makefile (GH-10670) · 984061ee
      Victor Stinner yazdı
      Add pycore_fileutils.h and pycore_object.h to Makefile.pre.in and to
      the pythoncore project of PCbuild/.
      984061ee
  28. 12 Kas, 2018 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-35081: Rename internal headers (GH-10275) · 621cebe8
      Victor Stinner yazdı
      Rename Include/internal/ headers:
      
      * pycore_hash.h -> pycore_pyhash.h
      * pycore_lifecycle.h -> pycore_pylifecycle.h
      * pycore_mem.h -> pycore_pymem.h
      * pycore_state.h -> pycore_pystate.h
      
      Add missing headers to Makefile.pre.in and PCbuild:
      
      * pycore_condvar.h.
      * pycore_hamt.h
      * pycore_pyhash.h
      621cebe8
  29. 01 Kas, 2018 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-35081: And pycore_lifecycle.h and pycore_pathconfig.h (GH-10273) · a1c249c4
      Victor Stinner yazdı
      * And pycore_lifecycle.h and pycore_pathconfig.h headers to
        Include/internal/
      * Move Py_BUILD_CORE specific code from coreconfig.h and
        pylifecycle.h to pycore_pathconfig.h and pycore_lifecycle.h
      * Move _Py_wstrlist_XXX() definitions and _PyPathConfig code
        from pycore_state.h to pycore_pathconfig.h
      * Move "Init" and "Fini" function definitions from pylifecycle.c to
        pycore_lifecycle.h.
      a1c249c4