We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81093b0 commit 1084a6bCopy full SHA for 1084a6b
bpython/adder-v1.py
@@ -2,8 +2,9 @@
2
x = int(input("x = "))
3
y = int(input("y = "))
4
z = x / y
5
-except (ValueError, ZeroDivisionError) as ex:
+except (ValueError, ZeroDivisionError) as ex: # noqa: F841
6
import bpython
7
+
8
bpython.embed(locals(), banner="Post-Mortem Debugging:")
9
else:
10
print(z)
bpython/adder-v2.py
@@ -1,10 +1,13 @@
1
try:
- import bpdb; bpdb.set_trace()
+ import bpdb
+ bpdb.set_trace()
11
12
13
0 commit comments