Skip to content

Make pylearn2.utils.wraps work on abstract methods #1410

Open
@lamblin

Description

@lamblin

It would be reasonable to have abstract base classes defining methods that have to be implemented by subclasses, and to re-use (part of) the docstring of these methods.
Doing so currently breaks the generation of online documentation, because the base class cannot be instantiated to extract its docstring.
Starting points (indicated by @fvisin): http://code.activestate.com/recipes/576862-docstring-inheritance-decorator/, http://code.activestate.com/recipes/578587-inherit-method-docstrings-without-breaking-decorat/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions