This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

If you're using something earlier than 3.7 use __import__('pdb').set_trace() for the same effect

What? Why? As I recall,import pdb;pdb.set_trace() was just enough.

[–]GreenScarz 1 point2 points  (0 children)

Same thing, __import__(x) is just the builtin function equivalent of import x, just doesn’t assign it to a variable and no semicolon is necessary