Skip to content

Instantly share code, notes, and snippets.

@klairetan
klairetan / python_decorator_guide.md
Created Aug 12, 2020 — forked from Zearin/python_decorator_guide.md
The best explanation of Python decorators I’ve ever seen. (An archived answer from StackOverflow.)
View python_decorator_guide.md

NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.


Q: How can I make a chain of function decorators in Python?


If you are not into long explanations, see [Paolo Bergantino’s answer][2].

@klairetan
klairetan / python_decorator_guide.md
Created Aug 12, 2020 — forked from Zearin/python_decorator_guide.md
The best explanation of Python decorators I’ve ever seen. (An archived answer from StackOverflow.)
View python_decorator_guide.md

NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.


Q: How can I make a chain of function decorators in Python?


If you are not into long explanations, see [Paolo Bergantino’s answer][2].

@klairetan
klairetan / langCLI_Tests.md
Last active Feb 8, 2019
langCLI Test Suite
View langCLI_Tests.md

Success

  1. CLI prints a warning for tr functions that refers to non-langCLI tr functions

  2. CLI will be able to replace variables in param() calls within tr

  3. CLI finds and translates all tr() calls

Failing

  1. CLI detects files which import and renames tr
You can’t perform that action at this time.