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
f8a28654
Commit
f8a28654
authored
Sep 24, 2012
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#16019, #16020: merge with 3.2.
parents
5799a2d8
8618fb6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Doc/tutorial/stdlib2.rst
Doc/tutorial/stdlib2.rst
+6
-2
No files found.
Doc/tutorial/stdlib2.rst
View file @
f8a28654
...
...
@@ -95,7 +95,7 @@ placeholders unchanged if data is missing::
>>> d = dict(item='unladen swallow')
>>> t.substitute(d)
Traceback (most recent call last):
.
.
.
.
.
.
KeyError: 'owner'
>>> t.safe_substitute(d)
'Return the unladen swallow to $owner.'
...
...
@@ -220,7 +220,9 @@ At its simplest, log messages are sent to a file or to ``sys.stderr``::
logging.error('Error occurred')
logging.critical('Critical error -- shutting down')
This produces the following output::
This produces the following output:
.. code-block:: none
WARNING:root:Warning:config file server.conf not found
ERROR:root:Error occurred
...
...
@@ -311,6 +313,8 @@ tree searches::
>>> print("Handling", d.popleft())
Handling task1
::
unsearched = deque([starting_node])
def breadth_first_search(unsearched):
node = unsearched.popleft()
...
...
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