This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Operations between sets
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: nerby, rhettinger
Priority: normal Keywords:

Created on 2004-07-22 15:32 by nerby, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg21756 - (view) Author: Francesco Ricciardi (nerby) Date: 2004-07-22 15:32
The documentation for the new Set types does not say 
anything about applying a binary operation between two 
sets of different type (i.e. one is a frozenset, the other 
is a normal set).

I suppose the result is always a nromal set, but this 
should be documented.
msg21757 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2004-07-22 19:09
Logged In: YES 
user_id=80475

The result matches the type of the left-hand operand:

   set & frozenset --> set
   frozenset & set --> frozenset
History
Date User Action Args
2022-04-11 14:56:05adminsetgithub: 40623
2004-07-22 15:32:55nerbycreate