News for hackers. Stuff that matters.
Re:Python 3.7 released by jihadjihad on Wednesday June 27, 2018 @09:07PM (#17413273)
Is the breakpoint builtin analogous to binding.pry in Ruby? If so...that is amazing!
Re:Python 3.7 released by Buttons840 on Wednesday June 27, 2018 @09:23PM (#17413353)
Yes, it's quite similar. It's not THAT amazing though since it's just a convenience function over pdb.set_trace() which has been in the Python standard library for a very long time (2 decades or more).
Re:Python 3.7 released by eesmith on Thursday June 28, 2018 @03:30AM (#17414799)
Out of curiosity, I looked it up. According to a 'git annotate' of pdb.py, "def set_trace():" was added by Guido van Rossum on 1994-08-01 at 11:34:53 - almost 24 years ago.
Re:Python 3.7 released by icebraining on Thursday June 28, 2018 @08:37AM (#17416330)
Yeah, the main advantage seems to be that you can configure the debugger to use externally (I often "pip install ipdb" just to use IPython's shell instead of the default).