docopt / docopt.c

C-code generator for docopt language.
MIT License
318 stars 46 forks source link

why is the main script called docopt.c.py instead of the initial docopt_c.py? #5

Closed ffunenga closed 11 years ago

ffunenga commented 11 years ago

This is problematic (and very restrictive) because this project is still in the beginning and deciding something like this will restrict the option of, in the future, make a python script have this:

import docopt_c
# or
from docopt_c import docopt_c

which BTW does not work if written like this:

>>> import docopt.c
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named c

We need to think five years ahead of our time, always!

keleshev commented 11 years ago

You are right, this makes impossible to import docopt.c.py. I don't think it would be a common use-case. But having a python script that you can't import makes me uncomfortable.

I'm +1

kblomqvist commented 11 years ago

It was changed to match precisely with the project name. I wasn't aware that it had side effects like this. Good spot.