mpython·Pythonbymonica_b1998 List comprehensions vs generator expressionshttps://slicker.me/python/listcomp-vs-genexp.htmlOpen linkView original on lemmy.world5Comments5Reply
NNoPanko replyfeddit.ukI hate how often I get this feeling recently, far too much of the internet is now ai generated2Reply
bbterwijn programming.devI like to use this example with my students: https://github.com/bterwijn/memory_graph#lazy-evaluation3Reply
llogging_strict programming.dev1Hide 1 replyBetter question is Iterator or Generator? Identify where itertools or itertools-more should be used instead. The later question i don't have an answer to. If anyone wants to take a crack at it.1Reply
llogging_strict replyprogramming.dev Identify where itertools or itertools-more should be used instead. Found this which is Rust-free https://pypi.org/project/refurb/1Reply
5 replies
The article feels AI generated.
I hate how often I get this feeling recently, far too much of the internet is now ai generated
I like to use this example with my students: https://github.com/bterwijn/memory_graph#lazy-evaluation
Better question is Iterator or Generator?
Identify where itertools or itertools-more should be used instead.
The later question i don't have an answer to. If anyone wants to take a crack at it.
Found this which is Rust-free
https://pypi.org/project/refurb/