[issue6929] Confusion between "write" method of rowiobase and rawfileio

2009-09-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Checked in a bunch of corrections and precisions in r74879, and r74880. -- resolution: -> fixed status: open -> closed versions: +Python 3.2 ___ Python tracker ___

[issue6929] Confusion between "write" method of rowiobase and rawfileio

2009-09-17 Thread Pascal Chambon
Pascal Chambon added the comment: I forgot to note - yep I was actually improperly looking at the python 2.6 documentation, which is erroneous ocncerning the io module. But the py3k doc seems to summarize it allright B-) -- ___ Python tracker

[issue6929] Confusion between "write" method of rowiobase and rawfileio

2009-09-17 Thread Pascal Chambon
Pascal Chambon added the comment: Allright, then only rawIoBase's documentation is wrong... and I'll have to modify my work-in-progress library to mimic FileIo more accurately. Thansk for teh info B-) -- ___ Python tracker

[issue6929] Confusion between "write" method of rowiobase and rawfileio

2009-09-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: I might add, in case it wasn't clear, that you will only encounter a raw IO object (rather than a buffered one) if you construct one directly, or if you give "buffering=0" to open(). -- ___ Python tracker

[issue6929] Confusion between "write" method of rowiobase and rawfileio

2009-09-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hm, first, which version of the documentation are you looking at? For the new IO lib, you should probably refer to the current py3k docs: http://docs.python.org/py3k/library/io.html Then, the documentation looks confused indeed. But your interpretation is a bit

[issue6929] Confusion between "write" method of rowiobase and rawfileio

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

[issue6929] Confusion between "write" method of rowiobase and rawfileio

2009-09-17 Thread Pascal Chambon
New submission from Pascal Chambon : It seems the properties of the write methods of these two classes are mixed up in documentation. I've checked the sources, and actually it seems the behviour is inverted : rawiobase streams, which can be pipes or other limited streams, may write less than len(