4 ms·
> and the forcing of parentheses for print statements You mean print functions. I love the new change because you can pass "print" around like any other functi
by kstrauser 10y ago
> and the forcing of parentheses for print statements
You mean print functions. I love the new change because you can pass "print" around like any other function now, letting you write code like:
def my_map(data, func):
for item in data:
func(item)
my_map(dataset, insert_into_database)
# For testing
my_map(dataset, print)