<div dir="ltr">Hi,<div><br></div><div>I want to modify the definition of socket.socket() to include an extra parameter. I found this function (newsocket):</div><div><br></div><div><a href="https://bitbucket.org/pypy/pypy/src/8175c5e20480b2c8e1b95c7f758458db7193f1a8/pypy/module/_socket/interp_socket.py?at=default&fileviewer=file-view-default#interp_socket.py-613">https://bitbucket.org/pypy/pypy/src/8175c5e20480b2c8e1b95c7f758458db7193f1a8/pypy/module/_socket/interp_socket.py?at=default&fileviewer=file-view-default#interp_socket.py-613</a></div><div><br></div><div>Is this the right function to modify? Since W_Socket inherits from W_Root, in the socket call, I want to call a function in W_Root. Should I call it on the space.wrap(self) object or just self? My question is more around that "self" seems to be a wrapped interpreter object already, specifically W_Socket. Why does it need to wrapped again? Unless I'm confused....</div><div><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Frank</div></div></div>
</div>
</div></div>