summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-43084: Return bool instead of int from curses.window.enclose() (GH-24398)Serhiy Storchaka2021-04-055-19/+18
|
* bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25181)Inada Naoki2021-04-0511-50/+55
| | | | | | * Fix test_shutil * Fix test_imp * Fix test_import * Fix test_importlib
* bpo-43651: PEP 597: Fix EncodingWarning in test_filecmp (GH-25159)Inada Naoki2021-04-051-6/+6
|
* bpo-43651: PEP 597: Fix test_email (GH-25158)Inada Naoki2021-04-052-27/+27
|
* bpo-41370: Add note about ForwardRefs and PEP585 generic types in docs (#25183)Ken Jin2021-04-041-2/+7
|
* bpo-24160: Fix test_pdb refleaks failure (GH-25182)Irit Katriel2021-04-041-3/+3
|
* bpo-27129: Update magic numbers and bootstrapping for GH-25069 (GH-25172)Dennis Sweeney2021-04-043-2/+3
| | | | | | | * Update magic numbers and bootstrapping for GH-25069 * add blurb Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25171)Inada Naoki2021-04-046-14/+14
| | | | | | | | | | | * Fix test_float * Fix _osx_support * Fix test_fstring * Fix test_gc * Fix test_gzip * Fix test_hashlib * Fix unrelated whitespace issue Co-authored-by: Ned Deily <nad@python.org>
* bpo-43325: Add FAQ entry for identity tests (GH-25168)Raymond Hettinger2021-04-042-3/+89
|
* bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25145)Inada Naoki2021-04-0419-75/+78
| | | | | | | | | | | | | | | | | | | * test_asyncio * test_bz2 * test_math * test_cmath * test_cmd_line * test_cmd_line_script * test_compile * test_contextlib * test_profile * ctypes/test/test_find * test_multiprocessing * test_configparser * test_csv * test_dbm_dumb * test_decimal * test_difflib * os.fdopen() calls io.text_encoding() to emit EncodingWarning for right place.
* bpo-43720: Update import-related stdlib deprecation messages to say they ↵Brett Cannon2021-04-035-7/+16
| | | | will be removed in Python 3.12 (GH-25167)
* Replace broken example code with correct simpler code. (GH-25162)Raymond Hettinger2021-04-031-2/+2
| | | | | | The open() was missing 'w' to indicate it was in a write-mode. Even then, the open().close() operation was distracting because it is an unusual way to "touch" as file. Using os.remove() instead is simpler and less distracting.
* Add more tests for the descriptor tutorial (GH-25164)Raymond Hettinger2021-04-031-7/+57
|
* bpo-43705: Document that SyntaxError's offsets are 1-indexed (GH-25153)Ammar Askar2021-04-021-3/+19
| | | | | Changed the inline mentions of the attributes into a proper attribute list like `SystemExit` has. Automerge-Triggered-By: GH:gvanrossum
* bpo-43672: raise ImportWarning when calling find_loader() (GH-25119)Brett Cannon2021-04-0213-618/+612
|
* bpo-24160: Fix breakpoints persistence across multiple pdb sessions (GH-21989)Irit Katriel2021-04-024-13/+144
|
* bpo-31956: Add start and stop parameters to array.index() (GH-25059)Zackery Spytz2021-04-026-12/+87
| | | Co-Authored-By: Anders Lorentsen <Phaqui@gmail.com>
* bpo-41111: xxlimited.c defines Py_LIMITED_API (GH-25151)Victor Stinner2021-04-025-11/+7
| | | | | | xxlimited.c and xxlimited_35.c now define the Py_LIMITED_API macro, rather than having to do it in the build recipe. Co-authored-by: Hai Shi <shihai1992@gmail.com>
* bpo-43688: Support "make regen-limited-abi" in debug mode (GH-25133)Victor Stinner2021-04-021-5/+0
|
* bpo-43688: Support the limited C API in debug mode (GH-25131)Victor Stinner2021-04-026-25/+82
| | | | | | | | | | | | | The limited C API is now supported if Python is built in debug mode (if the Py_DEBUG macro is defined). In the limited C API, the Py_INCREF() and Py_DECREF() functions are now implemented as opaque function calls, rather than accessing directly the PyObject.ob_refcnt member, if Python is built in debug mode and the Py_LIMITED_API macro targets Python 3.10 or newer. It became possible to support the limited C API in debug mode because the PyObject structure is the same in release and debug mode since Python 3.8 (see bpo-36465). The limited C API is still not supported in the --with-trace-refs special build (Py_TRACE_REFS macro).
* bpo-43687: Py_Initialize() creates singletons earlier (GH-25147)Victor Stinner2021-04-028-85/+128
| | | | | Reorganize pycore_interp_init() to initialize singletons before the the first PyType_Ready() call. Fix an issue when Python is configured using --without-doc-strings.
* Document PyCode_Addr2Line function. (GH-25111)Mark Shannon2021-04-021-0/+8
| | | | | * Document PyCode_Addr2Line function. * Clarify when to use PEP 626 line iterators.
* bpo-43510: Fix emitting EncodingWarning from _io module. (GH-25146)Inada Naoki2021-04-022-13/+17
| | | I forget to check PyErr_WarnEx() return value. But it will fail when -Werror is used.
* bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25142)Inada Naoki2021-04-0211-31/+36
| | | | | | | | | | | | | * test__xxsubinterpreters * test_builtin * test_doctest * test_exceptions * test_opcodes * test_support * test_argparse * test_baseexception * test_bdb * test_bool * test_asdl_parser
* bpo-43700: Replace Zulip badge with Discourse badge (GH-25141)Erlend Egeberg Aasland2021-04-021-3/+3
| | | Automerge-Triggered-By: GH:zware
* bpo-43651: Fix test_compileall with PEP 597 (GH-25128)Inada Naoki2021-04-023-9/+9
|
* 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
|