Changes between Initial Version and Version 1 of Ticket #32764


Ignore:
Timestamp:
May 18, 2021, 10:19:25 PM (4 years ago)
Author:
Mike Brancato
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32764 – Description

    initial v1  
    99This 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.
    1010
    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?
     11Is 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?
    1212
Back to Top