What method(s) does a class have to support to properly emulate a container
which supports turning it into a list?  For example:

  class Foo:
    pass

  f = Foo()
  print list(f)

Is it just __iter__() and next()?  (I'm still using 2.4 and 2.7.)

Thx,

Skip



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to