A very simple Youtube tutorial explaining how Python Decorator work. It’s sort of similar to closure (I guess?).
To block comment multiple lines of codes in sublime text, simply…
(On a Mac)
- highlight the lines of codes.
- hit the keys:
- note that the multiple lines of codes are now prefixed with the hash sign (
#). i.e. commented out.
- repeat above to uncomment.
(On a PC)
- (I have not tried this out yet).