anthony tolle pkfrwatpbgmailcom sat mar 8 2008 328 pm steven bethard wrote crucial self first argument use decorator adds new element beginning argument list wouldnt surprised write methods add_initial_argument def methodnew_arg self would work class binding python 30 ie unbound methods python 25 unbound method would throw error however bound methods still force first argument self want change behavior need grab __func__ attribute method send parameters directly means reimplementing behavior bound methods ie inserting __self__ argument list unfortunately destroys magic bound method bypassing altogether could done thus another decorator wrapped one inner one would present plain function __self__ __func__ attributes outer one information original method type would lost im sure good thing anyway isnt inserting arguments also able inspect callables determine origin static method bound method unbound method facilitate designing decorators play well one another opinion ideal situation allow information original method pass way chain decorators course may cases one would want mask underlying signature essentially staticmethod cases however preserving attribute signature would indicative wellbehaved decorators _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000python300040tangomucom wed 06 aug 2008 002826 0500 python3000 case unbound methods