spacepaste

  1.  
  2. def userIdMatch(func):
  3. @functools.wraps(func)
  4. def wrapper(*args, **kwargs):
  5. for i in args:
  6. print(i)
  7. return wrapper
  8. class User(Resource):
  9. @userIdMatch
  10. def get(self, _id):
  11. print(_id)
  12.