From 48e6c49eebe39ec6694cf0d3586811e7d9dfb39c Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Fri, 7 Jul 2023 11:18:39 -0700 Subject: [PATCH] Use print as a function (Python 3) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e723aed..bf624e1 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Now we create the `Memoizer` object itself. Any keyword arguments will be stored There is a direct API for retrieving a value. We pass it the key we want, and a function that is used to calculate it. def basic_func(): - print 'called' + print('called') return 123 # Manually retrieve a value. @@ -54,7 +54,7 @@ Function arguments You can specify the positional and keyword arguments to call the function with: def adder_func(a, b): - print called + print(called) return a + b # Passing args... @@ -161,7 +161,7 @@ Basic usage: @memo def cached_func(): - print 'called' + print('called') return 456 cached_func()