3 ms·
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
by TrianguloY 6y ago
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.
- mvolfik 6y agohmm, so I would need to use some namespace class https://docs.python.org/3.8/library/types.html#types.SimpleNamespace https://docs.python.org/3.8/library/types.html#types.SimpleN...