[python drops] Pathlib

The module pathlib is around since Python 3.4 but I must confess that I’ve started to use it a short time ago. For those who are listening this name for the first time, pathlib is an Object-oriented filesystem paths module; in other words, a module with few classes to help you to manipulate paths in a pratical way. Each class has a proper use and if you wanna dive into it, I suggest to take a look in the docs.

Read More →

[python drops] f-strings

In this Python Drops episode we’re going to talk about f-strings, known as Literal String Interpolation. This feature was added on Python 3.6 and the goal is make the String interpolation more readable. Interpolation is a fancy name to mount/create/construct a String from data you want to: a variable, a method return and so on. Before it, the commom ways to interpolate Strings looked like this: Format Strings (example from the oficial documentation)

Read More →