News for hackers. Stuff that matters.
Re:Sum Types Are Coming (2015) by fermigier on Friday February 16, 2018 @02:23AM (#16390575)
For Python (as a library, not a core language construct):

https://github.com/radix/sumtypes/

(Same year - 2015 - as the original post ;)

Re:Sum Types Are Coming (2015) by fphilipe on Friday February 16, 2018 @03:44AM (#16390856)
If you're looking for a simple sum type without associated value, the standard library's enum works quite well: https://docs.python.org/3/library/enum.html
Re:Sum Types Are Coming (2015) by philpee2 on Friday February 16, 2018 @09:25AM (#16392499)
If you're using mypy, there's also the Union type https://mypy.readthedocs.io/en/latest/kinds_of_types.html#un...