Ruud van der Ham - Sweeter debugging and benchmarking with ycecream

Conference: EuroPython 2021

Year: 2021

Sweeter debugging and benchmarking with ycecream [EuroPython 2021 - Talk - 2021-07-29 - Ni] [Online] By Ruud van der Ham Even if you use a debugger, it is often required to print some variables or expressions, preferably with their name and sometimes even the location. The normal way to do that is with a print statement, like | print("hello= ", hello) or with Python >= 3.8: | print(f"hello=") Ycecream makes this easier with a simple call to y: | y(hello) and then you will get | y| hello: "world" But you can also add the location in the program where this debug call is coming and get something like | y| #6 in testproc() hello: "world" But ycecream can do much more to help to debug and benchmark Python programs. In this presentation, I will live code to demonstrate ycecream, There are some similar packages out there, like IceCream and show. In this talk I will point out some of the main differences. More information can be found here: www.github.com/salabim/ycecream License: This video is licensed under the CC BY-NC-SA 4.0 license: https://creativecommons.org/licenses/by-nc-sa/4.0/ Please see our speaker release agreement for details: https://ep2021.europython.eu/events/speaker-release-agreement/