Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> PEP 604: New Type Union Operator¶

> Union[int, float] -> int | float

Really excited for the new syntax, thank you everyone involved for making Python better each day. IMO Python's most powerful feature is its' amazing community. :)

btw there is a small typo @ https://docs.python.org/3.10/whatsnew/3.10.html:

> Pattterns -> Patterns

Does anyone know where it needs to be fixed?



There's a "Show Source" link in the navigation that points to https://github.com/python/cpython/blob/master/Doc/whatsnew/3...


Thank you for the pointer.

Seems they have already fixed it.

https://github.com/python/cpython/pull/24721/files




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: