[issue11141] 2.x range() in 3.x shelve documentation
New submission from Daniel Urban <urban.dani+py@gmail.com>: The example in the shelve documentation (http://docs.python.org/dev/py3k/library/shelve.html#example) uses the old range() (which returned a list): d['xx'] = range(4) # this works as expected, but... d['xx'].append(5) # *this doesn't!* -- d['xx'] is STILL range(4)! ---------- assignee: docs@python components: Documentation messages: 128138 nosy: docs@python, durban priority: normal severity: normal status: open title: 2.x range() in 3.x shelve documentation versions: Python 3.1, Python 3.2 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11141> _______________________________________
SilentGhost <ghost.adh@gmail.com> added the comment: Here is the patch. ---------- keywords: +needs review, patch nosy: +SilentGhost versions: +Python 3.3 Added file: http://bugs.python.org/file20713/shelve.rst.diff _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11141> _______________________________________
Changes by Raymond Hettinger <rhettinger@users.sourceforge.net>: ---------- assignee: docs@python -> resolution: -> accepted _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11141> _______________________________________
Antoine Pitrou <pitrou@free.fr> added the comment: Committed in r88377, thank you! ---------- nosy: +pitrou resolution: accepted -> fixed stage: -> committed/rejected status: open -> closed versions: -Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11141> _______________________________________
participants (4)
-
Antoine Pitrou
-
Daniel Urban
-
Raymond Hettinger
-
SilentGhost