Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2a39e0f9
Commit
2a39e0f9
authored
Apr 08, 2009
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean-up an example.
parent
9d74032c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/whatsnew/3.1.rst
Doc/whatsnew/3.1.rst
+2
-2
No files found.
Doc/whatsnew/3.1.rst
View file @
2a39e0f9
...
@@ -215,8 +215,8 @@ New, Improved, and Deprecated Modules
...
@@ -215,8 +215,8 @@ New, Improved, and Deprecated Modules
the field names are being created by an external source such as a
the field names are being created by an external source such as a
CSV header, SQL field list, or user input::
CSV header, SQL field list, or user input::
>>> query = input(
'Enter a query: '
)
>>> query = input()
Enter a query:
SELECT region, dept, count(*) FROM main GROUPBY region, dept
SELECT region, dept, count(*) FROM main GROUPBY region, dept
>>> cursor.execute(query)
>>> cursor.execute(query)
>>> query_fields = [desc[0] for desc in cursor.description]
>>> query_fields = [desc[0] for desc in cursor.description]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment