these ones are also helpful: - property decorator: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-orp6bhe4i00.html - staticmethod / classmethod: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-yhkpRz7TC7o.html
oh I thought you meant in the terminal, so I made this horriterrible thing for ya: alias lmgtfy='bash -c '"'"'xdg-open google.com/search?q=$(sed '"'"'"'"'"'"'"'"'s/ /+/g'"'"'"'"'"'"'"'"'
"is there a way" in python is almost always yes -- but is it a good idea is a better question :) -- if it's in a class you could use a metaclass to do that, if it's in a module you could reassign all the attributes of `sys.modules[__name__]` to wrap them -- but I'd prefer explicit decoration myself, or refactor so you call something like a context manager instead
Few times I came across a situations where I needed to use decorators for methos inside a class (A decorator usinfg self) . Its always messy. Can U cover this topic?