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

Posted by Jason S on Stack Overflow See other posts from Stack Overflow or by Jason S
Published on 2010-05-17T19:56:57Z Indexed on 2010/05/17 20:01 UTC
Read the original article Hit count: 201

Filed under:
|

I'm trying to put together a really simple module with one .py source file in it, and have already run into a roadblock. I was going to call it scons-config but import scons-config doesn't work in Python. I found this SO question and looked at PEP8 style guide but am kind of bewildered, it doesn't talk about two-word-name conventions.

What's the right way to deal with this?

  • module name: SconsConfig? scons_config? sconsconfig? scons.config?
  • name of the single .py file in it: scons-config.py? scons_config.py?

© Stack Overflow or respective owner

Related posts about python

Related posts about naming-conventions