This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Ramchandra Apte
Recipients Ramchandra Apte, docs@python
Date 2012-09-24.14:27:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348496831.82.0.497019065466.issue16020@psf.upfronthosting.co.za>
In-reply-to
Content
In http://docs.python.org/py3k/tutorial/stdlib2.html#logging , some code in a code sample is missing ">>>".

The code is:

unsearched = deque([starting_node])
def breadth_first_search(unsearched):
    node = unsearched.popleft()
    for m in gen_moves(node):
        if is_goal(m):
            return m
        unsearched.append(m)


should be:
>>> unsearched = deque([starting_node])
>>> def breadth_first_search(unsearched):
>>>    node = unsearched.popleft()
>>>    for m in gen_moves(node):
>>>        if is_goal(m):
>>>            return m
>>>        unsearched.append(m)
History
Date User Action Args
2012-09-24 14:27:11Ramchandra Aptesetrecipients: + Ramchandra Apte, docs@python
2012-09-24 14:27:11Ramchandra Aptesetmessageid: <1348496831.82.0.497019065466.issue16020@psf.upfronthosting.co.za>
2012-09-24 14:27:11Ramchandra Aptelinkissue16020 messages
2012-09-24 14:27:11Ramchandra Aptecreate