nick coghlan uytankmfgmailcom christian heimes wrote documented somewhere docs say see meth__getattribute__ method way actually get total control attribute access checked restriction documented development docs section special methods 1 backported py3k docs isnt part docs 25 earlier versions gist special methods must defined directly newstyle class order interpreter reliably access defining newstyle instance may still affect interpreters behaviour cases wont necessarily composing response also realised new tempfile tests worked checked testing trunk _temporaryfilewrapper classic class special method lookup classic classes doesnt include directtotype optimisation tests work tempfile module written 2x unfortunately proxies like _temporaryfilewrapper rely __getattr__ provide special methods simply wont work properly implemented newstyle classes need spell overridden special methods way spooledtemporaryfile think may need 3 warning detects situations ____ attributes retrieved via __getattr__ implementation classic class classes used way high chance breaking ported 30 cant see possible way 2to3 detect cheers nick 1 httpdocspythonorgdevreferencedatamodelhtmlspecialmethodnames nick coghlan uytankmfgmailcom brisbane australia httpwwwboredomandlazinessorg _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom wed 06 aug 2008 103132 1000 pythondev python3000 code freeze