Simon Willison’s Weblog

Subscribe

1 item tagged “reduce”

2007

A nice example of when to use reduce in python. As a shortcut for assembling a large OR query using the Django ORM.

# 2nd August 2007, 11:51 pm / django, orm, python, reduce