🐧 [$] Improving Python's SimpleNamespace
Nachrichtenbereich: 🐧 Linux Tipps
🔗 Quelle: lwn.net
Python's SimpleNamespace class provides an easy way for a programmer to create an object to store values as attributes without creating their own (almost empty) class. While it is useful (and used) in its present form, Raymond Hettinger thinks it could be better. He would like to see the hooks used by mappings (e.g. dictionaries) added to the class, so that attributes can be added and removed using either x.a or x['a']. It would bring benefits for JSON handling and more in the language. ...
🐧 [$] Improving Python's SimpleNamespace
📈 54.56 Punkte
🐧 Linux Tipps
🐧 [$] Improving pretty-printing in Python
📈 16.21 Punkte
🐧 Linux Tipps
🔧 Improving The Double Diamond Design Process
📈 11.05 Punkte
🔧 Programmierung
🔧 Improving Your GitHub Profile README
📈 11.05 Punkte
🔧 Programmierung