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 ezio.melotti
Recipients alexandre.vassalotti, benjamin.peterson, ezio.melotti, twouters
Date 2009-12-11.22:59:28
SpamBayes Score 2.7187461e-09
Marked as misclassified No
Message-id <1260572371.46.0.474065011925.issue1967@psf.upfronthosting.co.za>
In-reply-to
Content
The patch (backport_dictviews.diff) doesn't seem to work for me. I
applied it on trunk after a svn up, did "./configure && make" and when I
tried d.view{items|keys|values} Python segfaulted:

Python 2.7a1+ (trunk:76759M, Dec 12 2009, 00:28:52)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> d = dict(a=3, b=5)
>>> d.viewitems()
Segmentation fault

I'm tested it on Ubuntu 9.10.

The docstrings of the three methods are also wrong:

+PyDoc_STRVAR(viewkeys__doc__,
+	     "D.keys() -> a set-like object providing a view on D's keys");

This should be "D.viewkeys() -> ...", same with the other two.
History
Date User Action Args
2009-12-11 22:59:31ezio.melottisetrecipients: + ezio.melotti, twouters, alexandre.vassalotti, benjamin.peterson
2009-12-11 22:59:31ezio.melottisetmessageid: <1260572371.46.0.474065011925.issue1967@psf.upfronthosting.co.za>
2009-12-11 22:59:29ezio.melottilinkissue1967 messages
2009-12-11 22:59:28ezio.melotticreate