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.

classification
Title: 2.x range() in 3.x shelve documentation
Type: Stage: resolved
Components: Documentation Versions: Python 3.1, Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: SilentGhost, daniel.urban, docs@python, pitrou
Priority: normal Keywords: needs review, patch

Created on 2011-02-07 17:03 by daniel.urban, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
shelve.rst.diff SilentGhost, 2011-02-07 17:14
Messages (3)
msg128138 - (view) Author: Daniel Urban (daniel.urban) * (Python triager) Date: 2011-02-07 17:03
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)!
msg128140 - (view) Author: SilentGhost (SilentGhost) * (Python triager) Date: 2011-02-07 17:14
Here is the patch.
msg128162 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-02-07 23:19
Committed in r88377, thank you!
History
Date User Action Args
2022-04-11 14:57:12adminsetgithub: 55350
2011-02-07 23:19:27pitrousetstatus: open -> closed

versions: - Python 3.3
nosy: + pitrou

messages: + msg128162
resolution: accepted -> fixed
stage: resolved
2011-02-07 17:53:05rhettingersetassignee: docs@python ->
resolution: accepted
nosy: SilentGhost, daniel.urban, docs@python
2011-02-07 17:14:59SilentGhostsetfiles: + shelve.rst.diff
versions: + Python 3.3
nosy: + SilentGhost

messages: + msg128140

keywords: + needs review, patch
2011-02-07 17:03:02daniel.urbancreate