title: How to determine if the value is ONE-BUT-LAST in a Python generator?
body: <p>Since generator returns values lazily, how do I determine if the value returned from a generator is one-but-last? I spent like an hour on this and can't figure it out.</p>
  
  <p>Any help appreciated. Is it even possible??</p>
  
  <p>Thanks, Boda Cydo!</p>