&quot;It&#x27;s a pattern.&quot;<p>&quot;All useful languages have monads ... nearly impossible to avoid.&quot;<p>So here&#x27;s a post on Python (hopefully useful) and monads, it appears to be implementing a pattern, although I don&#x27;t think I would have ever stumbled across it naturally.<p><a href="http:&#x2F;&#x2F;www.valuedlessons.com&#x2F;2008&#x2F;01&#x2F;monads-in-python-with-nice-syntax.html" rel="nofollow">http:&#x2F;&#x2F;www.valuedlessons.com&#x2F;2008&#x2F;01&#x2F;monads-in-python-with-n...</a><p>And here&#x27;s a library implementing monads and other stuff:<p><a href="https:&#x2F;&#x2F;pypi.python.org&#x2F;pypi&#x2F;PyMonad&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pypi.python.org&#x2F;pypi&#x2F;PyMonad&#x2F;</a><p>It still looks like I&#x27;m going to have to try using them before I can figure out if it&#x27;s worth trying to use them.