Re: Nested Function Question

2012-01-07 Thread 88888 Dihedral
GZ於 2012年1月7日星期六UTC+8上午5時46分16秒寫道: > Hi, > > I am reading the documentation of functools.partial (http:// > docs.python.org/library/functools.html#functools.partial) and found > the following 'reference implementation' of functools.partial. > > def partial(func, *args, **keywords): > def newf

Re: Nested Function Question

2012-01-07 Thread David Robinow
On Fri, Jan 6, 2012 at 5:04 PM, Ian Kelly wrote: > On Fri, Jan 6, 2012 at 2:46 PM, GZ wrote: >> Hi, >> >> I am reading the documentation of functools.partial (http:// >> docs.python.org/library/functools.html#functools.partial) and found >> the following 'reference implementation' of functools.pa

Re: Nested Function Question

2012-01-06 Thread Ian Kelly
On Fri, Jan 6, 2012 at 2:46 PM, GZ wrote: > Hi, > > I am reading the documentation of functools.partial (http:// > docs.python.org/library/functools.html#functools.partial) and found > the following 'reference implementation' of functools.partial. > > def partial(func, *args, **keywords): >    def

Nested Function Question

2012-01-06 Thread GZ
Hi, I am reading the documentation of functools.partial (http:// docs.python.org/library/functools.html#functools.partial) and found the following 'reference implementation' of functools.partial. def partial(func, *args, **keywords): def newfunc(*fargs, **fkeywords): newkeywords = key