A literal constructor for frozensets
Discussions on Python.org
A literal constructor for frozensets
Structures such as lists, tuples, dictionaries, etc., have literal constructors, assert [] == list() assert () == tuple() assert {} == dict() but frozensets do not. To distinguish this from a dictionary, and to expand on the following idea: In a function, when declaring parameters between parentheses, you must specify the positional elements before the symbol /, which is the inverse of the asterisk (*) operator; a symbolic nod to math. Why not generalize the concept within the curly braces,...
0 comments
No comments yet.