Function wrappers

Discussion in 'Python' started by castironpi@gmail.com, Jan 24, 2008.

  1. Guest

    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.
     
    , Jan 24, 2008
    #1
    1. Advertising

  2. 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
     
    Gabriel Genellina, Jan 24, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mirek
    Replies:
    5
    Views:
    426
    Natty Gur
    Oct 21, 2003
  2. =?Utf-8?B?UGF0cmljaw==?=

    ASP.Net 2.0 and the annoying <div> wrappers

    =?Utf-8?B?UGF0cmljaw==?=, Apr 25, 2005, in forum: ASP .Net
    Replies:
    8
    Views:
    550
    Patrice
    Apr 25, 2005
  3. Lucas White
    Replies:
    5
    Views:
    428
    Sudsy
    Oct 15, 2003
  4. Maciej Pilichowski
    Replies:
    3
    Views:
    3,568
    Duane Hebert
    Jan 9, 2005
  5. Ramon Crehuet

    function wrappers

    Ramon Crehuet, Oct 10, 2007, in forum: Python
    Replies:
    4
    Views:
    316
    Bruno Desthuilliers
    Oct 10, 2007
Loading...

Share This Page