Skip to content

2023

#207: Type Hints

Internally Python uses classes and therefore types everywhere. However, when we declare our methods, we omit the types and end up with limited functionality for our code editors. In this post we look at type hints and how they can improve our experience to write code.

#202: Rounding in Python

Python is usually a straightforward language without surprises. However, when you use the round() function you may run into some strange behaviour. Let us have a look at the specialities of round() and what is going on.

#201: How Much Cost a Print()?

A few weeks back we were running a data preparation script that took a long time to complete. The main part of the work should not take that much time, but somehow that script was sloooow. I expected that the print() statement for each record would have an impact on performance, but I had no indication of the magnitude. Is it significant? Or is it neglectable? Let us find out how big the impact can be.

#200

It is unbelievable that this is already post #200 for my Python Friday series. Let us use this milestone to look back at the topics we covered since Python Friday #100. Again, you get an easy-to-use reference that lets you jump right to the topics you are interested in.