2023-04-21 00:51 に Gustaf Waldemarson さんは書きました:

Oh i see you read all the files.
Usually you need to stop looking once you find an rc file.

I guess that really depends on the program, but since pdb is modelled on
gdb, I figured it made sense to do something similar :)

I don't have a problem with "cascading" configuration files, but in my
understanding, $XDG_CONFIG_HOME/python/pdbrc, ~/config/python/pdbrc, and
~/.pdbrc are conceptually all the same thing: the user's personal config
file.  I don't know how gdb does it, but I imagine it would be a rather
annoying debugging session if you had a stale ~/.pdbrc lying around and it partially overrides $XDG_CONFIG_HOME/python/pdbrc (partially because it's
the ancestor version of the XDG-ly-correct file).  Pragmatically I don't
see a practical use case for having more than one "user" file plus the
"project-local" file.

I'm happy to be taught otherwise, but I suspect if *all* the files are read and last one wins for each setting, it will need to be documented emphatically.

Steve

_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/5F3TVDLGAQGNQB2DZSVMEPL7P6S7YIXF/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to