Will's post also shows a great use case for Python's structural pattern matching. If the user can specify padding in many different formats, using `match` can validate the format during runtime and easily homogenise the structure. What do you think of this alternative? (Python 3.10+ only)
I wrote this post to teach something, and ended up learning something! willmcgugan.github.io/fixing-pytho...
3 reposts8 likes