summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-43651: Fix EncodingWarning in lib2to3/pgen2/pgen.py (GH-25127)Inada Naoki2021-04-011-1/+1
|
* bpo-43651: Fix EncodingWarning in test_warnings (GH-25126)Inada Naoki2021-04-011-3/+3
|
* bpo-26053: Fix test_pdb.test_issue26053() (GH-25139)Irit Katriel2021-04-011-3/+3
|
* bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (#25123)Zackery Spytz2021-04-011-1/+1
| | | It should be PyMethod_Type, not Py_MethodType.
* bpo-26053: Fix args echoed by pdb run command (#22033)Irit Katriel2021-04-013-1/+15
|
* bpo-27129: Use instruction offsets, not byte offsets, in bytecode and ↵Mark Shannon2021-04-0114-4562/+4561
| | | | | | | internally. (GH-25069) * Use instruction offset, rather than bytecode offset. Streamlines interpreter dispatch a bit, and removes most EXTENDED_ARGs for jumps. * Change some uses of PyCode_Addr2Line to PyFrame_GetLineNumber
* bpo-43688: Fix Py_LIMITED_API version of xxlimited (GH-25135)Victor Stinner2021-04-013-6/+6
| | | | xxlimited targets Python 3.10, not Python 3.16: fix the hexadecimal version number used in the Py_LIMITED_API macro.
* bpo-43690: stable_abi.py no longer parses macros (GH-25136)Victor Stinner2021-04-012-33/+1
| | | | | | | | The stable_abi.py script no longer parse macros. Macro targets can be static inline functions which are not part of the stable ABI, only part of the limited C API. Run "make regen-limited-abi" to exclude PyType_HasFeature from Doc/data/stable_abi.dat.
* bpo-43688: Run make regen-limited-abi (GH-25134)Victor Stinner2021-04-011-0/+2
|
* Fix typos in 3.10 "What's new" (GH-25104)Don Kirkby2021-04-011-4/+4
|
* When printing stats, move radix tree info to its own section. (GH-25125)Tim Peters2021-04-011-9/+14
| | | | | | When printing stats, move radix tree info to its own section. Restore that the breakdown of bytes in arenas exactly accounts for the total of arena bytes allocated. Add an assert so that invariant doesn't break again.
* bpo-43651: Fix EncodingWarning in test_io (GH-25097)Inada Naoki2021-04-011-67/+78
|
* bpo-43651: Fix EncodingWarning in test_file and test_file_eintr (GH-25109)Inada Naoki2021-04-012-2/+2
|
* bpo-42955: Add _overlapped to sys.stdlib_module_names (GH-25122)Victor Stinner2021-04-012-0/+2
|
* Enum: add (re)import of Flag for doctests (GH-25118)Ethan Furman2021-03-311-4/+4
| | | Fix issue with CI doctest forgetting that ``Flag`` had already been imported.
* Disambiguate that -m also terminates the option list in the manpage. (GH-25100)Julien Palard2021-03-311-1/+2
|
* bpo-37945: Fix test_locale.test_getsetlocale_issue1813() (#25110)Victor Stinner2021-03-312-1/+9
| | | Skip the test if setlocale() fails.
* Document GH-24624Łukasz Langa2021-03-311-0/+3
|
* bpo-43179: Generalise alignment for optimised string routines (GH-24624)Jessica Clarke2021-03-318-32/+97
| | | | | | | | | | | | | | | | | | | | | | | | | * Remove m68k-specific hack from ascii_decode On m68k, alignments of primitives is more relaxed, with 4-byte and 8-byte types only requiring 2-byte alignment, thus using sizeof(size_t) does not work. Instead, use the portable alternative. Note that this is a minimal fix that only relaxes the assertion and the condition for when to use the optimised version remains overly strict. Such issues will be fixed tree-wide in the next commit. NB: In C11 we could use _Alignof(size_t) instead, but for compatibility we use autoconf. * Optimise string routines for architectures with non-natural alignment C only requires that sizeof(x) is a multiple of alignof(x), not that the two are equal. Thus anywhere where we optimise based on alignment we should be using alignof(x) not sizeof(x). This is more annoying than it would be in C11 where we could just use _Alignof(x) (and alignof(x) in C++11), but since we still require only C99 we must plumb the information all the way from autoconf through the various typedefs and defines.
* Revert "bpo-43510: PEP 597: Accept `encoding="locale"` in binary mode ↵Inada Naoki2021-03-313-14/+2
| | | | | (GH-25103)" (#25108) This reverts commit ff3c9739bd69aa8b58007e63c9e40e6708b4761e.
* bpo-43510: PEP 597: Accept `encoding="locale"` in binary mode (GH-25103)Inada Naoki2021-03-313-2/+14
| | | | It make `encoding="locale"` usable everywhere `encoding=None` is allowed.
* bpo-42225: IDLE - document two unix-related problems. (#25078)Terry Jan Reedy2021-03-313-9/+39
| | | | 1. Bad IP masquerade rules can prevent startup. 2. X cannot handle some complex colored chars.
* bpo-40066: Enum: modify `repr()` and `str()` (GH-22392)Ethan Furman2021-03-3119-1373/+2107
| | | | | | | | | * Enum: streamline repr() and str(); improve docs - repr() is now ``enum_class.member_name`` - stdlib global enums are ``module_name.member_name`` - str() is now ``member_name`` - add HOW-TO section for ``Enum`` - change main documentation to be an API reference
* bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751)Alex Prengère2021-03-304-1/+7
|
* bpo-41369: Finish updating the vendored libmpdec to version 2.5.1 (GH-24962)Antoine Pitrou2021-03-3026-117/+1970
| | | | | Complete the update to libmpdec-2.5.1. Co-authored-by: Stefan Krah <skrah@bytereef.org>
* bpo-42134: Raise ImportWarning when calling find_module() in the import ↵Brett Cannon2021-03-309-962/+1012
| | | | system (GH-25044)
* bpo-43125: Fix: return expected type (str), not original value (bytes) in ↵Grégory Starck2021-03-303-3/+3
| | | | email/base64mime.py::body_encode (GH-24476)
* bpo-43637: Fix a possible memory leak in winreg.SetValueEx() (GH-25038)Zackery Spytz2021-03-301-0/+1
|
* bpo-33164: blake2: Fix Coverity scan (GH-25060)Inada Naoki2021-03-304-4/+4
|
* bpo-37448: Use radix tree for pymalloc address_in_range(). (GH-14474)Neil Schemenauer2021-03-302-5/+351
| | | | | | | | The radix tree approach is a relatively simple and memory sanitary alternative to the old (slightly) unsanitary address_in_range(). To disable the radix tree map, set a preprocessor flag as follows: -DWITH_PYMALLOC_RADIX_TREE=0. Co-authored-by: Tim Peters <tim.peters@gmail.com>
* bpo-43631: Update to OpenSSL 1.1.1k (GH-25024)Christian Heimes2021-03-3011-16/+17
| | | | | | | | | | - [x] Build OpenSSL 1.1.1k for macOS - [x] Build OpenSSL 1.1.1k for Windows I have also updated multissl tester and various CI configurations to use latest OpenSSL. The versions were all over the place. Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* Fix tokenizer error when raw decoding null bytes (GH-25080)Pablo Galindo2021-03-291-1/+4
|
* bpo-43660: Fix crash when displaying exceptions with custom values for ↵Pablo Galindo2021-03-293-1/+20
| | | | sys.stderr (GH-25075)
* bpo-43659: Fix test_curses on AIX (GH-25074)Michael Felt2021-03-291-0/+1
| | | | | | curses.update_lines_cols() is only defined when the curses library provides either resizeterm() or resize_term() functions which are optional and are not provided on AIX.
* bpo-35930: Raising an exception raised in a "future" instance will create ↵Jesús Cea2021-03-292-15/+25
| | | | | | | reference cycles (#24995) Before: https://lists.es.python.org/pipermail/general/attachments/20201229/0c14bc58/attachment-0002.png After: https://lists.es.python.org/pipermail/general/attachments/20201229/0c14bc58/attachment-0003.png
* bpo-43648: Remove redundant datefmt option in logging file config (GH-25051)Harry2021-03-291-1/+0
| | | | | [bpo-43648](): Remove redundant datefmt option in logging file config Automerge-Triggered-By: GH:vsajip
* bpo-43433: Preserve query and fragment in the URL of the server in ↵Serhiy Storchaka2021-03-293-3/+45
| | | | ServerProxy. (GH-25057)
* bpo-40645: Fix reference leak in the _hashopenssl extension (GH-25063)Pablo Galindo2021-03-292-2/+5
|
* bpo-42988: Remove the pydoc getfile feature (GH-25015)Victor Stinner2021-03-293-24/+4
| | | | | | | CVE-2021-3426: Remove the "getfile" feature of the pydoc module which could be abused to read arbitrary files on the disk (directory traversal vulnerability). Moreover, even source code of Python modules can contain sensitive data like passwords. Vulnerability reported by David Schwörer.
* bpo-43510: Implement PEP 597 opt-in EncodingWarning. (GH-19481)Inada Naoki2021-03-2932-18/+366
| | | | | | | | | | | See [PEP 597](https://www.python.org/dev/peps/pep-0597/). * Add `-X warn_default_encoding` and `PYTHONWARNDEFAULTENCODING`. * Add EncodingWarning * Add io.text_encoding() * open(), TextIOWrapper() emits EncodingWarning when encoding is omitted and warn_default_encoding is enabled. * _pyio.TextIOWrapper() uses UTF-8 as fallback default encoding used when failed to import locale module. (used during building Python) * bz2, configparser, gzip, lzma, pathlib, tempfile modules use io.text_encoding(). * What's new entry
* bpo-25643: Refactor the C tokenizer into smaller, logical units (GH-25050)Pablo Galindo2021-03-284-359/+353
|
* bpo-31907: [doc] clarify that str.format() does not support arbitrary ↵Irit Katriel2021-03-281-2/+2
| | | | expressions (#25053)
* bpo-43644: Add docs for importlib.resources.as_file. (#25048)Jason R. Coombs2021-03-281-0/+16
|
* bpo-43562: fix test_ssl to skip on unreachable network (GH-24937)Carl Meyer2021-03-271-0/+2
| | | This test checks result code of the connection directly, so it never raises an exception that can be suppressed by `support.transient_internet`. Directly support skipping the test in case of unreachable network.
* bpo-39231: correct tutorial annotations section (GH-25029)Irit Katriel2021-03-271-1/+1
|
* bpo-43466: Unsupported static build hack (GH-25002)Christian Heimes2021-03-271-13/+37
| | | | | | Add undocumented hack to statically link ssl and hashlib modules with OpenSSL. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-39616: clarify SSLContext.check_hostname effect (GH-18484)Ville Skyttä2021-03-271-1/+1
| | | | | It doesn't actually affect whether match_hostname() is called (it never is in this context any longer), but whether hostname verification occurs in the first place.
* bpo-40645: use C implementation of HMAC (GH-24920)Christian Heimes2021-03-276-124/+267
| | | | | | - [x] fix tests - [ ] add test scenarios for old/new code. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-43617: Check autoconf-archive package in configure.ac (GH-25016)Christian Heimes2021-03-276-216/+225
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-43636: Validate the version tag in _PyType_Lookup (GH-25032)Pablo Galindo2021-03-271-1/+3
|