Message227557
| 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:56 | James.Paget | set | recipients:
+ James.Paget |
| 2014年09月25日 17:26:56 | James.Paget | set | messageid: <1411666016.57.0.993512040715.issue22498@psf.upfronthosting.co.za> |
| 2014年09月25日 17:26:56 | James.Paget | link | issue22498 messages |
| 2014年09月25日 17:26:56 | James.Paget | create |
|