mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +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
|
@ -223,7 +223,7 @@ Verify exception propagation
|
|||
next(g)
|
||||
File "<pyshell#35>", line 1, in <generator expression>
|
||||
g = (10 // i for i in (5, 0, 2))
|
||||
ZeroDivisionError: integer division or modulo by zero
|
||||
ZeroDivisionError: division by zero
|
||||
>>> next(g)
|
||||
Traceback (most recent call last):
|
||||
File "<pyshell#38>", line 1, in -toplevel-
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue