python: naming a module that has a two-word name -


I am trying to add a really simple module with a .py source file in it, and already have a Blocking I was going to call it scons-config but import scons-config does not work in Python

  • I saw and saw, But nervous, it does not talk about two-word-name conventions.

    • Name of module: SconsConfig? Scons_config? Sconsconfig? Scons.config?
    • The name of the .key file in it: scons-config.py? I think "the use of underscores has been frustrated" and I left me in a dead end: Should I use "scan configured"? Or "scans_config" (I think other people are out)?

If you have to, then always use _ underlines .

Using a dot . will also not work, otherwise

will be broken by scons.config

will break.

But it clearly describes:

The package and module name

should be the module short, all-lowercase name < The The lower, all-lowercase names should also be, however the use of underscores has been frustrated .

Update:

To target your question directly: I think that sconsconfig is fine is. It is not very long and quite readable. But honestly, I do not think anyone will convince you if you use underscores and your code will go from any decision, always have a certain level Where you should not pay more attention to that .


Comments