def initOptions (self,option, kw):
		"""Method intended to be called from the derived class constructor.
		   Put the options into object scope."""
		for k,v in option.__dict__.items()+kw.items():
			if not hasattr(self.__class__,k):
				raise OptionError,"invalid option "+k
			setattr(self,k,v)
Method intended to be called from the derived class constructor.
		   Put the options into object scope.
recipes/Python/68424_Options_management/recipe-68424.py