summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45445: Fail if an invalid X-option is provided in the command line ↵Pablo Galindo Salgado2021-10-131-0/+2
| | | | (GH-28823)
* bpo-45386: Handle strftime's ValueError graciously in xmlrpc.client (GH-28765)rtobar2021-10-131-0/+3
| | | | | | | | | | | At import time, the xmlrpc.client module uses different date formats to test strftime so it can format years with 4 digits consistently. Depending on the underlying C library and its strftime implementation some of these calls can result in ValueErrors, blocking the xmlrpc.client module from being imported. This commit changes the behavior of this bit of code to react to ValueError exceptions, treating the format that caused them as an non-viable option.
* bpo-24444: fix an error in argparse help when help for an option is blank ↵andrei kulakov2021-10-131-0/+2
| | | | (GH-28050)
* bpo-45239: Fix parsedate_tz when time has more than 2 dots in it (GH-28452)Ben Hoyt2021-10-131-0/+3
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45434: Remove pystrhex.h header file (GH-28923)Victor Stinner2021-10-131-0/+3
| | | | | | | | | | | | | | | Move Include/pystrhex.h to Include/internal/pycore_strhex.h. The header file only contains private functions. The following C extensions are now built with Py_BUILD_CORE_MODULE macro defined to get access to the internal C API: * _blake2 * _hashopenssl * _md5 * _sha1 * _sha3 * _ssl * binascii
* bpo-45340: Don't create object dictionaries unless actually needed (GH-28802)Mark Shannon2021-10-131-0/+3
| | | | | | | | | | | | | | * Never change types' cached keys. It could invalidate inline attribute objects. * Lazily create object dictionaries. * Update specialization of LOAD/STORE_ATTR. * Don't update shared keys version for deletion of value. * Update gdb support to handle instance values. * Rename SPLIT_KEYS opcodes to INSTANCE_VALUE.
* bpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918)Terry Jan Reedy2021-10-131-0/+2
| | | To avoid error, add either space or parentheses.
* bpo-45405: Prevent ``internal configure error`` when running ``configure`` ↵David Bohman2021-10-131-0/+2
| | | | | | | | with recent versions of non-Apple clang. (#28845) Change the configure logic to function properly on macOS when the compiler outputs a platform triplet for option --print-multiarch. Co-authored-by: Ned Deily <nad@python.org>
* Fix spelling in Misc (GH-28858)1809092021-10-121-1/+1
|
* bpo-45433: Do not link libpython against libcrypt (GH-28881)Mike Gilbert2021-10-111-0/+1
| | | | Save/restore LIBS when calling AC_SEARCH_LIBS(..., crypt). This avoid linking libpython with libcrypt.
* bpo-41123: Remove Py_UNICODE_COPY() and Py_UNICODE_FILL() (GH-28887)Victor Stinner2021-10-111-0/+4
|
* bpo-45434: Python.h no longer includes <stdlib.h> (GH-28888)Victor Stinner2021-10-111-0/+3
|
* bpo-45412: Remove Py_SET_ERRNO_ON_MATH_ERROR() macro (GH-28820)Victor Stinner2021-10-111-0/+9
| | | | | | | | | | | | | | | | | | | | | | Remove the following math macros using the errno variable: * Py_ADJUST_ERANGE1() * Py_ADJUST_ERANGE2() * Py_OVERFLOWED() * Py_SET_ERANGE_IF_OVERFLOW() * Py_SET_ERRNO_ON_MATH_ERROR() Create pycore_pymath.h internal header file. Rename Py_ADJUST_ERANGE1() and Py_ADJUST_ERANGE2() to _Py_ADJUST_ERANGE1() and _Py_ADJUST_ERANGE2(), and convert these macros to static inline functions. Move the following macros to pycore_pymath.h: * _Py_IntegralTypeSigned() * _Py_IntegralTypeMax() * _Py_IntegralTypeMin() * _Py_InIntegralTypeRange()
* bpo-20028: Empty escapechar/quotechar is not allowed for csv.Dialect (GH-28833)Dong-hee Na2021-10-111-0/+2
|
* bpo-45411: Update mimetypes.py (GH-28792)Josephine-Marie2021-10-111-0/+1
| | | .vtt and .srt files are common subtitle files, used by browsers.
* bpo-45416: Fix use of asyncio.Condition() with explicit Lock objects (GH-28850)Joongi Kim2021-10-101-0/+2
| | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Remove repeated 'the' in docs (GH-28852)1809092021-10-102-3/+3
|
* bpo-29410: Change the default hash algorithm to SipHash13. (GH-28752)Inada Naoki2021-10-101-0/+1
| | | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Co-authored-by: Christian Heimes <christian@python.org>
* bpo-27580: Add support of null characters in the csv module. (GH-28808)Serhiy Storchaka2021-10-091-0/+1
|
* bpo-20028: Improve error message of csv.Dialect when initializing (GH-28705)Dong-hee Na2021-10-091-0/+2
|
* bpo-10716: Migrating pydoc to html5. (GH-28651)Julien Palard2021-10-091-0/+3
|
* bpo-45410: libregrtest -jN writes stderr into stdout (GH-28819)Victor Stinner2021-10-081-0/+4
| | | | | | When libregrtest spawns a worker process, stderr is now written into stdout to keep messages order. Use a single pipe for stdout and stderr, rather than two pipes. Previously, messages were out of order which made analysis of buildbot logs harder
* bpo-45262, asyncio: Fix cache of the running loop holder (GH-28796)Matthias Reichl2021-10-071-0/+1
| | | Prevent use-after-free of running loop holder via cache.
* bpo-45408: Don't override previous tokenizer errors in the second parser ↵Pablo Galindo Salgado2021-10-071-0/+2
| | | | pass (GH-28812)
* bpo-45337: Use the realpath of the new executable when creating a venv on ↵Steve Dower2021-10-071-0/+4
| | | | Windows (GH-28663)
* bpo-45403: Fix test_sys.test_stdlib_dir() (GH-28785)Victor Stinner2021-10-071-0/+2
| | | | Fix test_sys.test_stdlib_dir() when Python is built outside the source tree: compare normalized paths.
* bpo-45402: Fix test_tools.test_sundry() (GH-28786)Victor Stinner2021-10-071-0/+3
| | | | Fix test_tools.test_sundry() when Python is built out of tree: fix how the freeze_modules.py tool locates the _freeze_module program.
* bpo-45400: Fix suggestion test of test_exceptions (GH-28783)Victor Stinner2021-10-071-0/+3
| | | | | Fix test_name_error_suggestions_do_not_trigger_for_too_many_locals() of test_exceptions if a directory name contains "a1" (like "Python-3.11.0a1"): use a stricter regular expression.
* bpo-35970: Add help flag to base64 module (GH-28774)Ammar Askar2021-10-071-0/+2
| | | This continues off rkuska's work from https://github.com/python/cpython/pull/11789 seeing as the patch wasn't updated to add tests.
* bpo-45385: Fix reference leak from descr_check (#28719)Dong-hee Na2021-10-071-0/+1
|
* bpo-45328: Avoid failure in OSs without TCP_NODELAY support (GH-28646)rtobar2021-10-061-0/+1
| | | | | Operating systems without support for TCP_NODELAY will raise an OSError when trying to set the socket option, but the show can still go on.
* [Misc] [Mac] Fix typos found using codespell (GH-28756)Christian Clauss2021-10-0613-34/+34
|
* bpo-40321: Add missing test, slightly expand documentation (GH-28760)Łukasz Langa2021-10-061-2/+2
|
* bpo-40116: Add insertion order bit-vector to dict values to allow dicts to ↵Mark Shannon2021-10-061-0/+4
| | | | share keys more freely. (GH-28520)
* bpo-40321: Support HTTP response status code 308 in urllib.request (#19588)Jochem Schulenklopper2021-10-061-0/+2
| | | | | | | | | | | * Support HTTP response status code 308 in urllib. HTTP response status code 308 is defined in https://tools.ietf.org/html/rfc7538 to be the permanent redirect variant of 307 (temporary redirect). * Update documentation to include http_error_308() * Add blurb for bpo-40321 fix Co-authored-by: Roland Crosby <roland@rolandcrosby.com>
* bpo-45343: Update bundled pip to 21.2.4 and setuptools to 58.1.0 (GH-28684)Illia Volochii2021-10-051-0/+1
|
* bpo-45020: Identify which frozen modules are actually aliases. (gh-28655)Eric Snow2021-10-051-0/+5
| | | | | | | In the list of generated frozen modules at the top of Tools/scripts/freeze_modules.py, you will find that some of the modules have a different name than the module (or .py file) that is actually frozen. Let's call each case an "alias". Aliases do not come into play until we get to the (generated) list of modules in Python/frozen.c. (The tool for freezing modules, Programs/_freeze_module, is only concerned with the source file, not the module it will be used for.) Knowledge of which frozen modules are aliases (and the identity of the original module) normally isn't important. However, this information is valuable when we go to set __file__ on frozen stdlib modules. This change updates Tools/scripts/freeze_modules.py to map aliases to the original module name (or None if not a stdlib module) in Python/frozen.c. We also add a helper function in Python/import.c to look up a frozen module's alias and add the result of that function to the frozen info returned from find_frozen(). https://bugs.python.org/issue45020
* Merge tag 'v3.11.0a1'Pablo Galindo2021-10-05480-1191/+5098
|\ | | | | | | Python 3.11.0a1
| * Python 3.11.0a1v3.11.0a1Pablo Galindo2021-10-05480-1191/+5098
| |
* | bpo-45324: Capture data in FrozenImporter.find_spec() to use in ↵Eric Snow2021-10-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | exec_module(). (gh-28633) Before this change we end up duplicating effort and throwing away data in FrozenImporter.find_spec(). Now we do the work once in find_spec() and the only thing we do in FrozenImporter.exec_module() is turn the raw frozen data into a code object and then exec it. We've added _imp.find_frozen(), add an arg to _imp.get_frozen_object(), and updated FrozenImporter. We've also moved some code around to reduce duplication, get a little more consistency in outcomes, and be more efficient. Note that this change is mostly necessary if we want to set __file__ on frozen stdlib modules. (See https://bugs.python.org/issue21736.) https://bugs.python.org/issue45324
* | bpo-44050: Extension modules can share state when they don't support ↵Hai Shi2021-10-051-0/+3
|/ | | | | sub-interpreters. (GH-27794) Automerge-Triggered-By: GH:encukou
* bpo-45375: Fix assertion failure due to searching for stdlib in unnormalised ↵Steve Dower2021-10-051-0/+2
| | | | paths (GH-28735)
* bpo-43760: Check for tracing using 'bitwise or' instead of branch in ↵Mark Shannon2021-10-051-0/+3
| | | | dispatch. (GH-28723)
* bpo-45371: Fix distutils' rpath support for clang (GH-28732)Christian Heimes2021-10-051-0/+3
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-44594: fix (Async)ExitStack handling of __context__ (gh-27089)John Belmonte2021-10-041-0/+3
| | | | | | | | | * bpo-44594: fix (Async)ExitStack handling of __context__ Make enter_context(foo()) / enter_async_context(foo()) equivalent to `[async] with foo()` regarding __context__ when an exception is raised. Previously exceptions would be caught and re-raised with the wrong context when explicitly overriding __context__ with None.
* Remove news entry without bpo issue number. (GH-28703)Julien Palard2021-10-031-1/+0
| | | | | I'm just removing an erroneous NEWS entry I previously merged. Automerge-Triggered-By: GH:JulienPalard
* bpo-45329: Fix freed memory access in pyexpat.c (GH-28649)TAGAMI Yukihiro2021-10-021-0/+2
|
* Makefile: Fix missing slashes (GH-28659)native-api2021-10-021-0/+1
|
* bpo-44687: Ensure BufferedReader objects with unread buffers can peek even ↵AngstyDuck2021-10-011-0/+1
| | | | when the underlying file is closed (GH-28457)
* bpo-41710: Fix PY_TIMEOUT_MAX on Windows (GH-28673)Victor Stinner2021-10-011-3/+0
| | | | | | | | | | WaitForSingleObject() accepts timeout in milliseconds in the range [0; 0xFFFFFFFE] (DWORD type). INFINITE value (0xFFFFFFFF) means no timeout. 0xFFFFFFFE milliseconds is around 49.7 days. PY_TIMEOUT_MAX is (0xFFFFFFFE * 1000) milliseconds on Windows, around 49.7 days. Partially revert commit 37b8294d6295ca12553fd7c98778be71d24f4b24.