Hi Chris, On Wed, Oct 14, 2015 at 02:05:43AM +1100, Chris Angelico wrote: > On Wed, Oct 14, 2015 at 1:59 AM, Ervin Hegedüs <airw...@gmail.com> wrote: > > no, I have filesystem. I help to contribute a software, which had > > written in C. The configuration schema is very simple, there are > > several keywords, but not all required function could be > > configure with them. Python would be a good choice, but the > > users aren't programmers in most cases. I just don't want to > > start the documentation, that > > > > "Make a Python script like this: > > > > import mymodul > > > > ...." > > > > and nobody knows, why is it require, because there isn't any > > module with this name. > > Sounds to me like the easiest way would be to inject into the > builtins. You should be able to import the builtins module from your C > code, and then stuff some extra attributes into it; they'll be > automatically available to the script, same as the "normal" built-in > names like int, super, and ValueError.
well, sounds good - this solution would be right for me. Could you show me a good example and/or documentation about this? I've looked up, but "python extend built-in module" is may be too simple expression :). a. -- https://mail.python.org/mailman/listinfo/python-list