[Python-3000] Fwd: Builtin iterator type

Mike Orr sluggoster at gmail.com
Sat Nov 18 23:50:17 CET 2006


On 11/18/06, Bob Ippolito <bob at redivi.com> wrote:
> On 11/15/06, Fredrik Lundh <fredrik at pythonware.com> wrote:
> > I'm convinced that it's better for people to get over that silly notion
> > that writing x.foo() is somehow always "better" than writing foo(x), in
> > a language that actually supports both forms.
> >
> Instead of classes you just keep the state as a parameter.

Classes make nice bundles of methods that you can pass around as a
unit. They show that "this goes with that". You can do the same thing
with modules but not as flexibly. For instance, you can have several
classes in one module, but not several modules in one module.

--
Mike Orr <sluggoster at gmail.com>


More information about the Python-3000 mailing list