| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Prevent repeated PyLong_FromVoidPtr() from possibly overwriting the
current exception.
|
|
|
| |
Bail on first error to prevent exceptions from possibly being overwritten.
|
|
|
|
| |
Bail on first error to prevent exceptions from possibly being
overwritten.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
Fix a bug where an exception could end up being overwritten.
|
|
|
| |
Improve error handling so init bails on the first exception.
|
|
|
| |
Fix a bug where 'tp_richcompare' could end up overwriting an exception.
|
|
|
|
| |
Add proper error handling to prevent reference leaks and overwritten
exceptions.
|
| |
|
|
|
|
|
|
| |
Fix bugs where exceptions could end up being overwritten
because of deferred error handling.
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
|
| |
|
|
|
|
| |
literals (#105555)
|
|
|
| |
Fix bugs where exceptions could end up being overwritten.
|
|
|
| |
Fix a bug where an IndexError could end up being overwritten.
|
|
|
|
| |
Bail immediately if an exception is set, to prevent exceptions from
being overwritten.
|
|
|
|
| |
Error handling was deferred in some cases, which could potentially lead
to exceptions being overwritten.
|
| |
|
|
|
|
| |
(#105565)
|
|
|
| |
When inverting a Flag member (or boundary STRICT), only consider other canonical flags; when inverting an IntFlag member (or boundary KEEP), also consider aliases.
|
|
|
|
|
|
|
|
|
|
| |
`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
|
| |
|
|
|
|
| |
Deprecate the PyImport_ImportModuleNoBlock() function which is just
an alias to PyImport_ImportModule() since Python 3.3.
|
|
|
|
|
| |
* revert enum pickling from by-name to by-value
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
* Remove LOAD_CONST__LOAD_FAST and LOAD_FAST__LOAD_CONST superinstructions.
|
|
|
|
| |
(gh-105320)
|
|
|
|
| |
Joining of arguments is moved to `_load_parts`, which is called when a
normalized path is needed.
|
|
|
|
| |
newline (#105442)
|
|
|
| |
Check for error after each call to PyUnicode_FromStringAndSize().
|
|
|
|
| |
errors (#105399)
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Remove cafile, capath and cadefault parameters of the
urllib.request.urlopen() function, deprecated in Python 3.6.
|
| |
|
| |
|
|
|
|
| |
tokens (#105364)
|
|
|
|
|
| |
Remove the old private, undocumented and untested _PyGC_FINALIZED()
macro which was kept for backward compatibility with Python 3.8 and
older.
|
|
|
|
| |
The regression was introduced with commit 5b946cada.
Restore pre gh-29696 behaviour.
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
|
| |
(#105046)
|
|
|
|
| |
to `False` (#105281)
|
| |
|
| |
|
|
|
|
| |
equivalent. (GH-105230)
|
|
|
|
|
| |
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>
|
|
|
|
|
| |
Ignore doc string assignment failures in `property` as has been the
behavior of all past Python releases.
|