osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem : Generator


Prahallad Achar <acharbly at gmail.com> writes:

> How to implement reverse generator

Welcome to the Python forum!

That sounds like an interesting problem. Can you describe it more
precisely? What should a ?reverse generator? actually do (and not do)?

Ideally, give an example:

* Some code you would maybe expect to create a "reverse generator", that
  you have already tried but doesn't work.

* Exactly what you *expect* the resulting object to do; what is its
  expected behaviour? What is its expected output?

-- 
 \      ?Software patents provide one more means of controlling access |
  `\      to information. They are the tool of choice for the internet |
_o__)                                     highwayman.? ?Anthony Taylor |
Ben Finney