[issue31995] Set operations documentation error

2017-11-09 Thread Alexander Mentis

New submission from Alexander Mentis :

Documentation for set/frozenset says |=, &=, -=, ^= operators do not apply to 
immutable instances of frozenset. This is incorrect. These operators can be 
used on frozenset; however, they behave differently on frozenset than on set. 
When used with set, they modify the target set in place. When used with 
frozenset, they return a new frozenset that replaces the target frozenset.

--
assignee: docs@python
components: Documentation
messages: 305981
nosy: Alexander Mentis, docs@python
priority: normal
severity: normal
status: open
title: Set operations documentation error
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 
<https://bugs.python.org/issue31995>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31995] Set operations documentation error

2017-11-10 Thread Alexander Mentis

Alexander Mentis  added the comment:

I don't think you understood my bug.

That the augmented assignment operators work differently for set and frozenset 
is not the issue.

The issue is that the documentation says that the |=, &=, -=, ^= operators do 
not apply to immutable instances of frozenset. This is incorrect.

--
resolution: rejected -> 
status: closed -> open

___
Python tracker 
<https://bugs.python.org/issue31995>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com