We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Sweeter debugging and benchmarking with ycecream

Formal Metadata

Title
Sweeter debugging and benchmarking with ycecream
Title of Series
Number of Parts
115
Author
License
CC Attribution - NonCommercial - ShareAlike 4.0 International:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal and non-commercial purpose as long as the work is attributed to the author in the manner specified by the author or licensor and the work or content is shared also in adapted form only under the conditions of this
Identifiers
Publisher
Release Date
Language

Content Metadata

Subject Area
Genre
Abstract
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.