Message65109
On Mon, Apr 7, 2008 at 3:07 PM, Guido van Rossum <report@bugs.python.org> wrote:
> Can you show an example where this would be different?
Admittedly a contrived example, but
... def __hash__(self):
... print('hash', self)
... return int.__hash__(self)
...
>>> a,b,c = map(X, range(3))
>>> {a,b,c}
hash 2
hash 1
hash 0
{0, 1, 2}
>>> {a,*(b,c)}
hash 0
hash 1
hash 2
{0, 1, 2} |
|
| Date |
User |
Action |
Args |
| 2008-04-07 19:53:35 | belopolsky | set | spambayes_score: 0.381459 -> 0.381459 recipients:
+ belopolsky, gvanrossum, twouters, georg.brandl |
| 2008-04-07 19:53:34 | belopolsky | link | issue2292 messages |
| 2008-04-07 19:53:34 | belopolsky | create | |
|