Skip to content

Commit 4dccc96

Browse files
committed
gh-94345: Correct NEWS wording (RecursionError, not a crash)
asdict()/astuple() on a circular reference raise RecursionError on a release build, not a segfault; drop the inaccurate crash claim.
1 parent 4fb24e5 commit 4dccc96

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
:func:`dataclasses.asdict` and :func:`dataclasses.astuple` now raise
22
:exc:`ValueError` when the dataclass instance contains a circular reference,
3-
instead of recursing until a :exc:`RecursionError` (or crashing on a release
4-
build).
3+
instead of recursing until a :exc:`RecursionError`.

0 commit comments

Comments
 (0)