My Today I Learned snippets. Inspired by simonw/til.
This is CC-NC License
👹
beginner
- Create simple decorator - 2020-07-31
- Create Closure - 2020-08-03
- Test with Docsting - 2020-08-04
- Another way to import module - 2020-08-09
- FastApi Pytest clean-up db for every test method - 2020-09-04
- ast hello world - 2020-09-07
- Use Dictionary instead if statement - 2020-08-12
- Factory pytest fixture - 2020-08-14
- pytest run particular or skip - 2020-08-17
- Mock function - 2020-08-18
- Ast Abstract - 2020-08-24
- Mock method - 2020-08-28
- First Module - 2020-08-31
- Some special methods 01 - 2020-09-02
- Functools Min Max - 2020-09-04
- Iterate in fixed-size chunks - 2020-11-13
- Debug request - 2020-09-04
- attr module - 2020-11-19
intermediate
- private constructor - 2020-09-16
- Namedtuple - 2020-09-28
- Auto Generation for repr - 2020-10-05
- No need to write init - 2020-10-07
- post_init / InitVar - 2020-10-08
- Staticmethod / Classmethod - 2020-10-22
- increment-by-setattr - 2020-10-22
- semaphore - 2020-10-26
- grouping decorator - 2020-11-4
- set default timeout - 2020-11-17
- Request retry on failure - 2020-11-17
- Introduction to singledispatch - 2020-11-20
advance
- Private variable behavior - 2020-08-05
- what is signature - 2020-10-08
- MetaClass vs Class Decorator - 2020-10-09
- Descriptor - 2020-10-12
- Mixin - 2020-10-13
- Descriptor with arguments - 2020-10-14
- Hook request - 2020-11-13
- mypy overload - 2020-12-3