adam olsen kjbnfagmailcom wed apr 2 2008 730 nick coghlan wrote one issues porting py3k problem __getattr__ __getattribute__ cant reliably provide special methods like __add__ way __getattr__ could classic classes first noted terry reedy years ago recently seeing new activity bug tracker 1 culprit fact __getattribute__ associated machinery typically never invoked methods dedicated tp_ slots clevel type structure people think idea providing extra method type objects goes clevel special method slots one isnt currently set getattr associated special name stores result current type object converting proxy class relies __getattr__ classic newstyle would needed invoke new method class object defining class class decorator metaclass could provided somewhere make bit tidier seems lot cleaner expecting everyone implements proxy object maintain list relevant special methods locates implementation support area code already plenty infrastructure dedicated keeping python visible attributes sync c visible tp_ slots thoughts altenative ideas howls protest 1 httpbugspythonorgissue643841 ive wondering provide proxymixin returned special methods old lookup behaviour think thatd cleaner providing method sure easy itd implement though adam olsen aka rhamphoryncus _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000python300040tangomucom wed 06 aug 2008 233242 0600 python3000 method populate tp_ slots via getattr