9 Apr
2021
9 Apr
'21
8:22 a.m.
09.04.21 12:50, Matt del Valle пише:
I think sets are the only type in the builtins module without a dedicated literal syntax?
Not only. bytearray, frozenset, slice. It is difficult to create some complex objects without using constructor. Not counting range, memoryview and dict views, descriptors (staticmethod, classmethod, property), exceptions, iterators (filter, map, zip, enumerate, reversed and numerous collection iterators). All these types are defined in the builtins module.