Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
TrianguloY
on Feb 9, 2021
|
parent
|
context
|
favorite
| on:
Pattern matching accepted for Python
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
on Feb 9, 2021
[–]
hmm, so I would need to use some namespace class
https://docs.python.org/3.8/library/types.html#types.SimpleN...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: