News for hackers. Stuff that matters.
Re:Python: Uncovering the Overlooked Core Functionalities by TrianguloY on Monday July 24, 2023 @05:09PM (#36854229)

    first, _, last = [1, 2, 3, 4, 5]
I guess this is a typo, it should be

    first, *_, last = [1, 2, 3, 4, 5]
(As explained above!)

Other than that, nice list of python tricks, I love not-so-known features because it can make code shorter and prettier!

Re:Python: Uncovering the Overlooked Core Functionalities by erikvdven on Monday July 24, 2023 @05:23PM (#36854391)
Sharp! Updated that line. And thank you for the compliment :)