- 05 Agu, 2007 4 kayıt (commit)
-
-
Brett Cannon yazdı
Thanks Paul Colomiets.
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
and StringValues classes. Fix test suite.
-
Guido van Rossum yazdı
svn+ssh://pythondev@svn.python.org/python/branches/p3yk ........ r56497 | kurt.kaiser | 2007-07-22 14:55:16 -0700 (Sun, 22 Jul 2007) | 4 lines In the case of syntax errors, in py3k format_exception_only() was including line number and position in the final line of the exception notification, duplicating info in previous lines. ........ r56501 | kurt.kaiser | 2007-07-22 19:35:50 -0700 (Sun, 22 Jul 2007) | 2 lines Hum, needed a newline in the last change. ........ r56536 | kurt.kaiser | 2007-07-24 19:06:48 -0700 (Tue, 24 Jul 2007) | 5 lines Not all instantiations of SyntaxError set the args attribute. e.g. symtable.c Modify format_exception_only() to get SyntaxError attributes directly instead of unpacking 'args'. ........ r56537 | kurt.kaiser | 2007-07-24 19:13:03 -0700 (Tue, 24 Jul 2007) | 3 lines Update doctest strings: traceback.py no longer prints redundant location information in the last line of the exception display. ........ r56627 | kurt.kaiser | 2007-07-29 21:06:57 -0700 (Sun, 29 Jul 2007) | 2 lines Interactive interpreter emulator (code.py) failing to print exceptions. ........ r56628 | kurt.kaiser | 2007-07-29 21:41:02 -0700 (Sun, 29 Jul 2007) | 2 lines Eliminate extra lines before and after tracebacks. ........ r56638 | kurt.kaiser | 2007-07-31 19:36:45 -0700 (Tue, 31 Jul 2007) | 3 lines Refactor syntax error display in shell and edit windows; move colorize_syntax_error() to EditorWindow; update to py3k. ........ r56685 | neal.norwitz | 2007-08-02 22:20:23 -0700 (Thu, 02 Aug 2007) | 10 lines Remove several h/w and o/s specific modules that are undocumented, obsolete, and/or not widely used: linuxaudiodev.c, sunaudiodev.c Lib/plat-sunos5/SUNAUDIODEV.py Lib/audiodev.py Tools/audiopy/audiopy Move Lib/toaiff.py to Demo. See PEP 3108 for most of the details. ........ r56686 | neal.norwitz | 2007-08-02 22:21:48 -0700 (Thu, 02 Aug 2007) | 4 lines Missed one module that should have been removed since it relied on audiodev which was removed. ........ r56748 | neal.norwitz | 2007-08-04 19:19:04 -0700 (Sat, 04 Aug 2007) | 1 line Make from X import * outside module scope an error. ........ r56750 | neal.norwitz | 2007-08-04 19:35:01 -0700 (Sat, 04 Aug 2007) | 1 line Use READONLY consistently instead of RO ........
-
- 04 Agu, 2007 12 kayıt (commit)
-
-
Jeremy Hylton yazdı
Changes the way the httplib classes are stubbed out.
-
Jeremy Hylton yazdı
The HTTP class is a backwards compatibility layer for the Python 1.5 API. (The only remaining use in the std library is xmlrpclib.) The current change makes urllib issue HTTP/1.0 requests with HTTPConnection, because is accesses HTTPResponse.fp directly instead of using the read() method. Using fp directly interacts poorly with persistent connections. There are probably better solutions than the current one, but this is a start.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
Add code to test_roundtrip() that figures out the encoding from the first two lines of the file. (We need to refactor this again to make it available to all places that need this, e.g. linecache.py.)
-
Guido van Rossum yazdı
However, this will need to be fixed further to allow non-ASCII letters in names; leaving this to MvL.
-
Jeremy Hylton yazdı
-
Jeremy Hylton yazdı
The httplib interface returns bytes for now.
-
Jeremy Hylton yazdı
This change fixes a test in test_urllib.
-
Jeremy Hylton yazdı
-
Jeremy Hylton yazdı
In particular, watch out for comparing b"" to "". They're not equal, but you can start at the code asking whether buf == "" for a long time before realizing that it will never be True.
-
Jeremy Hylton yazdı
-
Jeremy Hylton yazdı
I'm not sure why I thought it should originally, but it introduces an __del__() method on the response which cause the close() to be called too soon using the HTTP compat class. Also, remove some stale comments. The HTTPResponse calls makefile() immediately, so there is no risk of it closing the socket.
-
- 03 Agu, 2007 15 kayıt (commit)
-
-
Guido van Rossum yazdı
buffer. We just return 0 in this case now, like for all zero-length reads.
-
Guido van Rossum yazdı
-
Jeremy Hylton yazdı
Checks that an io object somewhere in the stack of wrappers is actually closed. --This line, and those below, will be ignored-- M test_urllib2net.py
-
Jeremy Hylton yazdı
Use io.BytesIO() instead of StringIO.StringIO(). FakeSocket still accepts regular strings and coverts them to bytes internally.
-
Guido van Rossum yazdı
-
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.
-
Jeremy Hylton yazdı
-
Jeremy Hylton yazdı
raw socket so they can check the timeout value. Should change the code under test to expose the timeout in a more direct way.
-
Jeremy Hylton yazdı
-
Guido van Rossum yazdı
Fix test_cookielib and test_urllib2. (The changes to urllib make urllib.quote() work correctly for Unicode strings; but they don't fix test_urllib.)
-
Guido van Rossum yazdı
Fix for test_socketserver. Use io.BytesIO instead of io.StringIO, and adjust tests.
-
Guido van Rossum yazdı
Fix test_zipimport.
-
Collin Winter yazdı
-
Jeremy Hylton yazdı
-
Jeremy Hylton yazdı
-
- 02 Agu, 2007 2 kayıt (commit)
-
-
Guido van Rossum yazdı
using super(). (See recent conversation on python-3000 with Talin and Phillip Eby about PEP 3115 chaining rules.)
-
Georg Brandl yazdı
-
- 01 Agu, 2007 5 kayıt (commit)
-
-
Guido van Rossum yazdı
In particular, add trivial implementations of .real, .imag and .conjugate() to both, and add .numerator and .denominator to long. Also some small optimizations (e.g. remove long_pos in favor of long_long).
-
Guido van Rossum yazdı
in KOI8-R.
-
Guido van Rossum yazdı
(The previous changes to abc.py were also by him). Put back a comment about using super() for properties (I didn't realize this worked).
-
Guido van Rossum yazdı
Add docstring for conjugate(). Patch by Jeffrey Yasskin.
-
Guido van Rossum yazdı
-
- 30 Tem, 2007 2 kayıt (commit)
-
-
Walter Dörwald yazdı
error callback changes the bytes object in the exception the decoder might use memory that's no longer in use. Change unicode_decode_call_errorhandler() so that it fetches the adresses of the bytes array (start and end) from the exception object and passes them back to the caller.
-
Brett Cannon yazdı
string representation for use in the XML. Also strip out some unneeded encoding/decoding steps.
-