dry-python/returns
View on GitHub ↗ ★ 4,387 Python
Make your functions return something meaningful, typed, and safe!
7 mentions on Hacker News by 7 people: 3 stories, 4 comments · first 2020-02-03 · latest 2024-02-19
20082026
-
▲ 12
Python Functional Programming with returns library (type-safety, monads, etc.)story by behnamoh · 2024-02-19 · 3 comments
-
…).bind_optional( # And so on! lambda credit: choose_discount(credit) if credit > 0 else None, ) https://github.com/dry-python/returns#maybe-container You can decide for yourself what is more readable: all these lambdas or the `None and…
comment by d0mine · 2022-06-01 · in Python-patterns – A collection of design patterns/idioms in Python -
…interested in learning new Python tricks. One of the repos that I found interesting recently is https://github.com/dry-python/returns
comment by htlion · 2022-05-31 · in Python-patterns – A collection of design patterns/idioms in Python -
…otherwise impossible to get, without runtime inspections. 0: https://github.com/dry-python 1: https://github.com/dry-python/returns
comment by hackandtrip · 2022-02-07 · in Show HN: Koda, a typesafe functional toolkit for Python -
▲ 145
Functional Programming in Pythonstory by bearzoo · 2020-05-28 · 62 comments
-
…business otherwise can? There is no escape at the code level, only at the organization level. [1] https://github.com/dry-python/returns
comment by yowlingcat · 2020-03-14 · in Do not log -
▲ 2
Show HN: Dry-Python/returns 0.13 – typed Reader and IOResult monadsstory by sobolevn · 2020-02-03 · 0 comments