summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next
Commit message (Collapse)AuthorAgeFilesLines
* gh-105375: Improve error handling in _ctypes (#105593)Erlend E. Aasland2023-06-111-0/+1
| | | | Prevent repeated PyLong_FromVoidPtr() from possibly overwriting the current exception.
* gh-105375: Improve error handling in PyUnicode_BuildEncodingMap() (#105491)Erlend E. Aasland2023-06-111-0/+2
| | | Bail on first error to prevent exceptions from possibly being overwritten.
* gh-105375: Improve PyErr_WarnExplicit() error handling (#105610)Erlend E. Aasland2023-06-111-0/+2
| | | | Bail on first error to prevent exceptions from possibly being overwritten.
* bpo-44185: Added close() to mock_open __exit__ (#26902)Samet YASLAN2023-06-111-0/+3
|
* gh-102676: Add more convenience properties to `dis.Instruction` (#103969)Tomas R2023-06-111-0/+3
| | | | | | | | Adds start_offset, cache_offset, end_offset, baseopcode, baseopname, jump_target and oparg to dis.Instruction. Also slightly improves the disassembly output by allowing opnames to overflow into the space reserved for opargs.
* gh-105375: Improve error handling in the builtins extension module (#105585)Erlend E. Aasland2023-06-111-0/+2
|
* gh-105375: Improve _decimal error handling (#105605)Erlend E. Aasland2023-06-111-0/+1
| | | Fix a bug where an exception could end up being overwritten.
* gh-105375: Harden _datetime initialisation (#105604)Erlend E. Aasland2023-06-111-0/+2
| | | Improve error handling so init bails on the first exception.
* gh-105375: Improve array.array exception handling (#105594)Erlend E. Aasland2023-06-111-0/+2
| | | Fix a bug where 'tp_richcompare' could end up overwriting an exception.
* gh-105375: Harden _ssl initialisation (#105599)Erlend E. Aasland2023-06-111-0/+2
| | | | Add proper error handling to prevent reference leaks and overwritten exceptions.
* gh-80480: Emit DeprecationWarning for array's 'u' type code (#95760)Hugo van Kemenade2023-06-111-0/+2
|
* gh-105375: Improve error handling in `zoneinfo` module (#105586)Nikita Sobolev2023-06-091-0/+1
| | | | | | Fix bugs where exceptions could end up being overwritten because of deferred error handling. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* Docs: fix formatting in 2023-06-09-12-59-18 NEWS item (#105607)Erlend E. Aasland2023-06-091-2/+2
|
* gh-105549: Tokenize separately NUMBER and NAME tokens and allow 0-prefixed ↵Pablo Galindo Salgado2023-06-091-0/+2
| | | | literals (#105555)
* gh-105375: Improve error handling in _elementtree (#105591)Erlend E. Aasland2023-06-091-0/+1
| | | Fix bugs where exceptions could end up being overwritten.
* gh-105375: Improve posix error handling (#105592)Erlend E. Aasland2023-06-091-0/+2
| | | Fix a bug where an IndexError could end up being overwritten.
* gh-105375: Improve errnomodule error handling (#105590)Erlend E. Aasland2023-06-091-0/+1
| | | | Bail immediately if an exception is set, to prevent exceptions from being overwritten.
* gh-105375: Improve _pickle error handling (#105475)Erlend E. Aasland2023-06-091-0/+1
| | | | Error handling was deferred in some cases, which could potentially lead to exceptions being overwritten.
* gh-105375: Improve error handling in compiler_enter_scope() (#105494)Erlend E. Aasland2023-06-091-0/+1
|
* gh-105564: Don't include artificial newlines in the line attribute of tokens ↵Pablo Galindo Salgado2023-06-091-0/+2
| | | | (#105565)
* gh-105497: [Enum] Fix Flag inversion when alias/mask members exist. (GH-105542)Ethan Furman2023-06-091-0/+1
| | | When inverting a Flag member (or boundary STRICT), only consider other canonical flags; when inverting an IntFlag member (or boundary KEEP), also consider aliases.
* gh-94924: support `inspect.iscoroutinefunction` in ↵Thomas Grainger2023-06-091-0/+1
| | | | | | | | | | `create_autospec(async_def)` (#94962) * support inspect.iscoroutinefunction in create_autospec(async_def) * test create_autospec with inspect.iscoroutine and inspect.iscoroutinefunction * test when create_autospec functions check their signature
* gh-105545: Remove deprecated `MacOSXOSAScript._name` (gh-105546)Nikita Sobolev2023-06-091-0/+1
|
* gh-105396: Deprecate PyImport_ImportModuleNoBlock() function (#105397)Victor Stinner2023-06-091-0/+3
| | | | Deprecate the PyImport_ImportModuleNoBlock() function which is just an alias to PyImport_ImportModule() since Python 3.3.
* gh-105332: [Enum] Fix unpickling flags in edge-cases (GH-105348)Nikita Sobolev2023-06-081-0/+1
| | | | | * revert enum pickling from by-name to by-value Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* gh-104310: Rename the New Function in importlib.util (gh-105255)Eric Snow2023-06-081-0/+7
| | | | | | | | | | | The original name wasn't as clear as it could have been. This change includes the following: * rename the function * change the default value for "disable_check" to False * add clues to the docstring that folks should probably not use the function --------- Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* GH-105229: Remove remaining two-codeunit superinstructions (GH-105326)Mark Shannon2023-06-081-0/+3
| | | | * Remove LOAD_CONST__LOAD_FAST and LOAD_FAST__LOAD_CONST superinstructions.
* gh-104635: Eliminate redundant STORE_FAST instructions in the compiler ↵Dong-hee Na2023-06-071-0/+2
| | | | (gh-105320)
* GH-104996: Defer joining of `pathlib.PurePath()` arguments. (GH-104999)Barney Gale2023-06-071-0/+2
| | | | Joining of arguments is moved to `_load_parts`, which is called when a normalized path is needed.
* gh-105435: Fix spurious NEWLINE token if file ends with comment without a ↵Pablo Galindo Salgado2023-06-071-0/+2
| | | | newline (#105442)
* gh-105375: Improve error handling in sqlite3 collation callback (#105412)Erlend E. Aasland2023-06-071-0/+2
| | | Check for error after each call to PyUnicode_FromStringAndSize().
* gh-105390: Correctly raise TokenError instead of SyntaxError for tokenize ↵Pablo Galindo Salgado2023-06-071-0/+3
| | | | errors (#105399)
* gh-104692: Include commoninstall as a prerequisite for bininstall (#104693)Jeffery To2023-06-071-0/+6
| | | | | | | | | This ensures that `commoninstall` is completed before `bininstall` is started when parallel builds are used (`make -j install`), and so the `python3` symlink is only installed after all standard library modules are installed. Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
* GH-102613: Fast recursive globbing in `pathlib.Path.glob()` (GH-104512)Barney Gale2023-06-061-0/+4
| | | | | | | | | | | | | | This commit introduces a 'walk-and-match' strategy for handling glob patterns that include a non-terminal `**` wildcard, such as `**/*.py`. For this example, the previous implementation recursively walked directories using `os.scandir()` when it expanded the `**` component, and then **scanned those same directories again** when expanded the `*.py` component. This is wasteful. In the new implementation, any components following a `**` wildcard are used to build a `re.Pattern` object, which is used to filter the results of the recursive walk. A pattern like `**/*.py` uses half the number of `os.scandir()` calls; a pattern like `**/*/*.py` a third, etc. This new algorithm does not apply if either: 1. The *follow_symlinks* argument is set to `None` (its default), or 2. The pattern contains `..` components. In these cases we fall back to the old implementation. This commit also replaces selector classes with selector functions. These generators directly yield results rather calling through to their successors. A new internal `Path._glob()` method takes care to chain these generators together, which simplifies the lazy algorithm and slightly improves performance. It should also be easier to understand and maintain.
* gh-105382: Remove urllib.request cafile parameter (#105384)Victor Stinner2023-06-061-0/+3
| | | | Remove cafile, capath and cadefault parameters of the urllib.request.urlopen() function, deprecated in Python 3.6.
* gh-105376: Remove logging.Logger.warn() method (#105377)Victor Stinner2023-06-061-0/+4
|
* gh-104783: Remove locale.resetlocale() function (#104784)Victor Stinner2023-06-061-0/+2
|
* gh-105259: Ensure we don't show newline characters for trailing NEWLINE ↵Pablo Galindo Salgado2023-06-061-0/+2
| | | | tokens (#105364)
* gh-105268: Remove _PyGC_FINALIZED() macro (#105350)Victor Stinner2023-06-061-0/+3
| | | | | Remove the old private, undocumented and untested _PyGC_FINALIZED() macro which was kept for backward compatibility with Python 3.8 and older.
* gh-90005: Don't link with libbsd if not needed (#105236)Erlend E. Aasland2023-06-061-0/+1
| | | | The regression was introduced with commit 5b946cada. Restore pre gh-29696 behaviour.
* gh-105292: Add option to make ↵Irit Katriel2023-06-061-0/+2
| | | | | | | traceback.TracebackException.format_exception_only recurse into exception groups (#105294) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-104399: Use newer libtommath APIs when necessary (GH-104407)Christopher Chavez2023-06-061-0/+4
|
* gh-105324: Fix tokenize module main function for stdin (#105325)Pablo Galindo Salgado2023-06-051-0/+2
|
* gh-89412: Add missing attributes (added in 3.10) to traceback module docs ↵Jakub Kuczys2023-06-051-0/+2
| | | | (#105046)
* gh-105280: Ensure `isinstance([], collections.abc.Mapping)` always evaluates ↵Alex Waygood2023-06-051-0/+4
| | | | to `False` (#105281)
* gh-105237: Allow calling `issubclass(X, typing.Protocol)` again (#105239)Alex Waygood2023-06-051-0/+2
|
* gh-105164: Detect annotations inside match blocks (#105177)Jelle Zijlstra2023-06-051-0/+2
|
* GH-105229: Replace some superinstructions with single instruction ↵Mark Shannon2023-06-051-0/+1
| | | | equivalent. (GH-105230)
* gh-103558: Add coverage tests for argparse (#103570)Tian Gao2023-06-051-0/+1
| | | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>
* gh-98963: Restore the ability to have a dict-less property. (#105262)Gregory P. Smith2023-06-051-0/+4
| | | | | Ignore doc string assignment failures in `property` as has been the behavior of all past Python releases.