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@python components: Documentation messages: 171143 nosy: docs@python, ramchandra.apte priority: normal severity: normal status: open title: Missing >>> in Python code example _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16020> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com