[issue7022] Doc update for io module

2009-10-05 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: Thanks a lot B-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7022 ___ ___

[issue7022] Doc update for io module

2009-10-01 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - pitrou nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7022 ___

[issue7022] Doc update for io module

2009-10-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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,

[issue7022] Doc update for io module

2009-10-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue7022] Doc update for io module

2009-10-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- priority: - normal type: feature request - behavior versions: +Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7022 ___

[issue7022] Doc update for io module

2009-10-01 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com 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

[issue7022] Doc update for io module

2009-10-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, I've improved the docs a bit in r75168. Thanks! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7022