I'm fascinated to see Steve Losh demonstrating a 'gather' macro in Common Lisp, removing boilerplate for an accumulator: https://stevelosh.com/blog/2018/05/fun-with-macros-gathering/
Most use of yield in Python seems to be focused on gathering rather than lazy evaluation, but I never had a name for the concept!
Anecdotally, I've noticed more frequent doc comments in languages that put them inside the function (e.g. Python, Lisp) rather than outside (JS, Rust).
Perhaps it's easier to write the rough signature before the explanation?