Multiple versions of a function?


#1

Is there any package that allows me to have different version of the same function in a file?
I thought about a file in the project folder that can store different version of the same function in a file, and simple choose it by clicking on the first line where you defined it!
e.g.
def my_func(args): #label1 for i in args: print i

def my_func(args): #label2 for e in args: print '-----', e
and just choose between them!

Is there something similar?
Is it such a bad Idea?


#2

Maybe think about using snippets for that