McCheng

joined 2 years ago
[–] McCheng@lemmy.fmhy.ml 3 points 2 years ago (2 children)

But then you still need to use parentheses to decode it

[–] McCheng@lemmy.fmhy.ml 1 points 2 years ago

Very interesting solutions. I was in the direction of using dunder methods but could not figure out how. Haven't heard of the __class_getitem__. The second solution is especially inspiring.

[–] McCheng@lemmy.fmhy.ml 2 points 2 years ago (2 children)

Gave some thoughts but couldn't find any. I need the solutions