auvergne7.bsky.social
Ce que je sais , est que je ne sais rien ( Socrate)
👤 Joined on 11 August 2025
Followers
Following
Total Posts
@auvergne7.bsky.socialInfinite iterables may seem like a BAD THING... but they can be handy! You CAN limit infiniteness as needed. By default, zip() will stop at the end of the shortest iterable... so an infinite iterable and a finite one will result in a finite iterable.
Show PostPython Tip #135 (of 365): Embrace the infinite 🧵 Remember that infinite iterables are possible in Python. itertools.count() is like an infinite range(). itertools.repeat() and itertools.cycle() are like infinite self-concatenation. #Python #DailyPythonTip
Show PostPython Tip #136 (of 365): Wrap iterators in iterators. Have a file object? That's an iterator. Process it lazily with a looping helper. Wrap it in a generator expression. Wrapping iterators in iterators can visually chunk code while keeping it fast. #Python #DailyPythonTip
Show Post🗺️ May 16, 2026 5/5 countries in 8/13 guesses 🟩🟨🟩🟨🟨 #Whereabouts whereabouts.earth/daily/
Show Post