Each code snippet should run as a standalone example (based on Python 3.12).
The standard library caching decorator functools.lru_cache has known limitations when used with instance methods. In particular, the cache is a property of the class and holds re... (more…)
Read more »
At this point I've only written a few, relatively small programs
with type hints. At times when doing this, I've wound up feeling
that I was writing programs in a language that wasn't quite exactly
Python (but obviously was closely related to it). What wa... (more…)
Read more »
I wonder how many people realize that Python is has a lot of syntactic sugar? I'm not claiming it's like a Lisp-based language where the syntax is as bare bones as possible (although the Lisp comparison is not entirely unfounded), but much of Python's syn... (more…)
Read more »
MetaLearners for CATE estimation. Contribute to Quantco/metalearners development by creating an account on GitHub. (more…)
Read more »
Automate access to Clubhouse to find interesting rooms and discussions... (more…)
Read more »