| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* 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.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Issue #29259:
* Detect PyCFunction is the current frame, not only in the older frame
* Ignore PyCFunction_Call() since it now calls _PyCFunction_FastCallDict(), and
_PyCFunction_FastCallDict() is already detected
|
| | |
| | |
| | |
| | | |
Issue #29259.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Issue #29286. Use METH_FASTCALL calling convention instead of METH_VARARGS to
parse "boring" position arguments. METH_FASTCALL is faster since it avoids the
creation of a temporary tuple to pass positional arguments.
Replace PyArg_UnpackTuple() with _PyArg_UnpackStack()+_PyArg_NoStackKeywords().
|
| | |
| | |
| | |
| | |
| | |
| | | |
Issue #29286. Use METH_FASTCALL calling convention instead of METH_VARARGS to
parse position arguments. METH_FASTCALL is faster since it avoids the creation
of a temporary tuple to pass positional arguments.
|
| | |
| | |
| | |
| | | |
Issue #29286.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Issue #29259: Write fast path in _PyCFunction_FastCallKeywords() for
METH_FASTCALL, avoid the creation of a temporary dictionary for keyword
arguments.
Cleanup also _PyCFunction_FastCallDict():
* Don't dereference func before checking that it's not NULL
* Move code to raise the "no keyword argument" exception into a new
no_keyword_error label.
Update python-gdb.py for the change.
|
|\ \ \
| |/ / |
|
| |\ \
| | |/ |
|
| | | |
|
|\ \ \
| |/ / |
|
| |\ \
| | |/ |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Frame.is_other_python_frame() now also handles _PyCFunction_FastCallDict()
frames.
Thanks to the new code to handle fast calls, python-gdb.py is now also able to
detect the <built-in id method of module ...> frame.
|
|\ \ \
| |/ / |
|
| |\ \
| | |/ |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Issue #28821.
Add also a message to show that the command did something :-)
|
| | |
| | |
| | |
| | |
| | | |
Use a context manager to close the Python file. Replace also open() with
tokenize.open() to handle coding cookie if any in Lib/opcode.py.
|
|\ \ \
| |/ /
| | |
| | | |
bdist_wininst command.
|
| |\ \
| | |/
| | |
| | | |
bdist_wininst command.
|
| | |
| | |
| | |
| | | |
bdist_wininst command.
|