Is "finally" Useless In Python?

Опубликовано: 10 October 2024
на канале: Indently
52,547
2.3k

Today, we're going to be diving into the "finally" keyword. You don't want to know how many comments I get regarding the inutility of "finally" in Python. Sometimes I want to go hide in the forest when I read those comments, but I'm an adult who pays taxes, so instead I'm here to explain what it does!

▶ Become job-ready with Python:
https://www.indently.io

▶ Follow me on Instagram:
  / indentlyreels  

00:00 Learning Python made simple
00:05 “finally is useless
00:27 an example using “finally”
01:58 “finally” is stronger than exceptions
03:13 “finally” is too powerful
03:51 “finally” can be abused
05:01 PEP 601
05:37 “finally” black magic
06:41 What do you think?