Monthly Archives: April 2012

Python Barcamp Cologne

The Python BarCamp Cologne 2012 happened last weekend. It was well organized by Reimar Bauer and the Cyrus office space is just very well suited for this kind of event: lots of space, rooms, equipment, drinks, … The proceedings of … Continue reading

Posted in en | Leave a comment

Profiling class-based views

Just a quick note for profiling e.g. Zope views: class MyView(object):     def __call__(self):         result = {}         cProfile.runctx(‘result[“x”] = super(Body, self).__call__()’,                         globals(), locals(), ‘/tmp/viewprofile’)         return result[‘x’] Even though “exec ‘result = super(…) in globals(), locals()’ works, … Continue reading

Posted in en | Leave a comment