[New-bugs-announce] [issue44623] help(open('/dev/zero').writelines) gives no help

Jonathan Fine report at bugs.python.org
Tue Jul 13 10:48:39 EDT 2021


New submission from Jonathan Fine <jfine2358 at gmail.com>:

On Linux
>>> help(open('/dev/zero').writelines)
gives
<built-in method writelines of _io.TextIOWrapper object at 0x7fed03d4e558>

However
https://docs.python.org/3/library/io.html#io.IOBase.writelines
gives

Write a list of lines to the stream. Line separators are not added, so it is usual for each of the lines provided to have a line separator at the end.

See also request that writelines support a line separator.
https://mail.python.org/archives/list/python-ideas@python.org/thread/A5FT7SVZBYAJJTIWQFTFUGNSKMVQNPVF/#A5FT7SVZBYAJJTIWQFTFUGNSKMVQNPVF

----------
assignee: docs at python
components: Documentation
messages: 397414
nosy: docs at python, jfine2358
priority: normal
severity: normal
status: open
title: help(open('/dev/zero').writelines) gives no help
type: enhancement
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44623>
_______________________________________


More information about the New-bugs-announce mailing list