[issue35848] readinto is not a method on io.TextIOBase

2019-04-08 Thread miss-islington
miss-islington added the comment: New changeset 0a16bb15afec28f355bc28203b6b10610293f026 by Miss Islington (bot) in branch '3.7': closes bpo-35848: Move all documentation regarding the readinto out of IOBase. (GH-11893)

[issue35848] readinto is not a method on io.TextIOBase

2019-04-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 7b97ab35b28b761ab1253df427ee674b1a90f465 by Benjamin Peterson (Steve Palmer) in branch 'master': closes bpo-35848: Move all documentation regarding the readinto out of IOBase. (GH-11893)

[issue35848] readinto is not a method on io.TextIOBase

2019-04-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +12659 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35848] readinto is not a method on io.TextIOBase

2019-02-16 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +11921 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35848] readinto is not a method on io.TextIOBase

2019-02-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: Steve, Would you be interested in creating a Github pull request with the documentation changes? -- components: +Documentation -IO nosy: +cheryl.sabella ___ Python tracker

[issue35848] readinto is not a method on io.TextIOBase

2019-01-30 Thread Steve Palmer
Steve Palmer added the comment: I don't have a "real" use case. I discovered the issue when I was developing a unittest suite for what it means to be "file-like". I've been codifying the description in the standard library and exercising my tests against the built-in file-likes, such as

[issue35848] readinto is not a method on io.TextIOBase

2019-01-30 Thread Martin Panter
Martin Panter added the comment: I think it would be more practical to fix the documentation (option 1). Do you have a use case for “TextIOBase.readinto” raising ValueError (something more concrete than someone having expectations)? -- nosy: +martin.panter

[issue35848] readinto is not a method on io.TextIOBase

2019-01-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Steve for the details. I am adding io module maintainers to the issue who will have better context on whether to clarify the docs or to change the implementation to raise UnsupportedOperation. -- nosy: +benjamin.peterson, stutzbach,

[issue35848] readinto is not a method on io.TextIOBase

2019-01-29 Thread Steve Palmer
Steve Palmer added the comment: I agree with Karthikeyan that the method does not apply in the io.TextIOBase class context. I'm sorry that I didn't spot the note in the description of io.TextIOBase - though I think that it is easy to miss. I'd suggest that there are two ways to clear this

[issue35848] readinto is not a method on io.TextIOBase

2019-01-29 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35848] readinto is not a method on io.TextIOBase

2019-01-29 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I checked and io.TextIOBase is the only io.IOBase subclass to lack one of read, readinto or write: >>> import io, inspect >>> for name, obj in inspect.getmembers(io, predicate=inspect.isclass): ... missing = {'read', 'readinto', 'write'} - {name for name,

[issue35848] readinto is not a method on io.TextIOBase

2019-01-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://docs.python.org/3/library/io.html#io.TextIOBase > Base class for text streams. This class provides a character and line based > interface to stream I/O. There is no readinto() method because Python’s > character strings are immutable. It

[issue35848] readinto is not a method on io.TextIOBase

2019-01-29 Thread SilentGhost
Change by SilentGhost : -- assignee: -> docs@python components: +Documentation -IO nosy: +docs@python stage: -> needs patch versions: +Python 3.8 ___ Python tracker ___

[issue35848] readinto is not a method on io.TextIOBase

2019-01-29 Thread Steve Palmer
New submission from Steve Palmer : class io.IOBase states "Even though IOBase does not declare read(), readinto(), or write() because their signatures will vary, implementations and clients should consider those methods part of the interface. Also, implementations may raise a ValueError (or