mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-119057: Use better error messages for zero division (#119066)
This commit is contained in:
parent
153b118b78
commit
1d4c2e4a87
11 changed files with 32 additions and 20 deletions
|
@ -907,7 +907,7 @@ Specification: Generators and Exception Propagation
|
|||
File "<stdin>", line 1, in ?
|
||||
File "<stdin>", line 2, in g
|
||||
File "<stdin>", line 2, in f
|
||||
ZeroDivisionError: integer division or modulo by zero
|
||||
ZeroDivisionError: division by zero
|
||||
>>> next(k) # and the generator cannot be resumed
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue