[issue4362] FileIO object in io module

2008-11-20 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Since, we don't really care about round-tripping, test_gzip was fixed in r67309. -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> _

[issue4362] FileIO object in io module

2008-11-20 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Here's a patch that makes FileIO accept and return 'b' in its mode string. -- nosy: +benjamin.peterson Added file: http://bugs.python.org/file12083/fileio_always_binary.patch ___ Python tracker

[issue4362] FileIO object in io module

2008-11-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw <[EMAIL PROTECTED]>: -- status: closed -> open ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-lis

[issue4362] FileIO object in io module

2008-11-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw <[EMAIL PROTECTED]>: -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue4362] FileIO object in io module

2008-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: This patch addresses the makefile() function and the SocketIO class. Added file: http://bugs.python.org/file12082/socketio_attributes.patch ___ Python tracker <[EMAIL PROTECTED]>

[issue4362] FileIO object in io module

2008-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Reopening, since this causes failure in socket.makefile() -- resolution: fixed -> status: closed -> open ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4362] FileIO object in io module

2008-11-20 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc <[EMAIL PROTECTED]>: -- resolution: -> fixed ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs

[issue4362] FileIO object in io module

2008-11-20 Thread Barry A. Warsaw
Barry A. Warsaw <[EMAIL PROTECTED]> added the comment: r67300 (with after the fact whitespace normalization of Lib/tests/test_io.py) -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> __

[issue4362] FileIO object in io module

2008-11-20 Thread Barry A. Warsaw
Barry A. Warsaw <[EMAIL PROTECTED]> added the comment: I'm okay with the roundtrip not being supported. One thing I don't quite understand is in the third test, where you're using "w+" mode and testing f.buffer.mode and f.buffer.raw.mode is "r+". Why is that? -- nosy: +barry _

[issue4362] FileIO object in io module

2008-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The attached patch is an attempt to set mode and name attributes to all three objects in the IO stack. For example, >>> f = open("foo", "U+") >>> f.buffer.name, f.buffer.mode ('foo', 'r+') See also the unit tests. There is a little i

[issue4362] FileIO object in io module

2008-11-20 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: This needs to be verified before the next rc gets out. -- nosy: +christian.heimes priority: -> release blocker stage: -> test needed versions: +Python 3.0 ___ Python tracker <[EMAIL PROTECTED]>

[issue4362] FileIO object in io module

2008-11-20 Thread David M. Beazley
New submission from David M. Beazley <[EMAIL PROTECTED]>: The FileIO object defined in the new io library has "name" and "mode" properties. However, attempts to access either value result in an AttributeError exception. The C source code in _fileio.c doesn't even implement a name attribute