diff options
author | Raymond Hettinger <python@rcn.com> | 2009-04-08 22:50:09 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-04-08 22:50:09 (GMT) |
commit | 2a39e0f98e915a6c53dce051a0fc02e5fd25f018 (patch) | |
tree | f105202c43bd0b1983e3749c3edd4003c58cabea | |
parent | 9d74032c873bfc07cb51d009ab57de92f9a6bb3c (diff) | |
download | cpython-2a39e0f98e915a6c53dce051a0fc02e5fd25f018.zip cpython-2a39e0f98e915a6c53dce051a0fc02e5fd25f018.tar.gz cpython-2a39e0f98e915a6c53dce051a0fc02e5fd25f018.tar.bz2 |
Clean-up an example.
-rw-r--r-- | Doc/whatsnew/3.1.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.1.rst b/Doc/whatsnew/3.1.rst index d54196e..7ada5dd 100644 --- a/Doc/whatsnew/3.1.rst +++ b/Doc/whatsnew/3.1.rst @@ -215,8 +215,8 @@ New, Improved, and Deprecated Modules the field names are being created by an external source such as a CSV header, SQL field list, or user input:: - >>> query = input('Enter a query: ') - Enter a query: SELECT region, dept, count(*) FROM main GROUPBY region, dept + >>> query = input() + SELECT region, dept, count(*) FROM main GROUPBY region, dept >>> cursor.execute(query) >>> query_fields = [desc[0] for desc in cursor.description] |