Changes between Initial Version and Version 1 of Ticket #32764
- Timestamp:
- May 18, 2021, 10:19:25 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32764 – Description
initial v1 9 9 This effectively makes dynamic settings impossible. There are probably many use cases for settings which change during runtime, my use-case is dynamic credentials that rotate periodically. So I've used features from PEP-562 (requires Python 3.7) to make certain attributes of a module dynamic. The only requirement really is that `getattr()` be called on the module. 10 10 11 Is there any reason that the Settings class could instead maintain a list of settings and use a `__getattr__` method to check known settings and pass those to the module?11 Is there any reason that the Settings class could not instead maintain a list of settings and use a `__getattr__` method to check known settings and pass those to the module? 12 12