Same function but different names with different set of default arguments

Paulo da Silva p_s_d_a_s_i_l_v_a_ns at netcabo.pt
Thu Jan 21 02:30:04 EST 2016


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
Paulo



More information about the Python-list mailing list