Noob Q: subclassing or wrapping file class

Steven D'Aprano steven at
Thu Sep 17 05:24:30 CEST 2009

On Wed, 16 Sep 2009 23:06:18 +0000, kj wrote:

>>Instead of:
>>write this:
>>getattr(x, 'name')
> This did the trick.

For the record, it's fairly unusual to call double-underscore special 
methods directly. Any time you think you need to, it's worth a rethink.


More information about the Python-list mailing list