PEP-0218 (Was: RE: Sets in Python)

Michael Ströder michael at
Fri Feb 2 12:38:19 EST 2001

Mikael Olofsson wrote:
> On 31-Jan-01 Tim Peters wrote:
>  >  Note Greg Wilson's PEP for adding a set type to Python:
>  >
>  >
> This looks promising. I am especially glad to see that the PEP proposes
> the logical operations '|', '&', and '^' to implement union, intersection
> and symmetric difference. However, I'm not sure I like the proposed use
> of '-' for difference.

I second that. '-' could also be associated to be S^-1 (inverse set)
of set S.

Ciao, Michael.

More information about the Python-list mailing list