Guido van Rossum
9544948e7e
Remove support for legacy bytecode instructions ( #105705 )
...
(A legacy instruction is of the form `instr(FOOBAR)`,
i.e. missing the `(... -- ...)` stack/cache effect annotation.)
2023-06-12 18:19:04 +00:00
Guido van Rossum
b9e7dc797d
gh-105229: Remove syntactic support for super-instructions ( #105703 )
...
It will not be used again.
2023-06-12 17:47:08 +00:00
Dora203
4f7d3b602d
gh-105436: The environment block should end with two null wchar_t values (GH-105495)
2023-06-12 17:14:55 +01:00
Petr Viktorin
2b90796be6
gh-103968: PyType_FromMetaclass: Allow metaclasses with tp_new=NULL (GH-105386)
2023-06-12 17:45:49 +02:00
Steve Dower
58f0bda341
ARM64 clamping bug also exists in MSVC 14.35 (GH-105679)
2023-06-12 15:09:14 +00:00
Nikita Sobolev
a8d69fe92c
gh-105673: Fix uninitialized warning in sysmodule.c ( #105674 )
...
In sys_add_xoption(), 'value' may be uninitialized for some error paths.
2023-06-12 08:47:56 +00:00
Irit Katriel
58f5227d7c
gh-105481: add pseudo-instructions to the bytecodes DSL ( #105506 )
2023-06-11 22:31:59 +01:00
Erlend E. Aasland
20a56d8bec
gh-105375: Harden pyexpat initialisation ( #105606 )
...
Add proper error handling to add_errors_module() to prevent exceptions
from possibly being overwritten.
2023-06-11 20:18:46 +00:00
Erlend E. Aasland
41cddc2e93
gh-105375: Improve error handling in the sys extension module ( #105611 )
...
In _PySys_AddXOptionWithError() and sys_add_xoption(),
bail on first error to prevent exceptions from possibly being
overwritten.
2023-06-11 20:02:49 +00:00
Erlend E. Aasland
e8998e46a7
gh-105375: Improve error handling in _ctypes ( #105593 )
...
Prevent repeated PyLong_FromVoidPtr() from possibly overwriting the
current exception.
2023-06-11 19:46:19 +00:00
Erlend E. Aasland
555be81026
gh-105375: Improve error handling in PyUnicode_BuildEncodingMap() ( #105491 )
...
Bail on first error to prevent exceptions from possibly being overwritten.
2023-06-11 21:29:19 +02:00
Erlend E. Aasland
567d6ae8e7
gh-105375: Improve PyErr_WarnExplicit() error handling ( #105610 )
...
Bail on first error to prevent exceptions from possibly being
overwritten.
2023-06-11 21:23:28 +02:00
Samet YASLAN
3f7c0810f6
bpo-44185: Added close() to mock_open __exit__ ( #26902 )
2023-06-11 19:51:21 +01:00
Tomas R
18d16e93b6
gh-102676: Add more convenience properties to dis.Instruction
( #103969 )
...
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.
2023-06-11 08:50:34 -07:00
litlighilit
845e593c4e
Fix typo in configparser module docstring ( #105652 )
...
"zc.buildbot" -> "zc.buildout"
2023-06-11 15:06:42 +01:00
Erlend E. Aasland
d4fa52934a
gh-105375: Improve error handling in the builtins extension module ( #105585 )
2023-06-11 12:20:43 +02:00
Erlend E. Aasland
c932f72849
gh-105375: Improve _decimal error handling ( #105605 )
...
Fix a bug where an exception could end up being overwritten.
2023-06-11 12:06:06 +02:00
Erlend E. Aasland
16d49680b5
gh-105375: Harden _datetime initialisation ( #105604 )
...
Improve error handling so init bails on the first exception.
2023-06-11 12:03:09 +02:00
Erlend E. Aasland
35cff545db
gh-105375: Improve array.array exception handling ( #105594 )
...
Fix a bug where 'tp_richcompare' could end up overwriting an exception.
2023-06-11 11:58:08 +02:00
Erlend E. Aasland
01f4230460
gh-105375: Harden _ssl initialisation ( #105599 )
...
Add proper error handling to prevent reference leaks and overwritten
exceptions.
2023-06-11 11:56:32 +02:00
Hugo van Kemenade
cc879481e2
gh-80480: Emit DeprecationWarning for array's 'u' type code ( #95760 )
2023-06-11 03:17:35 -06:00
Gregory P. Smith
3a314f7c3d
gh-99108: Mention HACL\* in the hashlib docs. ( #105634 )
2023-06-10 12:09:20 -07:00
Gregory P. Smith
0d1d6ab966
Cleanup and clarify our hashlib docs. ( #105624 )
...
Clarify and improve our hashlib docs. Now with 50% less mess!
2023-06-10 11:49:06 -07:00
Erlend E. Aasland
d636d7dfe7
gh-105375: Harden error handling in _testcapi/heaptype.c
( #105608 )
...
Bail on first error in heapctypesubclasswithfinalizer_finalize()
2023-06-09 21:53:33 +00:00
Nikita Sobolev
33c92c4f15
gh-105375: Improve error handling in zoneinfo
module ( #105586 )
...
Fix bugs where exceptions could end up being overwritten
because of deferred error handling.
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2023-06-09 21:48:54 +00:00
Erlend E. Aasland
91441bf7cb
Docs: fix formatting in 2023-06-09-12-59-18 NEWS item ( #105607 )
2023-06-09 23:14:02 +02:00
Pablo Galindo Salgado
b047fa5e56
gh-105549: Tokenize separately NUMBER and NAME tokens and allow 0-prefixed literals ( #105555 )
2023-06-09 21:39:01 +01:00
Erlend E. Aasland
00b599ab5a
gh-105375: Improve error handling in _elementtree ( #105591 )
...
Fix bugs where exceptions could end up being overwritten.
2023-06-09 22:35:03 +02:00
Erlend E. Aasland
f668f73bc8
gh-105375: Improve posix error handling ( #105592 )
...
Fix a bug where an IndexError could end up being overwritten.
2023-06-09 22:07:47 +02:00
Erlend E. Aasland
eede1d2f48
gh-105375: Improve errnomodule error handling ( #105590 )
...
Bail immediately if an exception is set, to prevent exceptions from
being overwritten.
2023-06-09 21:57:25 +02:00
Erlend E. Aasland
89aac6f6b7
gh-105375: Improve _pickle error handling ( #105475 )
...
Error handling was deferred in some cases, which could potentially lead
to exceptions being overwritten.
2023-06-09 19:09:53 +02:00
Erlend E. Aasland
6c832ddcf2
gh-105375: Improve error handling in compiler_enter_scope() ( #105494 )
2023-06-09 18:55:53 +02:00
Pablo Galindo Salgado
d7f46bcd98
gh-105564: Don't include artificial newlines in the line attribute of tokens ( #105565 )
2023-06-09 17:01:26 +01:00
Pablo Galindo Salgado
1dd267af64
Clarify the supported cases in the tokenize module ( #105569 )
2023-06-09 16:59:37 +01:00
Ethan Furman
59f009e589
gh-105497: [Enum] Fix Flag inversion when alias/mask members exist. (GH-105542)
...
When inverting a Flag member (or boundary STRICT), only consider other canonical flags; when inverting an IntFlag member (or boundary KEEP), also consider aliases.
2023-06-09 08:56:05 -07:00
Alex Waygood
8e755923c9
Miscellaneous improvements to the typing docs ( #105529 )
...
Mostly, these are changes so that we use shorter sentences and shorter paragraphs. In particular, I've tried to make the first sentence introducing each object in the typing API short and declarative.
2023-06-09 15:08:57 +00:00
Erlend E. Aasland
b8fa7bda4f
gh-105557: Remove duplicate sqlite3 test method ( #105558 )
...
test_func_return_too_large_int() was defined twice.
Keep only the redefined method, as that also checks the tracebacks.
2023-06-09 15:36:59 +02:00
Thomas Grainger
9bf8d825a6
gh-94924: support inspect.iscoroutinefunction
in 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
2023-06-09 13:29:09 +00:00
Victor Stinner
0f885ffa94
gh-105407: Remove unused imports ( #105554 )
2023-06-09 12:50:31 +00:00
Victor Stinner
58e4b69f69
gh-102304: Remove Py_INCREF() doc change ( #105552 )
...
Py_INCREF() was made compatible again with Python 3.9 and older in
the limited API of Python debug mode.
2023-06-09 11:56:03 +02:00
Victor Stinner
7ba0fd9f87
gh-102304: Fix Py_INCREF() for limited C API 3.9 ( #105550 )
...
When Python is built in debug mode (Py_REF_DEBUG macro), Py_INCREF()
and Py_DECREF() of the limited C API 3.9 (and older) now call
Py_IncRef() and Py_DecRef(), since _Py_IncRef() and _Py_DecRef() were
added to Python 3.10.
2023-06-09 09:30:41 +00:00
Nikita Sobolev
947ec7ab02
gh-105545: Remove deprecated MacOSXOSAScript._name
(gh-105546)
2023-06-09 08:52:58 +00:00
Victor Stinner
3e525d2212
gh-105396: Deprecate PyImport_ImportModuleNoBlock() function ( #105397 )
...
Deprecate the PyImport_ImportModuleNoBlock() function which is just
an alias to PyImport_ImportModule() since Python 3.3.
2023-06-09 10:30:57 +02:00
Erlend E. Aasland
a5f23d4110
CI: Configure macOS build as per updated devguide recommendations ( #105533 )
2023-06-08 22:26:03 +00:00
Terry Jan Reedy
bb3454c1a7
gh-102832: IDLE - update stackviewer open ( #105528 )
...
Use 'last_exc' instead of 'last_value' in 3.12/3.
2023-06-08 17:59:55 -04:00
Irit Katriel
3ee921d84f
gh-102832: IDLE - remove use of deprecated sys.last_xyzs for stackviewer ( #103339 )
2023-06-08 21:19:05 +01:00
Eric Snow
68dfa49627
gh-100227: Lock Around Modification of the Global Allocators State (gh-105516)
...
The risk of a race with this state is relatively low, but we play it safe anyway. We do avoid using the lock in performance-sensitive cases where the risk of a race is very, very low.
2023-06-08 14:06:54 -06:00
Nikita Sobolev
4ff5690e59
gh-105332: [Enum] Fix unpickling flags in edge-cases (GH-105348)
...
* revert enum pickling from by-name to by-value
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2023-06-08 11:40:15 -07:00
Eric Snow
e822a676f1
gh-100227: Lock Around Adding Global Audit Hooks (gh-105515)
...
The risk of a race with this state is relatively low, but we play it safe anyway.
2023-06-08 18:38:15 +00:00
Eric Snow
34c63b86d3
gh-104310: Rename the New Function in importlib.util (gh-105255)
...
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>
2023-06-08 18:19:58 +00:00