summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-34435: Add missing NULL check to unicode_encode_ucs1(). (GH-8823)Miss Islington (bot)2018-08-191-2/+3
| | | | | | Reported by Svace static analyzer. (cherry picked from commit 74a307d48ef8b278c4629ca0ef2139be1c9a34e6) Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
* bpo-22057: Clarify eval() documentation (GH-8812)Miss Islington (bot)2018-08-191-2/+4
| | | | | | | | | | | | | | If a globals dictionary without a '__builtins__' key is passed to eval(), a '__builtins__' key will be inserted to the dictionary: >>> eval("print('__builtins__' in globals())", {}) True (As a result of this behavior, we can use the builtins print() and globals() even if we passed a dictionary without a '__builtins__' key to eval().) (cherry picked from commit 225b05548027d55aafb11b65f6a4a2bef2f5196f) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
* bpo-34415: Updated logging.Formatter docstring. (GH-8811) (GH-8817)Miss Islington (bot)2018-08-191-1/+2
| | | | (cherry picked from commit d3d3171da895d8cb880f23fae6be778f0ac23be7)
* bpo-34432: doc Mention complex and decimal.Decimal on str.format note about ↵Miss Islington (bot)2018-08-181-7/+8
| | | | | | | locales (GH-8808) (GH-8809) (cherry picked from commit 93b5655c040a33f9ba4cdbd303afc8398c8413c7) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-34381: refer to 'Running & Writing Tests' in README.rst (GH-8797)Miss Islington (bot)2018-08-171-0/+2
| | | | | (cherry picked from commit cae8ff93a696aa7d74562a9eeaf27afac1f181b4) Co-authored-by: Michael Osipov <1983-01-06@gmx.net>
* bpo-34418: Fix HTTPErrorProcessor documentation (GH-8793)Miss Islington (bot)2018-08-171-2/+2
| | | | | | | The http_response() and https_response() methods of the HTTPErrorProcessor class have two required parameters, 'request' and 'response'. (cherry picked from commit c53aaec793e018edef4e72a3edbd338b10db10aa) Co-authored-by: Sebastian Rittau <srittau@rittau.org>
* [3.7] bpo-34391: Fix ftplib test for TLS 1.3 (GH-8787) (GH-8789)Miss Islington (bot)2018-08-162-0/+6
| | | | | | | | | | | | | | Read from data socket to avoid "[SSL] shutdown while in init" exception during shutdown of the dummy server. Signed-off-by: Christian Heimes <christian@python.org> <!-- issue-number: [bpo-34391](https://www.bugs.python.org/issue34391) --> https://bugs.python.org/issue34391 <!-- /issue-number --> (cherry picked from commit 1590c393360df059160145e7475754427bfc6680) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-34217: Use lowercase for windows headers (GH-8472)Miss Islington (bot)2018-08-163-3/+3
| | | | | (cherry picked from commit e6a4755e6793942b950c1595e0c34bd66a0ee13e) Co-authored-by: Erik Janssens <erik.janssens@conceptive.be>
* bpo-34395: Fix memory leaks caused by incautious usage of PyMem_Resize(). ↵Miss Islington (bot)2018-08-162-42/+22
| | | | | | | (GH-8756) (cherry picked from commit 67b9cc8e6072a919d2ed7e7ecc8124c8acfb3733) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
* bpo-34405: Updated to OpenSSL 1.1.0i for Windows builds. (GH-8775)Miss Islington (bot)2018-08-153-4/+5
| | | | | (cherry picked from commit 864a892af38afefb0a0464af298cf09d2e1195f7) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* closes bpo-34400: Fix undefined behavior in parsetok(). (GH-4439)Miss Islington (bot)2018-08-152-1/+2
| | | | | | Avoid undefined pointer arithmetic with NULL. (cherry picked from commit 7c4ab2afb17b99eb3f61f9c73cbd548b5e0ad2c0) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-34399: 2048 bits RSA keys and DH params (GH-8762) (GH-8763)Miss Islington (bot)2018-08-145-44/+47
| | | | | | | | | | | | | Downstream vendors have started to deprecate weak keys. Update all RSA keys and DH params to use at least 2048 bits. Finite field DH param file use RFC 7919 values, generated with certtool --get-dh-params --sec-param=high Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 88bfd0bce05043f658e50addd21366f317995e35) Co-authored-by: Christian Heimes <christian@python.org>
* smtplib documentation fixes (GH-8708)Miss Islington (bot)2018-08-121-4/+11
| | | | | | | | | | * SMTP.startssl: Fix doc on keyfile and certfile use * SMTP.startssl: Add missing keyfile and certfile deprecation notice * SMTP: Doc grammar fixes (cherry picked from commit da12063f2f53b7d272824863ed24260cefb22e8c) Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
* bpo-34213: Allow dataclasses to work with a field named 'object'. (GH-8452)Miss Islington (bot)2018-08-123-1/+58
| | | | | (cherry picked from commit 4d12e4dc28b7c782c368bae2e8fd3815167ed37d) Co-authored-by: Vadim Pushtaev <pushtaev.vm@gmail.com>
* Fix misindented yaml in logging how to example (GH-8604)Miss Islington (bot)2018-08-121-3/+3
| | | | | (cherry picked from commit 10b59f1b019cd00c940dd7f4a74c4f667a20f25f) Co-authored-by: Rémy HUBSCHER <hubscher.remy@gmail.com>
* Fix the versionadded indentation in exec_module doc (GH-8719)Miss Islington (bot)2018-08-121-1/+1
| | | | | (cherry picked from commit 65b5ef02ec1f44e3a19b689a1ecf73d01c82161b) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-34379: Doc: Move note for json.dump (GH-8730)Miss Islington (bot)2018-08-111-6/+5
| | | | | (cherry picked from commit 9e840848510d20e644a19c723b803877377d3765) Co-authored-by: Evan Allrich <eallrich@gmail.com>
* closes bpo-34377: Update Valgrind suppressions. (GH-8729)Miss Islington (bot)2018-08-112-11/+14
| | | | | | Valgrind isn't seeing PyObject_Free/PyObject_Realloc, but using _PyObject_Free/_PyObject_Realloc works. (cherry picked from commit db6075ab3aa44f69c13c4a169806d08596d25003) Co-authored-by: Paul Price <price@astro.princeton.edu>
* bpo-26818: Add a test to make sure the bug is fixed (GH-8664)Miss Islington (bot)2018-08-111-0/+22
| | | | | | The main cause of this bug was fixed as part of bpo-31908. (cherry picked from commit c8b0dbc4928a1fe4bd5abebd810b6849374c7af3) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
* bpo-34333: Fix %-formatting in Path.with_suffix() (GH-8663)Miss Islington (bot)2018-08-113-1/+5
| | | | | (cherry picked from commit 423d05f6f59b24c91b9ef6b2e4ac130316764382) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
* bpo-34047: IDLE: fix mousewheel scrolling direction on macOS (GH-8678)Miss Islington (bot)2018-08-092-6/+18
| | | | | (cherry picked from commit 077059e0f086cf8c8b7fb9d1f053e38ddc743f59) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* Doc: add missing capture_output arg to subprocess.run() signature (GH-8374)Miss Islington (bot)2018-08-091-2/+2
| | | | | (cherry picked from commit 22d131a7f9e4e64486da1d1cddbfed2379517791) Co-authored-by: Andriy Maletsky <9919211+and800@users.noreply.github.com>
* Improve grammar of asynchronous iterator glossary entry (GH-8657)Miss Islington (bot)2018-08-091-3/+3
| | | | | (cherry picked from commit cf2c5e8e2867e41d34079b2e464bbbe653fb7981) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-34324: Doc README wrong directory name for venv (GH-8650)Miss Islington (bot)2018-08-091-1/+1
| | | | | | | | In the documentation, the `env` directory is specified when we execute the `make venv` command. But in the code, `make venv` will create the virtualenv inside the `venv` directory (defined by `VENVDIR`) (cherry picked from commit 599bfa18f8ebcb23af300b6855934048c3c64e7d) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* Make code examples in Functional Programming HOWTO to be PEP 8 compliant. ↵Miss Islington (bot)2018-08-071-23/+23
| | | | | | | (GH-8646) (cherry picked from commit db8707c8ab57d9454c838586c08199c82a3d74d9) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
* bpo-34335: Use async/await syntax in documentation examples (GH-8674)Miss Islington (bot)2018-08-072-4/+2
| | | | | (cherry picked from commit d2ac400267940f35d731d66c2dafafe099d770d9) Co-authored-by: Mikhail Terekhov <termim@gmail.com>
* VSTS: Skip build steps when only docs have changed (GH-8546)Miss Islington (bot)2018-08-075-1/+87
| | | | | (cherry picked from commit b221c93d4cf8fe9ecec429b08612abcc211a39a6) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-18540: Fix EAI_NONAME in imaplib.IMAP4*() (GH-8634)Miss Islington (bot)2018-08-073-1/+22
| | | | | (cherry picked from commit e4dcbbd7f4ac18d01c0ec85f64ae98b8281ed403) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
* Fix HTML formatting in datamodel.rst (GH-8693)Miss Islington (bot)2018-08-061-3/+3
| | | | | (cherry picked from commit 3c1b590472d567e22a607ba31271865cd90c8e9b) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
* bpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645)Miss Islington (bot)2018-08-061-1/+2
| | | | | | Patch by Terry Jan Reedy. (cherry picked from commit 5b2657fb8c5aaa98e5748e1c325c74b97ea12fd1) Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
* bpo-34272: Move argument parsing tests from test_capi to test_getargs2. ↵Miss Islington (bot)2018-08-062-181/+182
| | | | | | | (GH-8567) (cherry picked from commit 8f7bb100d0fa7fb2714f3953b5b627878277c7c6) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-34273: Change 'Fixed point' to 'Fixed-point notation'. (GH-8673)Miss Islington (bot)2018-08-061-4/+4
| | | | | | | | | | | | | | | | | * bpo-34273: Change 'Fixed point' to 'Fixed-point notation'. The change in the mini language floating point and decimal table is consistent with 'Exponential notation' and clarifies that we are referring to the output notation, not an object type. * Update string.rst * Update string.rst * Update string.rst * Update string.rst (cherry picked from commit 28c7f8c8ce34a0cb848822a252a9d0a761fb42d5) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-19891: Ignore error while writing history file (GH-8483)Miss Islington (bot)2018-08-062-1/+12
| | | | | (cherry picked from commit b2499669ef2e6dc9a2cdb49b4dc498e078167e26) Co-authored-by: Anthony Sottile <asottile@umich.edu>
* bpo-34336: Don't promote possibility to leave out typing.Optional (GH-8677)Miss Islington (bot)2018-08-051-4/+12
| | | | | (cherry picked from commit 336c945858055059a65134d4c501a85037d70d99) Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
* [3.7] bpo-34247: Fix Python 3.7 initialization (#8659)Victor Stinner2018-08-0510-162/+781
| | | | | | | | | | | | | | | | | * -X dev: it is now possible to override the memory allocator using PYTHONMALLOC even if the developer mode is enabled. * Add _Py_InitializeFromConfig() * Add _Py_Initialize_ReadEnvVars() to set global configuration variables from environment variables * Fix the code to initialize Python: Py_Initialize() now also reads environment variables * _Py_InitializeCore() can now be called twice: the second call only replaces the configuration. * Write unit tests on Py_Initialize() and the different ways to configure Python * The isolated mode now always sets Py_IgnoreEnvironmentFlag and Py_NoUserSiteDirectory to 1. * pymain_read_conf() now saves/restores the configuration if the encoding changed
* bpo-33839: refactor IDLE's tooltips & calltips, add docstrings and tests ↵Miss Islington (bot)2018-08-047-144/+416
| | | | | | | | | | | (GH-7683) * make CallTip and ToolTip sub-classes of a common abstract base class * remove ListboxToolTip (unused and ugly) * greatly increase test coverage * tested on Windows, Linux and macOS (cherry picked from commit 87e59ac11ee074b0dc1bc864c74fac0660b27f6e) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* Fix reST markup in unittest documentation (GH-8665)Miss Islington (bot)2018-08-041-1/+1
| | | | | (cherry picked from commit 2e5566d9e774dcde81e8139b486730917816e045) Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
* bpo-34329: Doc'd how to remove suffix of pathlib.Path() (GH-8655)Miss Islington (bot)2018-08-042-3/+9
| | | | | (cherry picked from commit 46dc4e34ed8005a688d7f3512844ef227a3465f4) Co-authored-by: Stefan Otte <stefan.otte@gmail.com>
* Fix docstring of Profiler class (GH-8651)Miss Islington (bot)2018-08-032-4/+4
| | | | | (cherry picked from commit 2ebd3813af9172fe1f9b2f6004edf6f1e1e5d9f1) Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
* Improve the grammar in `range` documentation. (GH-8628)Miss Islington (bot)2018-08-021-1/+1
| | | | | | Remove unnecessary "that" in the sentence. (cherry picked from commit b6efc2cf9701adfb901eec2fe6a418893739877a) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-34275: Make IDLE calltips always visible on Mac. (GH-8639)Miss Islington (bot)2018-08-022-0/+3
| | | | | | | | Some MacOS-tk combinations need .update_idletasks(). The call is both unneeded and innocuous on Linux and Windows. Patch by Kevin Waltzer. (cherry picked from commit 9beaef6225cdae972b1cccd5310828cc29bf9d33) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-34317: Fix a dead url to Windows documentation (GH-8622)Miss Islington (bot)2018-08-021-1/+1
| | | | | (cherry picked from commit 46ebe61c7f3511b97268b44d5373a9e9cf0b5cc7) Co-authored-by: HiyashiChuka <41299525+hiyashichuka@users.noreply.github.com>
* Update list.remove(x) documentation (GH-8636)Miss Islington (bot)2018-08-021-2/+2
| | | | | | Rephrase it to "It raises a `ValueError`" (cherry picked from commit bcd1d971b66f529cbd450aca438275b868031605) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* bpo-30317: Fix multiprocessing test_timeout() (GH-8621)Miss Islington (bot)2018-08-021-3/+4
| | | | | | | | Multiprocessing test_timeout() now accepts a delta of 100 ms instead of just 50 ms, since the test failed with 135.8 ms instead of the expected 200 ms. (cherry picked from commit 5640d030e100aade54210034828b711c3b506b18) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-27910: Update documentation of traceback module (GH-6116)Miss Islington (bot)2018-08-022-30/+35
| | | | | | | | | | | | | In the documentation for the traceback module, the definitions of functions extract_tb(), format_list() and classmethod StackSummary.from_list() mention the old style 4-tuples that these functions used to return or accept. Since Python 3.5, however, they return or accept a FrameSummary object instead of a 4-tuple, or a StackSummary object instead of a list of 4-tuples. Co-authored-by: torsava <torsava@redhat.com> Co-Authored-By: Berker Peksag <berker.peksag@gmail.com> (cherry picked from commit f394ee5eaf6d6d8f45e0478e77d4dbff25c6bea7)
* bpo-34120: fix text viewer to call grab_release() only when needed (GH-8616)Miss Islington (bot)2018-08-021-2/+4
| | | | | (cherry picked from commit dd74369cb7b230b07ac3a031563406c8f2aae17f) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* bpo-34120: fix IDLE freezing after closing dialogs (GH-8603)Miss Islington (bot)2018-08-016-0/+10
| | | | | | Added missing .grab_release() calls to all places where we call .grab_set(). (cherry picked from commit 10ea9409ceb5da83cb380b610750551e26561044) Co-authored-by: Tal Einat <taleinat+github@gmail.com>
* [3.7] bpo-34263 Cap timeout submitted to epoll/select etc. to one day. ↵Miss Islington (bot)2018-07-312-1/+6
| | | | (GH-8532) (GH-8586)
* bpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931)Miss Islington (bot)2018-07-315-32/+114
| | | | | | | | | | | | | | * Fix integer overflow in os.readv(), os.writev(), os.preadv() and os.pwritev() and in os.sendfile() with headers or trailers arguments (on BSD-based OSes and MacOS). * Fix sending the part of the file in os.sendfile() on MacOS. Using the trailers argument could cause sending more bytes from the input file than was specified. Thanks Ned Deily for testing on 32-bit MacOS. (cherry picked from commit 9d5727326af53ddd91016d98e16ae7cf829caa95) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.7] bpo-33729: Fix issues with arguments parsing in hashlib. (GH-8346) ↵Serhiy Storchaka2018-07-3112-271/+223
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-8581) * help(hashlib) didn't work because of incorrect module name in blake2b and blake2s classes. * Constructors blake2*(), sha3_*(), shake_*() and keccak_*() incorrectly accepted keyword argument "string" for binary data, but documented as accepting the "data" keyword argument. Now this parameter is positional-only. * Keyword-only parameters in blake2b() and blake2s() were not documented as keyword-only. * Default value for some parameters of blake2b() and blake2s() was None, which is not acceptable value. * The length argument for shake_*.digest() was wrapped out to 32 bits. * The argument for shake_128.digest() and shake_128.hexdigest() was not positional-only as intended. * TypeError messages for incorrect arguments in all constructors sha3_*(), shake_*() and keccak_*() incorrectly referred to sha3_224. Also made the following enhancements: * More accurately specified input and result types for strings, bytes and bytes-like objects. * Unified positional parameter names for update() and constructors. * Improved formatting. (cherry picked from commit f1d36d8efaecd5c84cb35e35119b283f37d83c40) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>