In message <[EMAIL PROTECTED]>, Steven D'Aprano wrote: > Would it really be "confusing" if sets used the same interface as dicts > use? I don't think so. What else could "del aset[x]" mean other than > "delete element x"?
Yes, but "x" in what sense? In dicts it's a key, in sets, shouldn't it also be a key and not a value? Sets have no keys, only values. One might suggest assignment of keys, à la array indexes, but that means assigning an ordering to the values, whereas sets are explicitly unordered. -- http://mail.python.org/mailman/listinfo/python-list