We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The type, str.maketrans, and bytes.maketrans builtins should support frozendict. The issues with exec and eval were reported in a separate issue.
type
str.maketrans
bytes.maketrans
frozendict
exec
eval
>>> type("MyClass", (), {"x": 10}) <class '__main__.MyClass'> >>> type("MyClass", (), frozendict({"x": 10})) Traceback (most recent call last): File "<pyshell#30>", line 1, in <module> MyClass = type("MyClass", (), frozendict({"x": 10})) TypeError: type.__new__() argument 3 must be dict, not frozendict >>> str.maketrans(dict({'a': 'A'})) {97: 'A'} >>> str.maketrans(frozendict({'a': 'A'})) Traceback (most recent call last): File "<pyshell#23>", line 1, in <module> str.maketrans(frozendict({'a': 'A'})) TypeError: if you give only one argument to maketrans it must be a dict
type()
str.maketrans()
The
type,str.maketrans, andbytes.maketransbuiltins should supportfrozendict. The issues withexecandevalwere reported in a separate issue.Linked PRs
frozendictsupport totype()#145124frozendictsupport tostr.maketrans()#145129