#!/usr/bin/env python class bla (list): def __init__ (self, sequenz): list.__init__ (self, sequenz) def __getitem__ (self, index): return list.__getitem__(self, index) + 3 if __name__=='__main__': f = bla ([1,2,3,4,5]) for b in f: print b