5 Jan
2004
5 Jan
'04
7:31 p.m.
Sean wrote at 2004-1-4 23:47 -0500:
...
* Python 2.1's "getattr" catches all exceptions (when called with an optional default argument) (while it should only catch "AttributeError"). This may transform "ConflictError" to "missing docstring".
In this case, the affected object would define its docstring itself. This is very rare: usually, the docstring is defined by the class and not the object...
I do not understand this.
I am not using "getattr" in my code.
"getattr" is used in "ZPublisher.BaseRequest.BaseRequest.traverse". Search for the error message to find the precise line...
How can an object define its own docstring separately from its class definition?
self.__doc__ = ... But, really, it is very rarely done. -- Dieter