v0.2.3: New decorators handling for classes in python 2.7
This minor release contains some backward incompatible changes on how to handle the decorators for classes in python 2.7. Thanks @lesteve and @guillaumeeb for your input on this.
Changed
-
When using the decorators for classes in python 2.7, e.g. via:
>>> @docstrings ... class Something(object): ... "%(replacement)s"
it does not have an effect anymore. This is because class docstrings cannot be modified in python 2.7 (see issue #5). The original behaviour was to raise an error. You can restore the old behaviour by setting DocstringProcessor.python2_classes = 'raise'.
-
Some docs have been updated (see PR #7)
Added
- the DocstringProcessor.python2_classes to change the handling of classes in python 2.7