Sorry, something went wrong.
|
It may be interesting to store unknown variables in a dictionary and expose it somewhere, similar to sys._xoptions. It would allow implement https://discuss.python.org/t/fr-allow-private-runtime-config-to-enable-extending-without-breaking-the-pyconfig-abi/18004 use case: private vendor-specific variables. For that, the configuration format should have a deterministic way to get the type of unknown variable. In sys._xoptions, the key is a string and the value is a string or True if there is no value. Looking at TOML specification, I see the following types would be interesting to support:
|
Sorry, something went wrong.
|
I abandon this approach based on text configuration: see https://discuss.python.org/t/fr-allow-private-runtime-config-to-enable-extending-without-breaking-the-pyconfig-abi/18004/24 for the rationale. Let's focus on PR #110176 PyInitConfig API instead which seem to be please more people. |
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.