> PS If there was a method on ShellCommand, adding a step would be simpler, > e.g., > > def addStep(self, cls, **kwds): > self.steps.append((cls, kwds))
Ooh! I like that. > then we could do: f.addStep(Catalog, command=Catalog.command) It would be even simpler: f.addStep(Catalog). The command= argument is provided by the class-level attributes of your Catalog class (it can be set by either an attribute or by a constructor argument, but if it's always going to be the same thing then the attribute is easier). If you make a patch for this, I'll commit it. If not, I'll write one before I get the next release out. thanks, -Brian _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com