Apparently the thread poster cannot receive email, I just received a bounce on my previous email :-/
On Thu, Jan 21, 2016, 08:49 Yann Kaiser <kaiser.y...@gmail.com> wrote: > partial treats keyword arguments as default values, though they become > keyword-only as a result : > > f1 = functools.partial(g, p="p1") > > On Thu, Jan 21, 2016, 08:35 Paulo da Silva < > p_s_d_a_s_i_l_v_a...@netcabo.pt> wrote: > >> 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 >> -- >> https://mail.python.org/mailman/listinfo/python-list >> > -- https://mail.python.org/mailman/listinfo/python-list