- 03 Ara, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 02 Ara, 2007 1 kayıt (commit)
-
-
Georg Brandl yazdı
-
- 21 Kas, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 19 Kas, 2007 2 kayıt (commit)
-
-
Amaury Forgeot d'Arc yazdı
Some incremental decoders return multiple characters, even when fed with only one more byte. In this case the tell() state must subtract the number of extra characters.
-
Amaury Forgeot d'Arc yazdı
"Universal newline" is now an incremental decoder wrapping the initial one, with its own additional buffer (if '\r' is seen at the end of the input). A decoder allows the tell() funtion to record the state of the translation. This also simplifies the readline() process. Now test_netrc passes on Windows, as well as many new tests in test_io.py
-
- 09 Kas, 2007 1 kayıt (commit)
-
-
Christian Heimes yazdı
-
- 08 Kas, 2007 2 kayıt (commit)
-
-
Christian Heimes yazdı
-
Christian Heimes yazdı
Fixed #1403 where compileall and py_compile choked on an encoding header in a py file. Both modules need more unit tests.
-
- 06 Kas, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
No detailed change log; just check out the change log for the py3k-pep3137 branch. The most obvious changes: - str8 renamed to bytes (PyString at the C level); - bytes renamed to buffer (PyBytes at the C level); - PyString and PyUnicode are no longer compatible. I.e. we now have an immutable bytes type and a mutable bytes type. The behavior of PyString was modified quite a bit, to make it more bytes-like. Some changes are still on the to-do list.
-
- 30 Eki, 2007 2 kayıt (commit)
-
-
Georg Brandl yazdı
-
Guido van Rossum yazdı
Add a closefd flag to open() which can be set to False to prevent closing the file descriptor when close() is called or when the object is destroyed. Useful to ensure that sys.std{in,out,err} keep their file descriptors open when Python is uninitialized. (This was always a feature in 2.x, it just wasn't implemented in 3.0 yet.)
-
- 26 Eki, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Move most of the messiness with truncate() on Windows into _fileio.c. Still keep the flush() call in io.py though.
-
- 25 Eki, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
This patch corrects a problem in test_file.py on Windows: f.truncate() seeks to the truncation point, but does not empty the buffers. In the test, f.tell() returns -1...
-
- 19 Eki, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Move the initialization of sys.std{in,out,err} and __builtin__.open to C code. This solves the problem that "python -S" wouldn't work.
-
- 16 Eki, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
I like this because it makes the code shorter! :-)
-
- 15 Eki, 2007 1 kayıt (commit)
-
-
Brett Cannon yazdı
'newline' argument is not a jumbled mess of newlines.
-
- 11 Eki, 2007 1 kayıt (commit)
-
-
Brett Cannon yazdı
-
- 29 Agu, 2007 3 kayıt (commit)
-
-
Guido van Rossum yazdı
so that even on Windows, after s.write("x\n"), s.getvalue() == "x\n".
-
Guido van Rossum yazdı
instance. This was effectively already the case, but the error reporting was lousy.
-
Guido van Rossum yazdı
From now on, trying to write str to a binary stream is an error (I'm still working on the reverse). There are still (at least) two failing tests: - test_asynchat - test_urllib2_localnet but I'm sure these will be fixed by someone.
-
- 27 Agu, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
- Replace all asserts by ValuleErrors or TypeErrors as appropriate. - Add _checkReadable, _checkWritable methods; these check self.closed too. - Add a test that everything exported by io.py exists, and is either an exception or an IOBase instance (except for the open function). - Default buffering to 1 if isatty() (I had to tweak this to enforce the *default* bit -- GvR).
-
- 22 Agu, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
so you can use their class .register() method to register virtual subclasses.
-
- 18 Agu, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
and implements .newlines attribute in a 2.x-compatible fashion.
-
- 11 Agu, 2007 3 kayıt (commit)
-
-
Neal Norwitz yazdı
real files. This code assumed that fileno() would succeed which wasn't the case.
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
Always set LC_CTYPE on interpreter startup. Add device_encoding function.
-
- 09 Agu, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Completely get rid of StringIO.py and cStringIO.c. I had to fix a few tests and modules beyond what Christian did, and invent a few conventions. E.g. in elementtree, I chose to write/return Unicode strings whe no encoding is given, but bytes when an explicit encoding is given. Also mimetools was made to always assume binary files.
-
- 03 Agu, 2007 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
If a makefile()-generated object is open and its parent socket is closed, the parent socket should remain open until the child is closed, too. The code to support this is moderately complex and requires one extra slots in the socket object. This change fixes httplib so that several urllib2net test cases pass again. Add SocketCloser class to socket.py, which encapsulates the refcounting logic for sockets after makefile() has been called. Move SocketIO class from io module to socket module. It's only use is to implement the raw I/O methods on top of a socket to support makefile(). Add unittests to test_socket to cover various patterns of close and makefile.
-
- 27 Tem, 2007 2 kayıt (commit)
-
-
Guido van Rossum yazdı
In order to do this, I added an optional encoding argument to io.StringIO. The toprettyxml() function returns bytes when you specify an encoding now.
-
Guido van Rossum yazdı
-
- 22 Tem, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
This makes test_resource.py pass, and I think it's the right thing to do: if you're closing a file after encountering an I/O error there's nothing you can do about it. If you want the error, you can call flush() yourself.
-
- 21 Tem, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
seeking/writing beyond EOF to io.BytesIO.
-
- 10 Tem, 2007 3 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
restoring a disabled test. This was necessary to make test_pickle.py pass.
-
Guido van Rossum yazdı
to even the most basic file object (I also added readall() which may be a better API). Also, not all the tests requiring specific failure modes could be saved. And there were the usual str/bytes issues. I made sure test_io.py still passes (io.py is now most thoroughly tested by combining test_file.py and test_io.py).
-
- 08 Haz, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Don't exclude test_socket from the tests to run.
-
- 07 Haz, 2007 2 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
io.open() now takes all positional parameters (so we can conveniently call it from C code). test_tarfile.py no longer uses u"..." literals, but is otherwise still badly broken. This is a checkpoint; some more stuff now breaks.
-
- 29 May, 2007 2 kayıt (commit)
-
-
Walter Dörwald yazdı
-
Walter Dörwald yazdı
-