mirror of https://github.com/python/cpython
parent
4baf480088
commit
9c1c52b777
|
@ -218,7 +218,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
|
||||
|
@ -309,6 +311,8 @@ tree searches::
|
|||
>>> print "Handling", d.popleft()
|
||||
Handling task1
|
||||
|
||||
::
|
||||
|
||||
unsearched = deque([starting_node])
|
||||
def breadth_first_search(unsearched):
|
||||
node = unsearched.popleft()
|
||||
|
|
Loading…
Reference in New Issue