immutabledict icon indicating copy to clipboard operation
immutabledict copied to clipboard

Class name should be ImmutableDict

Open cool-RR opened this issue 5 years ago • 2 comments

I think that the name of the class should be ImmutableDict rather than immutabledict. Python's standard library uses lower-case names like that, but it's standard for third-party packages to use camel-case for class names.

cool-RR avatar Oct 06 '20 12:10 cool-RR

I agree, I keeped it like this for now to have a naming scheme similar in casing to frozendict. I may change it for a further release to have a more standard naming schema :)

corenting avatar Oct 06 '20 13:10 corenting

It doesn't have to in this case. Look at namedtuple

licht1stein avatar Nov 18 '20 08:11 licht1stein

Same as frozenset, tuple, dict.

ArneBachmannDLR avatar Sep 23 '22 07:09 ArneBachmannDLR

Yeah I think it's good to do like namedtuple and keep something similar to dict, frozenset, and tuple, especially since it was already the case in frozendict, so I will close this issue.

corenting avatar Sep 23 '22 13:09 corenting