Re:WTFPython: Exploring and understanding Python through sur...
by Fiahil on Tuesday May 31, 2022 @09:44AM
(#31569398)
> in favorable direction
Speaking of directions, how about the bidirectional use of `yield` and `yield from` ?
https://stackoverflow.com/questions/9708902/in-practice-what...
# Sending data to a generator (coroutine) using yield from - Part 1
Re:WTFPython: Exploring and understanding Python through sur...
by isoprophlex on Tuesday May 31, 2022 @10:54AM
(#31570224)
This is beautiful! I've been known to hate on stuff like that walrus operator being added, but this I love. So clean, simple and powerful. Thanks for sharing.
Re:WTFPython: Exploring and understanding Python through sur...
by tetha on Wednesday June 01, 2022 @01:17AM
(#31578388)
I also learned a bunch of weird things about python from this, like the really gritty details of assignments and such. It's surprisingly messy once you leave the beaten good path.
I also learned that there is python code which causes a rather violent "Don't you ever get that near a code base I maintain"-reaction, which I much rather associated with perl.
I've found senior developers to have polarized opinions about the usefulness of the collection, so always good to see a review in favorable direction :)