summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-40614: Respect feature version for f-string debug expressions (GH-20196)Shantanu2020-05-274-0/+17
| | | | Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* bpo-40791: Use CRYPTO_memcmp() for compare_digest (#20456)Christian Heimes2020-05-277-37/+221
| | | | | | | | hashlib.compare_digest uses OpenSSL's CRYPTO_memcmp() function when OpenSSL is available. Note: The _operator module is a builtin module. I don't want to add libcrypto dependency to libpython. Therefore I duplicated the wrapper function and added a copy to _hashopenssl.c.
* bpo-30064: Fix asyncio loop.sock_* race condition issue (#20369)Fantix King2020-05-273-16/+157
|
* Refactor error handling code in Parser/pegen/pegen.c (GH-20440)Lysandros Nikolaou2020-05-271-3/+8
| | | | | | Set p->error_indicator in various places, where it's needed, but it's not done. Automerge-Triggered-By: @gvanrossum
* bpo-13097: ctypes: limit callback to 1024 arguments (GH-19914)Sean Gillespie2020-05-273-0/+31
| | | | | | | | | | ctypes now raises an ArgumentError when a callback is invoked with more than 1024 arguments. The ctypes module allocates arguments on the stack in ctypes_callproc() using alloca(), which is problematic when large numbers of arguments are passed. Instead of a stack overflow, this commit raises an ArgumentError if more than 1024 parameters are passed.
* bpo-39573: Convert Py_REFCNT and Py_SIZE to functions (GH-20429)Victor Stinner2020-05-276-14/+44
| | | | | | | | | | | Convert Py_REFCNT() and Py_SIZE() macros to static inline functions. They cannot be used as l-value anymore: use Py_SET_REFCNT() and Py_SET_SIZE() to set an object reference count and size. Replace &Py_SIZE(self) with &((PyVarObject*)self)->ob_size in arraymodule.c. This change is backward incompatible on purpose, to prepare the C API for an opaque PyObject structure.
* bpo-37999: Fix outdated __int__ and nb_int references in comments (GH-20449)Mark Dickinson2020-05-272-38/+33
| | | | | | | | | * Fix outdated __int__ and nb_int references in comments * Also update C-API documentation * Add back missing 'method' word * Remove .. deprecated notices
* Upgrade bundled versions of pip & setuptools (#16782)Xavier Fernandez2020-05-275-6/+7
|
* Fix the link to ncurses patch download in macos installer build script ↵Oleg Höfling2020-05-271-1/+1
| | | | | | | (GH-20421) Reason: the link `ftp://invisible-island.net/ncurses//5.9/ncurses-5.9-20120616-patch.sh.bz2` is dead, which prevents `Mac/BuildScript/build-installer.py` from completing. Looks like the host of the FTP server was changed to `ftp.invisible-island.net`, thus this proposal. Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
* bpo-40217: Ensure Py_VISIT(Py_TYPE(self)) is always called for ↵Pablo Galindo2020-05-2712-94/+87
| | | | | | | | | PyType_FromSpec types (reverts GH-19414) (GH-20264) Heap types now always visit the type in tp_traverse. See added docs for details. This reverts commit 0169d3003be3d072751dd14a5c84748ab63a249f. Automerge-Triggered-By: @encukou
* Fix lookahead of soft keywords in the PEG parser (GH-20436)Pablo Galindo2020-05-264-2/+31
| | | Automerge-Triggered-By: @gvanrossum
* bpo-40611: Adds MAP_POPULATE to the mmap module (GH-20061)Ethan Steinberg2020-05-263-1/+25
| | | | MAP_POPULATE constant has now been added to the list of exported mmap module flags.
* Add soft keywords (GH-20370)Guido van Rossum2020-05-264-4/+75
| | | | | | | These are like keywords but they only work in context; they are not reserved except when there is an exact match. This would enable things like match statements without reserving `match` (which would be bad for the `re.match()` function and probably lots of other places). Automerge-Triggered-By: @gvanrossum
* bpo-37999: No longer use __int__ in implicit integer conversions. (GH-15636)Serhiy Storchaka2020-05-2687-2937/+226
| | | | Only __index__ should be used to make integer conversions lossless.
* bpo-40756: Default second argument of LoggerAdapter.__init__ to None (GH-20362)Arturo Escaip2020-05-262-1/+3
| | | | | | | | | | | | | | | | | | | | | The 'extra' argument is not always used by custom logger adapters. For example: ```python class IndentAdapter(logging.LoggerAdapter): def process(self, msg, kwargs): indent = kwargs.pop(indent, 1) return ' ' * indent + msg, kwargs ``` It is cleaner and friendlier to default the 'extra' argument to None instead of either forcing the subclasses of LoggerAdapter to pass a None value directly or to override the constructor. This change is backward compatible because existing calls to `LoggerAdapter.__init__` are already passing a value for the second argument. Automerge-Triggered-By: @vsajip
* bpo-39244: multiprocessing return default start method first on macOS (GH-18625)idomic2020-05-263-4/+9
|
* bpo-40737: Fix possible reference leak for sqlite3 initialization (GH-20323)Erlend Egeberg Aasland2020-05-262-8/+13
|
* bpo-40637: Fix test_pbkdf2_hmac_py for missing sha1 (#20422)Christian Heimes2020-05-261-9/+23
|
* bpo-39301: State that floor division is used for right shift operations ↵Zackery Spytz2020-05-261-4/+2
| | | | | | | (GH-20347) * bpo-39301: State that floor division is used for right shift operations * Remove "without overflow check"
* Remove duplicated words words (GH-20413)Serhiy Storchaka2020-05-266-6/+6
|
* bpo-40745: Fix typos in NewType docs (GH-20379)ziheng2020-05-251-2/+2
|
* Simplify creation of the __new__ method in namedtuple() (GH-20361)Raymond Hettinger2020-05-251-4/+2
|
* Fix peg_generator compiler warnings under MSVC (GH-20405)Ammar Askar2020-05-262-8/+4
|
* closes bpo-40774: Fix docs indentation for asyncio.create_subprocess_shell() ↵sth2020-05-251-8/+8
| | | | (GH-20403)
* bpo-38964: Print correct filename on a SyntaxError in an fstring (GH-20399)Lysandros Nikolaou2020-05-263-5/+16
| | | | | | | | When a `SyntaxError` in the expression part of a fstring is found, the filename attribute of the `SyntaxError` is always `<fstring>`. With this commit, it gets changed to always have the name of the file the fstring resides in. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* [workflow] Use Sphinx problem matcher on GitHub docs builds (GH-20325)Ammar Askar2020-05-252-1/+43
|
* bpo-40688: Use the correct parser in the peg_generator scripts (GH-20235)Lysandros Nikolaou2020-05-256-172/+136
| | | | | | | The scripts in `Tools/peg_generator/scripts` mostly assume that `ast.parse` and `compile` use the old parser, since this was the state of things, while we were developing them. They need to be updated to always use the correct parser. `_peg_parser` is being extended to support both parsing and compiling with both parsers.
* bpo-23082: Better error message for PurePath.relative_to() from pathlib ↵Rotuna2020-05-253-2/+6
| | | | | (GH-19611) Co-authored-by: Sadhana Srinivasan <rotuna@Sadhanas-MBP.fritz.box>
* Closes bpo-40558: update CONTRIBUTING.rst to reflect current branches (GH-19989)Hai Shi2020-05-251-6/+6
|
* bpo-40750: Do not expand the new parser debug flags if Py_BUILD_CORE is not ↵Pablo Galindo2020-05-252-2/+2
| | | | defined (GH-20393)
* bpo-40750: Support -d flag in the new parser (GH-20340)Pablo Galindo2020-05-256-48/+4440
|
* bpo-39573: Fix buildbot failure for tupleobject.c (GH-20391)Dong-hee Na2020-05-261-1/+1
|
* bpo-39573: Convert Py_TYPE() to a static inline function (GH-20290)Dong-hee Na2020-05-264-12/+37
|
* bpo-39245: Fix docs links to the stable ABI (GH-20388)Miro Hrončok2020-05-251-9/+9
| | | Automerge-Triggered-By: @vstinner
* bpo-34397: Remove redundant overflow checks in list and tuple ↵Sergey Fedoseev2020-05-252-15/+4
| | | | implementation. (GH-8757)
* bpo-38972: Fix typos in PowerShell Execution Policies links (GH-20383)Miro Hrončok2020-05-252-2/+2
|
* bpo-40671: Prepare _hashlib for PEP 489 (GH-20180)Christian Heimes2020-05-252-67/+115
|
* bpo-40695: Limit hashlib builtin hash fallback (GH-20259)Christian Heimes2020-05-252-2/+6
| | | | | | | :mod:`hashlib` no longer falls back to builtin hash implementations when OpenSSL provides a hash digest and the algorithm is blocked by security policy. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-35714: Reject null characters in struct format strings (GH-16928)Zackery Spytz2020-05-253-0/+15
| | | | struct.error is now raised if there is a null character in a struct format string.
* bpo-38580: Document that select() accepts iterables, not just sequences ↵Jakub Stasiak2020-05-253-8/+8
| | | | (GH-16832)
* bpo-40334: Support suppressing of multiple optional variables in Pegen ↵Batuhan Taskaya2020-05-241-2/+2
| | | | (GH-20367)
* bpo-36290: Fix keytword collision handling in AST node constructors (GH-12382)Rémi Lapeyre2020-05-245-6/+66
|
* bpo-17050: Remove documentation on argparse.REMAINDER (GH-18661)Albert2020-05-241-13/+0
| | | | | Closes [Issue 17050]() by removing argparse.REMAINDER from the documentation, as discussed on the issue. Automerge-Triggered-By: @rhettinger
* bpo-40443: Remove unused imports in the zoneinfo (GH-20354)Dong-hee Na2020-05-242-4/+0
|
* bpo-37309: Update IDLE NEWS.txt (GH-20356)Terry Jan Reedy2020-05-241-0/+1
|
* bpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311)Florian Dahlitz2020-05-243-1/+4
| | | | This was the only failure running unittest.main(test.test_idle) after imports.
* bpo-37973: Improve the docstrings of sys.float_info (GH-19218)Zackery Spytz2020-05-241-2/+4
| | | Taken from https://docs.python.org/3/library/sys.html#sys.float_info
* Remove spurious NULL in descrobject.c (GH-20344)Hai Shi2020-05-241-1/+0
| | | Co-authored-by: hai shi <shihai1991@126.com>
* Use Py_ssize_t for the column number in the PEG support code (GH-20341)Pablo Galindo2020-05-241-1/+1
|
* bpo-40405: Fix asyncio.as_completed docs (GH-19753)Bar Harel2020-05-231-5/+5
| | | | | | | | * Fix as_completed docs to correctly state the function return value. * Also, improves the general wording of the as_completed documentation. Co-Authored-By: Rémi Lapeyre <remi.lapeyre@henki.fr> Co-Authored-By: Kyle Stanley <aeros167@gmail.com> Co-Authored-By: Yury Selivanov <yury@edgedb.com>