io.BufferedIOBase.detach()

detach()

Separate the underlying raw stream from the buffer and return it.

After the raw stream has been detached, the buffer is in an unusable state.

Some buffers, like BytesIO, do not have the concept of a single raw stream to return from this method. They raise UnsupportedOperation.

New in version 3.1.

doc_python
2016-10-07 17:35:12
Comments
Leave a Comment

Please login to continue.