Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#19 decorators fail with logging=True

closed-out-of-date
nobody
None
5
2006-03-11
2005-08-22
Chris Mellon
No

When using the decorators in ctypes.decorators and
either LOGGING=True or the decorator is called with
logging=True, the returned function lacks the _api_
parameter, because theres one additional layer of
function wrapping. Simply fixed by adding

f._api_ = api

before return f in both decorators.

Discussion

  • Thomas Heller
    Thomas Heller
    2006-03-11

    • status: open --> closed-out-of-date
     
  • Thomas Heller
    Thomas Heller
    2006-03-11

    Logged In: YES
    user_id=11105

    The decorators are removed completely from CVS.