- 11 Apr, 2007 3 commits
-
-
Guido van Rossum authored
Restore complex pickling. Use cPickle in io.py.
-
Guido van Rossum authored
without touching io.py or test_io.py. The cause of the failure was that bytes objects didn't pickle right. As a stop-gap measure, I'm providing bytes pickling via copy_reg. Eventually, we should use a more efficient protocol, e.g. __reduce_ex__ or __getstate__/__setstate__.
-
Guido van Rossum authored
There is somewhat working (but slow) code supporting seek/tell for text files, but extensive testing exposes a bug I can't nail down.
-
- 10 Apr, 2007 5 commits
-
-
Guido van Rossum authored
write() returns the number of bytes/characters written/buffered. FileIO.close() calls self.flush(). Implement readinto() for buffered readers. Tests th check all these. Test proper behavior of __enter__/__exit__.
-
Guido van Rossum authored
Reduce large file size to 2**31 (and a bit).
-
Guido van Rossum authored
Etc., etc.
-
Guido van Rossum authored
-
Guido van Rossum authored
Removed unused _PyFileIO class. Changed inheritance structure. TODO: do the same kinds of things to TextIO.
-
- 09 Apr, 2007 4 commits
-
-
Guido van Rossum authored
Add tests for str <cmpop> bytes.
-
Guido van Rossum authored
bytes objects can now be compared to anything that supports the buffer API.
-
Guido van Rossum authored
-
Guido van Rossum authored
(The new I/O library revealed the problem.)
-
- 08 Apr, 2007 2 commits
-
-
Guido van Rossum authored
Add closed attribute. Support int argument to open() -- wrapping a file descriptor. For b/w compat, support readline(n). Support readlines() and readlines(n). Flush on __del__. Added some XXX comments.
-
Guido van Rossum authored
instead of a filename. Add a 'closed' attribute.
-
- 07 Apr, 2007 3 commits
-
-
Guido van Rossum authored
"import exceptions" to behave bizarrely.
-
Guido van Rossum authored
(Should be backported to 2.6, really.)
-
Guido van Rossum authored
This now appears to work when io.open is substituted for the real open in fileinput.py -- at least the latter's unit tests pass.
-
- 06 Apr, 2007 3 commits
-
-
Guido van Rossum authored
Some cleanup of test_io.py and io.py. Added seeking to buffered reader and writer, but no tests yet.
-
Guido van Rossum authored
-
Guido van Rossum authored
This is essentially a checkpoint.
-
- 29 Mar, 2007 2 commits
-
-
Fred Drake authored
mystery italics
-
Guido van Rossum authored
-
- 28 Mar, 2007 4 commits
-
-
Collin Winter authored
Make readonly members defined in C throw an AttributeError on modification. This brings them into sync with Python-level attributes. Fixes bug #1687163.
-
Guido van Rossum authored
-
Guido van Rossum authored
(There was also a segfault but it disappeared when the tests stopped erroring out; I presume the segfault is a pre-existing problem somewhere in a destructor.)
-
Guido van Rossum authored
-
- 27 Mar, 2007 3 commits
-
-
Guido van Rossum authored
NotImplemented. (Is this worth backporting to 2.6? It seems so useful...!)
-
Guido van Rossum authored
-
Collin Winter authored
-
- 23 Mar, 2007 1 commit
-
-
Collin Winter authored
-
- 21 Mar, 2007 7 commits
-
-
Brett Cannon authored
inappropriately from ``e[0]`` to ``e.message`` instead of ``e.args[0]``. The reason it needs to be the last option is the dichotomy of 'message' and 'args': 'message' can be the empty string but args[0] can have a value if more than one argument was passed.
-
Guido van Rossum authored
(A symbol table entry was leaked every time a class was compiled.)
-
Collin Winter authored
-
Neal Norwitz authored
* make some module variables static to prevent name pollution * Add some comments to clarify what's going on and some XXXs to address * Add a space after "for" before ( * exc_value and tb can be NULL in some cases * Get working on Windows (I think)
-
Collin Winter authored
Patch #1680961: remove sys.exitfunc and replace it with a private C API. Also, reimplement atexit in C so it can take advantage of this private API.
-
Collin Winter authored
Use the local python binary to build the docs, not whatever 'python' is on the PATH (which is probably Python 2.x, and we need 3.x).
-
Collin Winter authored
-
- 19 Mar, 2007 3 commits
-
-
Guido van Rossum authored
incorrectly assuming that err.message was the Py3k way of writing err[0] in 2.x. The correct spelling is err.args[0].
-
Guido van Rossum authored
-
Georg Brandl authored
import_stmt accept ELLIPSes and DOTs.
-