Hello,
I was looking for an ABC for generators in python. While there's a
types.GeneratorType type object - which can't be used directly  and it's
not an abc - and many collections-related ABCs in the collections
module, there's no way to say a user-defined class as a generator, even
though it could expose the very same interface as a builtin, yield-based
generator.

I think it would be pretty useful.

comments?


-- 
Alan Franzoni
contact me at pub...@[mysurname].eu
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to