Top "Decorator" questions

Decorator is an object-oriented design pattern that allows adding behavior to existing classes in a dynamic fashion.

Python Flask working with wraps

Trying to setup a login page with Python and Flask and getting an Error: (line 33 is the with @login_required) …

python flask decorator python-decorators
Recording classes in Django Admin with @admin.register decorator

I am testing the new @admin.register decorator that is a new feature from Django 1.7. I am currently using Django 1.8.2 …

python-3.x django-admin decorator django-1.8
Decorator for timeit.timeit method?

I'm trying to write a simple time decorator to measure time taken by functions. However the code below is giving …

python decorator python-decorators timeit
How to use decorated method in Mapstruct collection mapper?

I am using MapStruct to map from a JPA entity to a POJO DTO, in a Spring app with dependency …

java decorator mapstruct