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.

Author James.Paget
Recipients James.Paget
Date 2014-09-25.17:26:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1411666016.57.0.993512040715.issue22498@psf.upfronthosting.co.za>
In-reply-to
Content
The operator -= modifies a frozenset (this should not be possible),
instead of signaling a TypeError.  Contrast with the += operator.

>>> f=frozenset([1,2])
>>> f
frozenset([1, 2])
>>> f -= frozenset([1])
>>> f
frozenset([2])
>>> f -= frozenset([2])
>>> f
frozenset([])
>>> f += frozenset([2])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for +=: 'frozenset' and 'frozenset'
>>>
History
Date User Action Args
2014-09-25 17:26:56James.Pagetsetrecipients: + James.Paget
2014-09-25 17:26:56James.Pagetsetmessageid: <1411666016.57.0.993512040715.issue22498@psf.upfronthosting.co.za>
2014-09-25 17:26:56James.Pagetlinkissue22498 messages
2014-09-25 17:26:56James.Pagetcreate