Slots : an unknown optimization

Slots : an unknown optimization

As a former C developer working in high-performance computing, I wondered very early about the compactness of objects that were commonly created in Python. It quickly became clear to me that this was not optimal in most cases, resulting from the choice of original...
How to sort CSV files?

How to sort CSV files?

1. Context Twice during my career, I was given the project to compare two large CSV files (Comma Separated Values: text files corresponding to either an Excel file export or an export of database tables): In the first case, it was a comparison between trades entered...

Introduction to metaclasses

Python is a strongly object-oriented language and is becoming increasingly popular over the years. Lots of projects continuously emerge which size and complexity make them much more than just a bunch of scripts. Such projects make extensive usage of OOP, defining...

The Sieve of Eratosthenes

1. Who is Eratosthenes? Eratosthenes of Cyrène was a Greek mathematician, geographer, poet, astronomer and music theorist. He was the chief librarian at the Library of Alexandria. He is commonly called the “father of geography”. He is also the first person...