I recently became the maintainter of PyPDF2 – a library which is pretty old and still has some code that deals with Python versions before 2.4. While I want to drop support for 3.5 and older soon, I see some parts where I’m uncertain why they were written as they are. One example is this: What is in the code: