PythonWise

If it won't be simple, it simply won't be. [Hire me, source code]

Showing posts with label configuration. Show all posts
Showing posts with label configuration. Show all posts
Thursday, July 09, 2020

Using module __dir__ and __getattr__ for configuration

›
PEP 562  added support for module level __dir__ and __getitem__ .  __dir__ is called when the built-in dir function is called on the modu...
14 comments:
Thursday, March 05, 2020

Using __getattr__ for nicer configuration API

›
Typically, you'll read configuration from files (such as YAML) and get them as a dictionary. However in Python you'd like to write c...
4 comments:
›
Home
View web version

About Me

Miki Tebeka
View my complete profile
Powered by Blogger.