VintageGold / Data690_MathML

A place to ask questions and collaborate with peers
MIT License
1 stars 2 forks source link

python decorator #4

Closed xinxueHEAI closed 3 years ago

xinxueHEAI commented 3 years ago

@Shayros, @Readknn (please assign yourself as well) and @VintageGold, please work with @tkelly9 to understand decorators in python.

  1. First, please understand how the 'calculator' class works.
  2. In the 'calculator' class: add a decorator function and decorate the following functions:
    • if a function save results to the cache, print 'result saved'. Do not change the original functions!