Credits
--------
-* Django, Werkzueg, Bottle, and Zope for having their own implementations. This package uses the Django version.
-* Reinout Van Rees for pointing out the cached_property decorator to me.
-* My awesome wife Audrey who created cookiecutter, which meant rolling this out took me just 15 minutes.
+* Pip, Django, Werkzueg, Bottle, Pyramid, and Zope for having their own implementations. This package uses an implementation that matches the Bottle version.
+* Reinout Van Rees for pointing out the `cached_property` decorator to me.
+* My awesome wife `@audreyr`_ who created `cookiecutter`_, which meant rolling this out took me just 15 minutes.
+
+.. _`@audreyr`: https://github.com/audreyr
+.. _`cookiecutter`: https://github.com/audreyr/cookiecutter
\ No newline at end of file
class cached_property(object):
""" A property that is only computed once per instance and then replaces
itself with an ordinary attribute. Deleting the attribute resets the
- property. """
+ property.
+
+ Source: https://github.com/bottlepy/bottle/commit/fa7733e075da0d790d809aa3d2f53071897e6f76
+ """
def __init__(self, func):
self.__doc__ = getattr(func, '__doc__')