Neat! But please add something to the __doc__ so we can also see it was changed. E.g.
self.__doc__ = other.__doc__ + os.linesep + "*** deprecated ***"


On 12 mrt 2005, at 5:25, Nick Coghlan wrote:
I like "update_meta"

Patch against current CVS added to SF with the behaviour:

  def update_meta(self, other):
    self.__name__ = other.__name__
    self.__doc__ = other.__doc__
    self.__dict__.update(other.__dict__)

_______________________________________________ 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

Reply via email to