Inherit another object's methods
<pre><code>f = open('bobby_g.txt', 'w')
f.write('Hey bobby!')
f.close()

class BobFile:
    def __init__(self, x):
        self = open(x, 'r')


a = BobFile('bobby_g.txt')
print a.read()
a.close()
</code></pre>

<p>I don't want to subclass the 'file' object, I want to create a BobFile object that then becomes another object(a file object) (and inherits all of its methods).
So I can then use the BobFile object as if it were a file object..</p>

<p>Is this possible? I tried assigning the new file object to SELF of BobFile, but that didn't work...</p>
