模块的Python命名约定

问题描述:

我有一个模块,其目的是定义一个称为"nib"的类. (以及一些相关的类.)我应该如何调用模块本身? 笔尖"? "nibmodule"?还有吗?

I have a module whose purpose is to define a class called "nib". (and a few related classes too.) How should I call the module itself? "nib"? "nibmodule"? Anything else?

只是笔尖.将类Nib命名为大写N.有关命名约定和其他样式建议的更多信息,请参见

Just nib. Name the class Nib, with a capital N. For more on naming conventions and other style advice, see PEP 8, the Python style guide.