[New-bugs-announce] [issue7954] detach method has no docstring

Andrew McNabb report at bugs.python.org
Thu Feb 18 01:53:43 CET 2010


New submission from Andrew McNabb <amcnabb at mcnabbs.org>:

The detach() method has no docstring, so it's impossible to find out about it with pydoc or help().  It would be great if the description were copied from the io library documentation.

For BufferedIOBase:

"""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."""

For TextIOBase:

"""Separate the underlying binary buffer from the TextIOBase and return it.

After the underlying buffer has been detached, the TextIOBase is in an unusable state."""

By the way, it's odd that detaching

----------
components: IO
messages: 99486
nosy: amcnabb
severity: normal
status: open
title: detach method has no docstring
versions: Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7954>
_______________________________________


More information about the New-bugs-announce mailing list