
What is the meaning of value owner in Config class? It prevents useful debugging output from displaying (like --help option, which doesn't work for translator.py on my machine due to missing compiler traceback). https://bitbucket.org/pypy/pypy/src/36abd0dd07d468456e1acb2565f0b59979ed1445... -- anatoly t.

On Mon, Dec 24, 2012 at 2:18 PM, Maciej Fijalkowski <fijall@gmail.com> wrote: On Mon, Dec 24, 2012 at 1:16 PM, anatoly techtonik <techtonik@gmail.com>
to #pypy on IRC. I seriously don't understand the question though.
I am trying to read help for rpython cli utility. parse_options_and_load_target() ... I tried to debug why the --help option doesn't work and the utility starts translating. The options stuff is interwined with pypy.config.config.Config object. If you try to print the value of this object in pypy\pypy\translator\goal\translate.py:parse_options_and_load_target you'll get just one line: [translate] If you comment the block marked by the link above, which is: if self._cfgimpl_value_owners.get(name, None) == 'default': continue Then the output is an indented tree that includes the value of help option I was looking for. So, the question is what the check with _cfgimpl_value_owners is for?

Hi Anatoly, On Mon, Dec 24, 2012 at 6:31 PM, anatoly techtonik <techtonik@gmail.com> wrote:
[platform:error] Could not find a Microsoft Compiler
That was a bug caused by not finding any compiler. I moved the help display to occur earlier, which fixes this bug (and lets --help run in less than 15 seconds, too). A bientôt, Armin.

On Mon, Dec 24, 2012 at 2:18 PM, Maciej Fijalkowski <fijall@gmail.com> wrote: On Mon, Dec 24, 2012 at 1:16 PM, anatoly techtonik <techtonik@gmail.com>
to #pypy on IRC. I seriously don't understand the question though.
I am trying to read help for rpython cli utility. parse_options_and_load_target() ... I tried to debug why the --help option doesn't work and the utility starts translating. The options stuff is interwined with pypy.config.config.Config object. If you try to print the value of this object in pypy\pypy\translator\goal\translate.py:parse_options_and_load_target you'll get just one line: [translate] If you comment the block marked by the link above, which is: if self._cfgimpl_value_owners.get(name, None) == 'default': continue Then the output is an indented tree that includes the value of help option I was looking for. So, the question is what the check with _cfgimpl_value_owners is for?

Hi Anatoly, On Mon, Dec 24, 2012 at 6:31 PM, anatoly techtonik <techtonik@gmail.com> wrote:
[platform:error] Could not find a Microsoft Compiler
That was a bug caused by not finding any compiler. I moved the help display to occur earlier, which fixes this bug (and lets --help run in less than 15 seconds, too). A bientôt, Armin.
participants (3)
-
anatoly techtonik
-
Armin Rigo
-
Maciej Fijalkowski