What is Nostr?
Bèr Kessels 🐝 🚐 🏄 🌱 /
npub1qaq…gk6u
2023-12-19 09:26:19
in reply to nevent1q…pdkp

Bèr Kessels 🐝 🚐 🏄 🌱 on Nostr: npub1srml6…usmxm npub1kpwlx…xxzz4 Python could have the Ruby way where iterators ...

npub1srml6uclqz6gejnue249my5jy96aqfr9rvmfs2eyn4s02xmds0sqxusmxm (npub1srm…smxm) npub1kpwlxpzkxfmuxjmzc2wp3rf9vjg0sgydmlhsnrgqr3maf59h86qqdxxzz4 (npub1kpw…xzz4) Python could have the Ruby way where iterators are modules (shared behavior) that's mixed in. Or java, where it's an interface. Or the rust way where .iter() turns anything that wants to, into an actual Iterator.

If the reasons are 'technical limitations' it only strengthens my point that Python is doing a poor job here.
Author Public Key
npub1qaqt4qpc83zaszezl2w09gddr8srwd3taykwj9ujpn3q3fpe9hdqctgk6u