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 _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000python300040tangomucom wed 06 aug 2008 102926 1000 python3000 code freeze