2

I'm porting some code that runs on Python 2.5 to Python 3.1. A couple of classes subclass the socket._fileobject:

class X(socket._fileobject):
  ....

Is there an equivalent to socket._fileobject in Python 3.1? A quick scan of the source code doesn't turn up anything useful. Thanks!

1 Answer 1

3

Python 3 uses SocketIO instead of _fileobject in the makefile() method, so that's probably the way to go.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.