summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-29782: Consolidate _Py_Bit_Length() (GH-20739)Niklas Fiekas2020-06-156-36/+100
| | | | | | | | | | In GH-2866, _Py_Bit_Length() was added to pymath.h for lack of a better location. GH-20518 added a more appropriate header file for bit utilities. It also shows how to properly use intrinsics. This allows reconsidering bpo-29782. * Move the function to the new header. * Changed return type to match __builtin_clzl() and reviewed usage. * Use intrinsics where available. * Pick a fallback implementation suitable for inlining.
* bpo-40836: Add docstring to logging.fatal() and logging.Logger.fatal() ↵Rémi Lapeyre2020-06-151-2/+10
| | | | | (GH-20563) Automerge-Triggered-By: @vsajip
* Fix trailing whitespace in keyword.py (GH-20881)Pablo Galindo2020-06-151-2/+2
|
* Include soft keywords in keyword.py (GH-20877)Pablo Galindo2020-06-153-5/+19
|
* bpo-40890: Fix compiler warning in dictobject.c (GH-20876)Pablo Galindo2020-06-151-3/+2
|
* Fixes dead links to Django's logging config docs (GH-20823)kevin seelbach2020-06-141-2/+2
| | | | | Fixes two outdated URLs to point at the current "stable" version of Django's logging documentation. Automerge-Triggered-By: @vsajip
* bpo-30064: Fix slow asyncio sock test (GH-20868)Fantix King2020-06-141-14/+20
| | | | | | | | | | | | | Using a log2n way to fill a much smaller buffer, and receiving in a cleaner way with EOF. The failing test was reproducible using the following command thanks to @aeros : ```bash ./python -m test test_asyncio.test_sock_lowlevel --match test_sock_client_racing -j100 -F -v ``` According to test results, we may still need to bump the timeout: https://github.com/python/cpython/blob/5aad027db9618f22f6fa2274e05dd50f928d2ed7/Lib/test/test_asyncio/test_sock_lowlevel.py#L256-L257
* Some reformatting (suggested by Black) and minor factoring. (GH-20865)Raymond Hettinger2020-06-141-31/+29
|
* bpo-40855: Fix ignored mu and xbar parameters (GH-20835)Raymond Hettinger2020-06-133-2/+18
|
* bpo-37674: Tweak imp module deprecation note in the docs (GH-20480)Zackery Spytz2020-06-131-1/+1
|
* Minor code clean-ups (GH-20838)Raymond Hettinger2020-06-131-89/+110
|
* bpo-40957: Fix refleak in _Py_fopen_obj() (GH-20827)Christian Heimes2020-06-132-0/+2
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-40834: Fix truncate when sending str object with channel (GH-20555)An Long2020-06-133-1/+5
|
* Remove redundant var in PyErr_NewException() (GH-20850)Hai Shi2020-06-131-2/+0
|
* bpo-37556 Extend help to include latest overrides (GH-14701)Steve (Gadget) Barnes2020-06-122-1/+11
| | | | | Modify the help in cpython/PC/launcher.c to show users that "latest" can be overridden by shebang, PY_PYTHON[n] or py.ini files. Also show that script [args] is optional by enclosing in square brackets. Automerge-Triggered-By: @zooba
* Minor change on threading.Thread.native_id documentation. (GH-18129)Antoine2020-06-121-5/+4
| | | | | | | | | Remove duplication in `threading.Thread.native_id` documentation, so resulting documentation is more consistent with the `threading.Thread.ident`. Issue initially raised [here](https://github.com/python/python-docs-fr/pull/1122#discussion_r369236634) (in French). No issue associated to this PR. Automerge-Triggered-By: @csabella
* bpo-40164: Update Windows OpenSSL to 1.1.1g (GH-20834)Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)2020-06-125-8/+9
|
* bpo-40964: disable remote IMAP tests (GH-20836)Christian Heimes2020-06-122-0/+5
| | | | | | Remote host cyrus.andrew.cmu.edu is blocking incoming connections and is causing test suite to fail. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-40890: Add `mapping` property to dict views (GH-20749)Dennis Sweeney2020-06-125-3/+58
|
* bpo-40955: Fix memory leak in subprocess module (GH-20825)Christian Heimes2020-06-122-0/+2
| | | | | | | | | | ``` Direct leak of 8 byte(s) in 1 object(s) allocated from: #0 0x7f008bf19667 in __interceptor_malloc (/lib64/libasan.so.6+0xb0667) #1 0x7f007a0bee4a in subprocess_fork_exec /home/heimes/dev/python/cpython/Modules/_posixsubprocess.c:774 #2 0xe0305b in cfunction_call Objects/methodobject.c:546 ``` Signed-off-by: Christian Heimes <christian@python.org>
* Update lexical_analysis.rst (GH-17508)Géry Ogam2020-06-121-1/+1
| | | | | Use Sphinx role markup for `str.format`. Automerge-Triggered-By: @csabella
* bpo-33944: site: Add site-packages tracing in verbose mode (GH-12110)native-api2020-06-124-0/+24
|
* bpo-40950: Port nis module to multiphase initialization (GH-20811)Dong-hee Na2020-06-122-45/+105
|
* bpo-40939: Clean and adapt the peg_generator directory after deleting the ↵Pablo Galindo2020-06-126-304/+30
| | | | old parser (GH-20822)
* Remove unnecessary grammar decorations and change header (GH-20819)Pablo Galindo2020-06-111-2/+1
|
* bpo-40626: Support HDF5 in mimetypes (GH-20042)MARK SCHWAB2020-06-112-0/+2
| | | | | | | Add hdf5 with .h5 file extension See 'Recommendations' section for mime types from the HDF group: https://www.hdfgroup.org/2018/06/citations-for-hdf-data-and-software/ Patch by Mark Schwab.
* bpo-29620: iterate over a copy of sys.modules (GH-4800)kernc2020-06-113-1/+19
| | | | | | | unittest.TestCase.assertWarns no longer raises a RuntimeException when accessing a module's ``__warningregistry__`` causes importation of a new module, or when a new module is imported in another thread. Patch by Kernc.
* bpo-40939: Remove some extra references to PYTHONOLDPARSER (GH-20815)Pablo Galindo2020-06-112-5/+1
| | | Automerge-Triggered-By: @pablogsal
* bpo-40939: Remove the old parser (GH-20768)Pablo Galindo2020-06-1153-35928/+24397
| | | This commit removes the old parser, the deprecated parser module, the old parser compatibility flags and environment variables and all associated support code and documentation.
* bpo-40275: Move TransientResource to test_urllib2net (GH-20812)Victor Stinner2020-06-114-48/+37
| | | | | | Move TransientResource, time_out, socket_peer_reset and ioerror_peer_reset from test.support to test_urllib2net. Remove "import errno" from test.support.
* bpo-40939: Remove PEG parser easter egg (__new_parser__) (#20802)Lysandros Nikolaou2020-06-114-47/+10
| | | It no longer serves a purpose (there's only one parser) and having "new" in any name will eventually look odd. Also, it impinges on a potential sub-namespace, `__new_...__`.
* bpo-40275: Add warnings_helper submodule in test.support (GH-20797)Hai Shi2020-06-113-267/+288
|
* bpo-40275: test.supports imports lazily fnmatch, glob, struct (GH-20810)Victor Stinner2020-06-111-3/+4
|
* bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807)Victor Stinner2020-06-114-13/+23
| | | | | | | | | | | Followup of bpo-40854, there is one remaining usage of PLATLIBDIR which should be replaced by config->platlibdir. test_sys checks that sys.platlibdir attribute exists and is a string. Update Makefile: getpath.c and sysmodule.c no longer need PLATLIBDIR macro, PyConfig.platlibdir member is used instead. Co-authored-by: Sandro Mani <manisandro@gmail.com>
* bpo-34401: Fix test_gdb for HP GDB version string (GH-20804)Victor Stinner2020-06-112-1/+3
| | | | | | | | The GDB provided by HPE on HP-UX contains a modified version string. Therefore the tests fail. Adapt the regex to match that string. Patch by Michael Osipov. Co-Authored-by: Michael Osipov <michael.osipov@siemens.com>
* bpo-40939: Generate keyword.py using the new parser (GH-20800)Lysandros Nikolaou2020-06-116-9/+88
|
* bpo-40925: Remove unused stack macro SET_VALUE (GH-20783)Dong-hee Na2020-06-111-1/+0
|
* Collections module reformatting and minor code refactoring (GH-20772)Raymond Hettinger2020-06-111-91/+271
|
* bpo-40847: Consider a line with only a LINECONT a blank line (GH-20769)Lysandros Nikolaou2020-06-104-1/+27
| | | | | | | | | | A line with only a line continuation character should be considered a blank line at tokenizer level so that only a single NEWLINE token gets emitted. The old parser was working around the issue, but the new parser threw a `SyntaxError` for valid input. For example, an empty line following a line continuation character was interpreted as a `SyntaxError`. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-40275: Add import_helper submodule in test.support (GH-20794)Hai Shi2020-06-103-330/+359
|
* Restrict co_code to be under INT_MAX in codeobject (GH-20628)Ammar Askar2020-06-102-3/+11
|
* bpo-40895: Update weakref documentation to remove old warnings (GH-20687)Daniel Fortunov2020-06-101-16/+0
| | | | | | | | | | The doccumentation at https://docs.python.org/3.10/library/weakref.html cautions that the `WeakKeyDictionary` and `WeakValueDictionary` are susceptible to the problem of dictionary mutation during iteration. These notes present the user with a problem that has no easy solution. I dug into the implementation and found that fortunately, Antoine Pitrou already addressed this challenge (10 years ago!) by introducing an `_IterationGuard` context manager to the implementation, which delays mutation while an iteration is in progress. I asked for confirmation and @pitrou agreed that these notes could be removed: https://github.com/python/cpython/commit/c1baa601e2b558deb690edfdf334fceee3b03327#commitcomment-39514438
* bpo-39465: Use _PyInterpreterState_GET() (GH-20788)Victor Stinner2020-06-107-62/+55
| | | | | | | | | | | | Replace _PyThreadState_GET() with _PyInterpreterState_GET() in: * get_small_int() * gcmodule.c: add also get_gc_state() function * _PyTrash_deposit_object() * _PyTrash_destroy_chain() * warnings_get_state() * Py_GetRecursionLimit() Cleanup listnode.c: add 'parser' variable.
* bpo-40927: Fix test_binhex when run twice (GH-20764)Victor Stinner2020-06-102-1/+3
| | | | test_binhex now uses import_fresh_module() to ensure that it raises DeprecationWarning each time.
* _PyPreConfig_Read() decodes argv at each iteration (GH-20786)Victor Stinner2020-06-101-9/+11
| | | | _PyPreConfig_Read() now calls _PyPreCmdline_SetArgv() at each iteration, so bytes strings are decoded from the new encoding.
* bpo-40826: Fix test_repl.test_close_stdin() on Windows (GH-20779)Victor Stinner2020-06-106-49/+81
| | | | | | | | | | | | test_repl.test_close_stdin() now calls support.suppress_msvcrt_asserts() to fix the test on Windows. * Move suppress_msvcrt_asserts() from test.libregrtest.setup to test.support. Make its verbose parameter optional: verbose=False by default. * Add msvcrt.GetErrorMode(). * SuppressCrashReport now uses GetErrorMode() and SetErrorMode() of the msvcrt module, rather than using ctypes. * Remove also an unused variable (deadline) in wait_process().
* bpo-40943: Replace PY_FORMAT_SIZE_T with "z" (GH-20781)Victor Stinner2020-06-1011-101/+89
| | | | | | | The PEP 353, written in 2005, introduced PY_FORMAT_SIZE_T. Python no longer supports macOS 10.4 and Visual Studio 2010, but requires more recent macOS and Visual Studio versions. In 2020 with Python 3.10, it is now safe to use directly "%zu" to format size_t and "%zi" to format Py_ssize_t.
* bpo-40703: Let PyType_FromSpec() set "type.__module__" only if it is not set ↵scoder2020-06-102-15/+22
| | | | yet. (GH-20273)
* bpo-36543: Revert "bpo-36543: Remove the xml.etree.cElementTree module." ↵Serhiy Storchaka2020-06-105-5/+21
| | | | | | | (GH-20117) * Revert "bpo-36543: Remove the xml.etree.cElementTree module. (GH-19108)" This reverts commit b33e52511a59c6da7132c226b7f7489b092a33eb.
* Raise specialised syntax error for invalid lambda parameters (GH-20776)Pablo Galindo2020-06-103-426/+732
|