1. 26 Ock, 2018 1 kayıt (commit)
    • Guido van Rossum's avatar
      String annotations [PEP 563] (#4390) · 95e4d589
      Guido van Rossum yazdı
      * Document `from __future__ import annotations`
      * Provide plumbing and tests for `from __future__ import annotations`
      * Implement unparsing the AST back to string form
      
      This is required for PEP 563 and as such only implements a part of the
      unparsing process that covers expressions.
      95e4d589
  2. 23 Ock, 2018 1 kayıt (commit)
  3. 20 Ock, 2018 1 kayıt (commit)
  4. 16 Ock, 2018 1 kayıt (commit)
  5. 09 Ock, 2018 1 kayıt (commit)
  6. 15 Ara, 2017 1 kayıt (commit)
  7. 14 Ara, 2017 1 kayıt (commit)
  8. 04 Ara, 2017 1 kayıt (commit)
  9. 02 Ara, 2017 1 kayıt (commit)
  10. 01 Ara, 2017 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-32030: Add Python/pathconfig.c (#4668) · 0ea395ae
      Victor Stinner yazdı
      * Factorize code from PC/getpathp.c and Modules/getpath.c to remove
        duplicated code
      * rename pathconfig_clear() to _PyPathConfig_Clear()
      * Inline _PyPathConfig_Fini() in pymain_impl() and then remove it,
        since it's a oneliner
      0ea395ae
  11. 30 Kas, 2017 1 kayıt (commit)
  12. 24 Kas, 2017 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-32096: Remove obj and mem from _PyRuntime (#4532) · 9e87e777
      Victor Stinner yazdı
      bpo-32096, bpo-30860:  Partially revert the commit
      2ebc5ce4:
      
      * Move structures back from Include/internal/mem.h to
        Objects/obmalloc.c
      * Remove _PyObject_Initialize() and _PyMem_Initialize()
      * Remove Include/internal/pymalloc.h
      * Add test_capi.test_pre_initialization_api():
         Make sure that it's possible to call Py_DecodeLocale(), and then call
         Py_SetProgramName() with the decoded string, before Py_Initialize().
      
      PyMem_RawMalloc() and Py_DecodeLocale() can be called again before
      _PyRuntimeState_Init().
      Co-Authored-By: 's avatarEric Snow <ericsnowcurrently@gmail.com>
      9e87e777
  13. 08 Kas, 2017 1 kayıt (commit)
  14. 05 Kas, 2017 1 kayıt (commit)
  15. 02 Kas, 2017 1 kayıt (commit)
    • Neil Schemenauer's avatar
      bpo-28643: Record profile-opt build progress with stamp files (#4223) · 4e38d71a
      Neil Schemenauer yazdı
      * bpo-28643: Record profile-opt build progress with stamp files
      
      The profile-opt makefile target is expensive to build. Since the
      makefile does not contain complete dependency information for this
      target, much extra work can get done if the build is interrupted and
      re-started.  Even running "make" a second time will result in a huge
      amount of redundant work.
      
      As a minimal fix (rather than removing recursive "make" and adding a
      proper dependency graph), split the profile-opt target into parts:
      
      - ensure tree is clean (profile-clean-stamp)
      - build with profile generation enabled (profile-gen-stamp)
      - run task to generate profile information (profile-run-stamp)
      - build optimized Python using above information (profile-opt)
      
      We use "stamp" files to record completion of the steps.  Running
      "make clean" will not remove the profile-run-stamp file.
      
      Other minor changes:
      
      - remove the "build_all_use_profile" target.  I don't expect callers
        of the makefile to use this target so that should be safe.
      
      - remove execution of "profile-removal" at end of "profile-opt".  I
        don't see any reason to not to keep the profile information, given
        the cost to generate it.  Removing the "profile-run-stamp" file
        will force re-generation of it.
      4e38d71a
  16. 24 Eki, 2017 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-31810: Add smelly.py to check exported symbols (#4057) · 87d332dc
      Victor Stinner yazdı
      * Add Tools/scripts/smelly.py: script checking if all symbols
        exported by libpython start with "Py" or "_Py".
      * Modify "make smelly" to run smelly.py: the command now fails with a
        non-zero exit code if libpython leaks a "smelly" symbol.
      * Travis CI now runs "make smelly"
      87d332dc
  17. 29 Eyl, 2017 2 kayıt (commit)
  18. 20 Eyl, 2017 1 kayıt (commit)
  19. 11 Eyl, 2017 1 kayıt (commit)
  20. 08 Eyl, 2017 2 kayıt (commit)
    • octaviansoldea's avatar
      bpo-31354: Let configure --with-lto work on all builds · 4c81401b
      octaviansoldea yazdı
      Allow configure --with-lto to apply to all builds, not just profile-opt builds.
      
      Whether this is actually useful or not must be determined by the person
      building CPython using their own toolchain.
      
      My own quick test on x86_64 Debian 9 (gcc 6.3, binutils 2.28) seemed
      to suggest that it wasn't, but I expect better toolchains can or will exist
      at some point.  The point is to allow it at all.
      4c81401b
    • Eric Snow's avatar
      bpo-30860: Consolidate stateful runtime globals. (#3397) · 2ebc5ce4
      Eric Snow yazdı
      * group the (stateful) runtime globals into various topical structs
      * consolidate the topical structs under a single top-level _PyRuntimeState struct
      * add a check-c-globals.py script that helps identify runtime globals
      
      Other globals are excluded (see globals.txt and check-c-globals.py).
      2ebc5ce4
  21. 07 Eyl, 2017 2 kayıt (commit)
  22. 06 Eyl, 2017 2 kayıt (commit)
  23. 18 Agu, 2017 1 kayıt (commit)
  24. 27 Tem, 2017 1 kayıt (commit)
  25. 30 Haz, 2017 1 kayıt (commit)
  26. 27 May, 2017 2 kayıt (commit)
  27. 23 May, 2017 1 kayıt (commit)
    • Eric Snow's avatar
      bpo-22257: Small changes for PEP 432. (#1728) · 6b4be195
      Eric Snow yazdı
      PEP 432 specifies a number of large changes to interpreter startup code, including exposing a cleaner C-API. The major changes depend on a number of smaller changes. This patch includes all those smaller changes.
      6b4be195
  28. 22 May, 2017 1 kayıt (commit)
  29. 10 May, 2017 1 kayıt (commit)
  30. 09 May, 2017 1 kayıt (commit)
  31. 05 May, 2017 1 kayıt (commit)
    • torsava's avatar
      bpo-29243: Fix Makefile with respect to --enable-optimizations (#1478) · a1054c3b
      torsava yazdı
      * bpo-29243: Fix Makefile with respect to --enable-optimizations
      
      When using the Profile Guided Optimization (./configure --enable-optimizations)
      Python is built not only during `make` but rebuilt again during `make test`,
      `make install` and others. This patch fixes the issue.
      
      Note that this fix produces no change at all in the Makefile if configure is
      run witout --enable-optimizations.
      
      * !squash
      a1054c3b
  32. 03 May, 2017 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-23404: make touch becomes make regen-all (#1405) · a5c62a8e
      Victor Stinner yazdı
      Don't rebuild generated files based on file modification time
      anymore, the action is now explicit. Replace "make touch"
      with "make regen-all".
      
      Changes:
      
      * Remove "make touch", Tools/hg/hgtouch.py and .hgtouch
      * Add a new "make regen-all" command to rebuild all generated files
      * Add subcommands to only generate specific files:
      
        - regen-ast: Include/Python-ast.h and Python/Python-ast.c
        - regen-grammar: Include/graminit.h and Python/graminit.c
        - regen-importlib: Python/importlib_external.h and Python/importlib.h
        - regen-opcode: Include/opcode.h
        - regen-opcode-targets: Python/opcode_targets.h
        - regen-typeslots: Objects/typeslots.inc
      
      * Rename PYTHON_FOR_GEN to PYTHON_FOR_REGEN
      * pgen is now only built by by "make regen-grammar"
      * Add $(srcdir)/ prefix to paths to source files to handle correctly
        compilation outside the source directory
      
      Note: $(PYTHON_FOR_REGEN) is no more used nor needed by "make"
      default target building Python.
      a5c62a8e
  33. 28 Nis, 2017 1 kayıt (commit)
  34. 24 Mar, 2017 1 kayıt (commit)
    • Alex Dzyoba's avatar
      `make tags` fixes (GH-717) · 8a543c0b
      Alex Dzyoba yazdı
      * Fix `make tags` warnings
      
      `make tags` target tries to find C sources and headers in "Grammar" and
      "Mac" folders and generates these warnings:
      
          ctags: Warning: cannot open source file "Grammar/*.[ch]" : No such file or directory
          ctags: Warning: cannot open source file "Mac/*.[ch]" : No such file or directory
      
      This commit changes $SRCDIRS variable in configure.ac to remote these
      directories. This variable is used only for tags generation.
      
      Also, "configure" was regenerated with `autoreconf`.
      
      * Fix `make tags` fail on non-default tag names
      
      When ctags overrides default tags filename (e.g. `-f .tags`) `make tags`
      is failed because it assumes to see default `tags` filename:
      
          sort: cannot read: tags: No such file or directory
      
      This commit explicitly specifies "tags" filename for tags generation.
      8a543c0b
  35. 04 Mar, 2017 1 kayıt (commit)