del and sets proposal

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sun Oct 5 18:52:14 EDT 2008


In message <00f88c9e$0$20633$c3e8da3 at news.astraweb.com>, Steven D'Aprano
wrote:

> On Sun, 05 Oct 2008 22:11:38 +1300, Lawrence D'Oliveiro wrote:
> 
>> In message <00f80c6a$0$20633$c3e8da3 at news.astraweb.com>, 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?
> 
> The only sense possible.

There is no precedent for using a set element as a subscript to the set.



More information about the Python-list mailing list