Message267357
Looking at the potential impact of being able to use C99 initializers for the main configuration structs, I realised those could be a *lot* easier to work with if they consisted entirely of pointers to Python objects:
* NULL initialisation would correctly indicate "not set" for each value
* Running Py_XDECREF on every field will correctly release memory
* Boolean toggles are clearly separated from multi-value integers (PyBool vs PyLong)
* No conversion is needed to provide a read-only view of the config data at the Python level
This wouldn't be feasible for CoreConfig (since that is populated before Python object creation is permitted), but should work for MainInterpreterConfig and InterpreterConfig. |
|
Date |
User |
Action |
Args |
2016-06-05 01:03:10 | ncoghlan | set | recipients:
+ ncoghlan, twouters, barry, terry.reedy, jcea, Arfrever, Drekin, dstufft, Gregory.Salvan, sbspider |
2016-06-05 01:03:10 | ncoghlan | set | messageid: <1465088590.36.0.601182332458.issue22257@psf.upfronthosting.co.za> |
2016-06-05 01:03:10 | ncoghlan | link | issue22257 messages |
2016-06-05 01:03:09 | ncoghlan | create | |
|