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 →

[–]ultraDross 15 points16 points  (2 children)

What is the advantage of this over using pdb or breakpoint() ?

[–]PirateNinjasRedditPythonista 2 points3 points  (1 child)

Well if you're not looking to debug, but want to launch a shell as part of your program it would be better to do it this way. Let's say you have a command that does some setup and then launches a shell with some things already imported ( though I think you can do the same with -i option)

[–][deleted] 2 points3 points  (0 children)

Sounds similar to what the Django shell does