Message242721
I get a test failure in Cython's compatibility tests which seems to be attributable to this change:
"""
>>> def sideeffect(x):
... L.append(x)
... return x
>>> def unhashable(x):
... L.append(x)
... return [x]
>>> L = []
>>> {1:2, sideeffect(2): 3, 3: 4, unhashable(4): 5, sideeffect(5): 6} # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError: ...unhashable...
>>> L
[2, 4]
"""
Instead, L ends up being [2, 4, 5]. Is this intended? Or acceptable? |
|
Date |
User |
Action |
Args |
2015-05-07 18:34:03 | scoder | set | recipients:
+ scoder, gvanrossum, twouters, georg.brandl, terry.reedy, paul.moore, ncoghlan, belopolsky, benjamin.peterson, ezio.melotti, andybuckley, r.david.murray, zbysz, ethan.furman, eric.snow, berker.peksag, Joshua.Landau, steve.dower, pconnell, NeilGirdhar, Jeff.Kaufman, SpaghettiToastBook |
2015-05-07 18:34:03 | scoder | set | messageid: <1431023643.46.0.758398499777.issue2292@psf.upfronthosting.co.za> |
2015-05-07 18:34:03 | scoder | link | issue2292 messages |
2015-05-07 18:34:03 | scoder | create | |
|