Snippet of python to do interesting stuff
generator.py
: generators exampleiterator.py
: iterators exampleproperty.py
: properties examplemagic.py
: magic functions exampledecorator.py
: decorators examplefunction_decorator.py
: function decorator exampleclass_decorator.py
: class decoratorsmetaclass.py
: metaclass examplefactory.py
: class method as factory methodabstract.py
: abstract base classes
dump_classes.py
: print as json string all class-objects loaded by the class laoder (modules and classes)- a use case scenario is we have a thread taking snapshots and doing analysis