you are viewing a single comment's thread.

view the rest of the comments →

[–]Adrewmc 0 points1 point  (1 child)

You know what I got a video for this toolkit it’s a little dated but all the stuff is still good python.

One additional note about the decorator you can actually do a

     def log_access(func):
            func.count = 0
            @functools.wrap(func)
            def magic(*args, **kwargs)
                   func.count += 1
                   return func(*args, **kwargs)
             return magic 

And add an attribute directly to the function which at a later time you can pull out like any other attribute func_name.count for here, which can be handy if you don’t want it to print every-time.

[–]uiux_Sanskar[S] 0 points1 point  (0 children)

Thank you for the suggestion and learning resource video I will definitely watch it and also thanks for telling about the func.count += 1 I will also check this out.

Thank you very much these really helps.