Ned Batchelder - Machete-mode debugging: Hacking your way out of a tight spot - PyCon 2016
Speaker: Ned Batchelder
When chasing mysterious bugs, it's helpful to use all the tools at your disposal. We'll explore ways to use Python's dynamic tools to help track down the cause of head-scratching problems in large systems. Tools include the inspect module, monkey-patching, trace functions, and the Python mechanisms at work behind them all.
Slides can be found at: speakerdeck.com/pycon2016 and github.com/PyCon/2016-slides
Пікірлер: 8
Always a pleasure to listen to Ned. He somehow chooses very interesting topics and explains it with unique clarity. We need more Ned
Fantastic talk. Always enjoy Ned's talks. 10/10.
One comment I wanted to make is on the last question he's asked in the Q&A section: "How do you come up with these kinds of debugging solutions?" I would say, at least, that Ned is able to arrive at these "debugging strategies" because he has studied and worked with the Python language and standard library. He really knows how to use the language and what tools are available in the Python standard library. That allows him to know more about what is "possible" in Python, which IMHO allows him to "think outside the box" as he answered in the talk.
Awesome talk Ned. Always the highlight of pycon for me. :)
Great talk, pity that video is full of artefacts
At 29:05 the comedy isn't the fact they never used the default. The comedy is that python defaults are evaluated at function declaration time and not function call with the argument necessarily missing. So they run way too eagerly and then that function lives with a (random) constant for the duration of the program. Wow.
16:22 If I'm not wrong, python has decorators just for this kind of things.
@sohangchopra6478
2 жыл бұрын
Yes it does