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
c961322f
Commit
c961322f
authored
Oct 17, 2010
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Syntax fixes for examples in the Doc/includes
parent
134c35b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Doc/includes/email-headers.py
Doc/includes/email-headers.py
+3
-3
Doc/includes/sqlite3/load_extension.py
Doc/includes/sqlite3/load_extension.py
+1
-1
No files found.
Doc/includes/email-headers.py
View file @
c961322f
...
...
@@ -12,6 +12,6 @@ headers = Parser().parsestr('From: <user@example.com>\n'
'Body would go here
\
n
'
)
# Now the header items can be accessed as a dictionary:
print
'To: %s'
%
headers
[
'to'
]
print
'From: %s'
%
headers
[
'from'
]
print
'Subject: %s'
%
headers
[
'subject'
]
print
(
'To: %s'
%
headers
[
'to'
])
print
(
'From: %s'
%
headers
[
'from'
])
print
(
'Subject: %s'
%
headers
[
'subject'
])
Doc/includes/sqlite3/load_extension.py
View file @
c961322f
...
...
@@ -23,4 +23,4 @@ con.executescript("""
insert into recipe (name, ingredients) values ('pumpkin pie', 'pumpkin sugar flour butter');
"""
)
for
row
in
con
.
execute
(
"select rowid, name, ingredients from recipe where name match 'pie'"
):
print
row
print
(
row
)
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