From 81a26a86e22a36b712060ceb1e01d7f67d305e92 Mon Sep 17 00:00:00 2001 From: Stefan Wehrmeyer Date: Fri, 31 Jan 2014 22:21:50 +0100 Subject: [PATCH] Convert print to function in documentation --- docs/quickstart.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 964484f..648dab6 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -94,7 +94,7 @@ Now let's get some real data out of the table:: If we simply want to iterate over all rows in a table, we can omit :py:meth:`all() `:: for user in db['user']: - print user['email'] + print(user['email']) We can search for specific entries using :py:meth:`find() ` and :py:meth:`find_one() `:: @@ -120,7 +120,7 @@ use the full power of SQL queries. Here's how you run them with ``dataset``:: result = db.query('SELECT country, COUNT(*) c FROM user GROUP BY country') for row in result: - print row['country'], row['c'] + print(row['country'], row['c']) The :py:meth:`query() ` method can also be used to access the underlying `SQLAlchemy core API `_, which allows for the