Message96276
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. |
|
Date |
User |
Action |
Args |
2009-12-11 22:59:31 | ezio.melotti | set | recipients:
+ ezio.melotti, twouters, alexandre.vassalotti, benjamin.peterson |
2009-12-11 22:59:31 | ezio.melotti | set | messageid: <1260572371.46.0.474065011925.issue1967@psf.upfronthosting.co.za> |
2009-12-11 22:59:29 | ezio.melotti | link | issue1967 messages |
2009-12-11 22:59:28 | ezio.melotti | create | |
|