[docs] [issue16020] Missing >>> in Python code example

Ramchandra Apte report at bugs.python.org
Mon Sep 24 16:27:11 CEST 2012


New submission from Ramchandra Apte:

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)

----------
assignee: docs at python
components: Documentation
messages: 171143
nosy: docs at python, ramchandra.apte
priority: normal
severity: normal
status: open
title: Missing >>> in Python code example

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16020>
_______________________________________


More information about the docs mailing list