[issue7022] Doc update for io module

2009-10-05 Thread Pascal Chambon
Pascal Chambon added the comment: Thanks a lot B-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue7022] Doc update for io module

2009-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I've improved the docs a bit in r75168. Thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue7022] Doc update for io module

2009-10-01 Thread Pascal Chambon
Pascal Chambon added the comment: Thanks for the memoryview tip - I though I was up-to-date with python's features but obviously I wans't ^^ (I searched through dict views but that wasn't it...) It should be exactly what's needed to replace these unnecessary additional arguments. As for the sim

[issue7022] Doc update for io module

2009-10-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: -> normal type: feature request -> behavior versions: +Python 2.6, Python 2.7 ___ Python tracker ___

[issue7022] Doc update for io module

2009-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, I'm not sure what is wrong with the current doc: read(n=-1)ΒΆ Read and return up to n bytes from the stream. As a convenience, if n is unspecified or -1, readall() is called. Otherwise, only one system call is ever made. An empty bytes object is re

[issue7022] Doc update for io module

2009-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: If you are requesting new `start` and `end` arguments to readinto(), the way to do that today is to use a memoryview: # b is your bytearray, f your IO object m = memoryview(b)[start:end] f.readinto(m) If you still want that feature, please open a sepa

[issue7022] Doc update for io module

2009-10-01 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: georg.brandl -> pitrou nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue7022] Doc update for io module

2009-09-29 Thread Pascal Chambon
New submission from Pascal Chambon : *Propositions of doc update* *RawIOBase*.read(n: int) -> bytes Read up to n bytes from the object and return them. Fewer than n bytes may be returned if the operating system call returns fewer than n bytes. If 0 bytes are returned, and n was not 0, this indi