Function wrappers

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Thu Jan 24 01:51:14 EST 2008


En Thu, 24 Jan 2008 00:16:01 -0200, <castironpi at gmail.com> escribió:

> 	def f( callback, *bar, **bkwar ):
> 		def preg ( callfore, *far, **fkwar ):
> 			return g( callback, callfore, bar, bkwar, far, fkwar )
> 		return preg
>
> Does anyone see a way to rewrite this, perhaps along the lines of
> partial( partial, partial )?  Ok to modify 'g' call.

What's wrong with this? Why do you want to rewrite it?

-- 
Gabriel Genellina




More information about the Python-list mailing list