Às 07:30 de 21-01-2016, Paulo da Silva escreveu: > Hi all. > > What is the fastest implementation of the following code? > > def g(p): > ... > return something > > def f1(p="p1"): > return g(p) > > def f2(p="p2"): > return g(p) >
Thanks to all who responded. I'll try "partial" in my case. It seems good and simple. Paulo -- https://mail.python.org/mailman/listinfo/python-list