sc45
sc45

Reputation: 1956

Python 2.5 socket._fileobject is what in Python 3.1?

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!

Upvotes: 2

Views: 2665

Answers (1)

Lennart Regebro
Lennart Regebro

Reputation: 172269

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

Upvotes: 3

Related Questions