capitalization of library class names

前端 未结 3 1398
生来不讨喜
生来不讨喜 2021-01-19 21:50

Why do collection.defaultdict and collection.OrderedDict have different capitalizations?

Is there some subtle difference that I should be a

3条回答
  •  星月不相逢
    2021-01-19 22:36

    The capitalization of the class names is irrelevant, it doesn't signify anything. Except that Python has sometimes grown organically and the standard library doesn't have the same homogenous feel as other large libraries such as the Win32 API or the Java standard library.

提交回复
热议问题