| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
| |
Windows buildbots started failing due to include-related errors.
|
|
|
|
|
|
|
|
|
| |
* 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).
|
|
|
| |
See PEP 11.
|
|
|
|
|
|
|
|
|
|
|
|
| |
PEP 523 introduced _PyEval_EvalFrameDefault which inlines PyEval_EvalFrameEx on
non-debug shared builds. This breaks the ability to use py-bt, py-up, and
a few other Python-specific gdb integrations.
This patch fixes the problem by only looking for _PyEval_EvalFrameDefault
frames.
test_gdb passes on both a debug and a non-debug build.
Original patch by Bruno "Polaco" Penteado.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Tools/scripts/patchcheck.py now ignores changes in directories which
are copies of external libraries:
* Modules/_ctypes/libffi_msvc/
* Modules/_ctypes/libffi_osx/
* Modules/_decimal/libmpdec/
* Modules/expat/
* Modules/zlib/
Drop also support for Mercurial, since CPython migrated to Git.
Exclude also libmpdec
patchcheck: exclude also libffi_osx and libffi_msvc
|
|
|
|
|
|
|
|
|
|
| |
* Revert "Add Bruno Penteado to ACKS (#3091)"
This reverts commit f978405b3f092e4005b92ba1dbaab15f609b3bb0.
* Revert "bpo-30983: eval frame rename in pep 0523 broke gdb's python extension (#2803)"
This reverts commit 2e0f4db114424a00354eab889ba8f7334a2ab8f0.
|
|
|
|
|
|
|
| |
pep 0523 renames PyEval_EvalFrameEx to _PyEval_EvalFrameDefault while the gdb python extension only looks for PyEval_EvalFrameEx to understand if it is dealing with a frame.
Final effect is that attaching gdb to a python3.6 process doesnt resolve python objects. Eg. py-list and py-bt dont work properly.
This patch fixes that. Tested locally on python3.6
|
|
|
|
|
|
|
|
|
|
| |
* Enable building MSI, zip and nuget packages when Py_OutDir is set.
* Restore the --build option, which got reverted at some point.
* Ensure output directory is created.
* Enables BuildForDaily and DailyBuildVersion options for nuget package.
|
|
|
| |
Updates ssl and tkinter projects to use pre-built externals
|
|
|
|
|
| |
the bare METH_FASTCALL be used for functions with positional-only
parameters.
|
|
|
| |
Make tests fail if a test altered the environment.
|
| |
|
| |
|
|
|
| |
Straightforward. While we're at it, though, strip trailing whitespace from generated tables.
|
|
|
|
|
|
| |
vcvarsall.bat (#2252)
* Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat
Also fixes bdist_wininst.vcxproj to use correct version in generated name.
|
|
|
| |
This reverts commit 258bfc462b1e58689b43f662a10e44ece3a10bef.
|
|
|
|
|
| |
The Windows build now depends on Python 3.6 to fetch externals, but it will be downloaded via NuGet (which is downloaded via PowerShell) if it is not available via `py -3.6`. This means the only thing that must be installed on a modern Windows box to do a full build of CPython with all extensions is Visual Studio.
Also fixes an outdated note about _lzma in PCbuild/readme.txt
|
| |
|
|
|
| |
Updates checked-in line endings on several files.
|
|
|
|
|
|
|
|
| |
The function '_PyArg_ParseStack()' and
'_PyArg_UnpackStack' were failing (with error
"XXX() takes Y argument (Z given)") before
the function '_PyArg_NoStackKeywords()' was called.
Thus, the latter did not raise its more meaningful
error : "XXX() takes no keyword arguments".
|
|
|
|
|
|
| |
* bpo-30492: Allow make clinic to work out of tree.
* Use os.curdir instead of "." as the default value.
|
|
|
|
|
|
|
|
| |
* Replaced list(<generator expression>) with list comprehension
* Replaced dict(<generator expression>) with dict comprehension
* Replaced set(<list literal>) with set literal
* Replaced builtin func(<list comprehension>) with func(<generator
expression>) when supported (e.g. any(), all(), tuple(), min(), &
max())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
| |
Skip the file if it has bad encoding.
|
|
|
|
| |
The original attempted fix missed an `isdir()` call in
`get_base_branch()`.
|
|
|
| |
This hides unwanted implementation details from tracebacks.
|
|
|
|
|
| |
deque (#887)
when pass indices of wrong type.
|
|
|
| |
if pass `accept={int, NoneType}`.
|
|
|
| |
Make also minor PEP8 coding style fixes on modified imports.
|
|
|
|
|
| |
one (#422)" (#713)
This reverts commit 02371e0ed1ee82ec73e7d363bcf2ed40cde1397a.
|
| |
|
| |
|
|
|
|
| |
In git worktree directories, `.git` is a configuration
file rather than a subdirectory
|
| |
|
| |
|
|
|
| |
Based on patch by Vajrasky Kok.
|
|
|
| |
bpo-20087
|
|
|
|
| |
output. (#466)
|
|
|
|
| |
* bpo-27593: Updates Windows build to use information from git
|
|
|
| |
This change is required to make python-dbg.py compatible with GDB versions before 7.3.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-29463: Add docstring field to some AST nodes.
ClassDef, ModuleDef, FunctionDef, and AsyncFunctionDef has docstring
field for now. It was first statement of there body.
* fix document. thanks travis!
* doc fixes
|
| |
|
| |
|
|\ |
|
| |\ |
|
| | | |
|
| | |
| | |
| | |
| | | |
Calling builtin method is at most 10% faster.
|
| | |
| | |
| | |
| | |
| | | |
Issue #29367: python-gdb.py now supports also method-wrapper (wrapperobject)
objects.
|