I am wondering about the use of == when comparing two generators
==
For example:
x = [\'1\',\'2\',\'3\',\'4\',\'5\'] gen_1 = (int(ele) for
Because generators generate their values on-demand, there isn't any way to "compare" them without actually consuming them. And if your generators generate an infinite sequence of values, such an equality test as you propose would be useless.