[New-bugs-announce] [issue17458] Automatic type conversion from set to frozenset

Jose Antonio Martin H report at bugs.python.org
Mon Mar 18 13:53:43 CET 2013


New submission from Jose Antonio Martin H:

Is it possible to consider the automatic type conversion from set to frozenset whenever a set is declared inside a set, as the key of a Counter and as the key of a Dict? Tha is, the case when a set is used but a hashable object is requested.

Having to deal with typing frozenset every time is very uncomfortable and it is quite natural to work with sets of sets.

If you get an exception when trying to create a set of set then why not deferring such exception to the case of trying to modify an immutable set?

----------
components: Library (Lib)
messages: 184451
nosy: jamartinh
priority: normal
severity: normal
status: open
title: Automatic type conversion from set to frozenset
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17458>
_______________________________________


More information about the New-bugs-announce mailing list