News for hackers. Stuff that matters.
Re:Pattern matching accepted for Python by TrianguloY on Tuesday February 09, 2021 @05:16PM (#26083133)
I may be wrong, but after reading the grammar I think your example is a syntax error. You can't access an element! A pattern syntax is completely different to a normal expression, and there is apparently no array access.
Re:Pattern matching accepted for Python by mvolfik on Tuesday February 09, 2021 @05:31PM (#26083319)
hmm, so I would need to use some namespace class https://docs.python.org/3.8/library/types.html#types.SimpleN...