Patches item #1671314, was opened at 2007-02-28 18:08
Message generated for change (Settings changed) made by collinwinter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1671314&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: Python 3000
>Status: Open
Resolution: Accepted
Priority: 5
Private: No
Submitted By: Daniel Stutzbach (agthorr)
Assigned to: Guido van Rossum (gvanrossum)
Summary: New File I/O type for Python 3000, plus .h and unit tests

Initial Comment:
Here is my implementation of a raw File I/O type for Python 3000, along with 
unit tests.  The tests for repr() fail because I'm not 100% sure what repr() 
should return (in particular, whether the type should bother remembering the 
filename just to return in repr()).

There are comments at the top of the .c file explaining what remains to be done.

----------------------------------------------------------------------

>Comment By: Collin Winter (collinwinter)
Date: 2007-03-08 15:27

Message:
Logged In: YES 
user_id=1344176
Originator: NO

Reopening.

I'm seeing build warnings and test failures related to the FileIO work
when Python is configured with --with-pydebug. When compiling
Modules/_fileio.c, gcc complains about "PyFileIO_Type undeclared"; because
the _fileio module fails to build, both test_io and test_fileio fail.

This occurs even after "make distclean". I have r54216 of p3yk, gcc 3.4.6.
_fileio.c compiles successfully if Python is configured without
--with-pydebug.

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2007-03-07 19:46

Message:
Logged In: YES 
user_id=6380
Originator: NO

Committed revision 54214.

I tweaked a few things; for example O_APPEND doesn't have the semantics we
want (it appends on *every write*).

I turned it into a module and renamed it to _fileio, the class to
_FileIO.

The io.py module now imports this and uses it as a base class for *its*
FileIO class, if the import works.

There are plenty of XXX things.  I'll try to get large file support
working next; as long as off_t is a 64-bit int this should just work.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1671314&group_id=5470
_______________________________________________
Patches mailing list
[email protected]
http://mail.python.org/mailman/listinfo/patches

Reply via email to