Cannot open file (/home/u0059333506/public_html/wordpress/wp-content/backup/.htaccess)Cannot write to file (/home/u0059333506/public_html/wordpress/wp-content/backup/.htaccess) decorator « Hanno’s Coding Log

Posts Tagged ‘decorator’

Adding metadata to built-in types in Python

In this article I will show how you add metadata to any object and optionally change only part of its behavior (in this example the string representation __str__), while maintaining all other data and behavior of the object itself.
I will show how to write a class that dynamically decides which base class to use, based on the parameters that are passed to the constructor. I call that “dynamic inheritance”.

This way you can build universal decorators. (Decorators that work on more than one type.)
More »

Stoppt die Vorratsdatenspeicherung! Jetzt klicken & handeln!Willst du auch bei der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien: