Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Function wrappers

Reply
Thread Tools

Function wrappers

 
 
castironpi@gmail.com
Guest
Posts: n/a
 
      01-24-2008
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.
 
Reply With Quote
 
 
 
 
Gabriel Genellina
Guest
Posts: n/a
 
      01-24-2008
En Thu, 24 Jan 2008 00:16:01 -0200, <> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
function wrappers Ramon Crehuet Python 4 10-10-2007 05:27 PM
ASP.Net 2.0 and the annoying <div> wrappers =?Utf-8?B?UGF0cmljaw==?= ASP .Net 8 04-25-2005 02:28 PM
How to lower warning level? [header wrappers, GCC] Maciej Pilichowski C++ 3 01-09-2005 02:51 AM
Managed wrappers in ASP.NET Session mirek ASP .Net 5 10-21-2003 04:52 AM
Use Collection classes or create wrappers for them? Lucas White Java 5 10-15-2003 03:39 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57