summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix problem when exec'ing a string with a codingNeal Norwitz2007-08-112-1/+6
|
* Change module to produce and consume bytes.Martin v. Löwis2007-08-111-13/+8
|
* Remove unnecessary importNeal Norwitz2007-08-111-1/+0
|
* Fix test_wsgiref that used StringIO and a BufferedReader rather thanNeal Norwitz2007-08-111-1/+2
| | | | | real files. This code assumed that fileno() would succeed which wasn't the case.
* Quick fix for a new problem here -- using string.lowercase somehow causedGuido van Rossum2007-08-111-4/+3
| | | | problems.
* Fix automatic replacing mistake.Georg Brandl2007-08-111-1/+1
|
* Fall back to ascii if the locale module cannot be loaded.Martin v. Löwis2007-08-111-2/+7
|
* A few sqlite files were still using RO instead of READONLY.Guido van Rossum2007-08-112-15/+15
|
* Fix reference leak.Martin v. Löwis2007-08-111-0/+1
|
* Set sys.stdout.encoding properly.Martin v. Löwis2007-08-114-9/+59
| | | | | Always set LC_CTYPE on interpreter startup. Add device_encoding function.
* Change shelve to require a bytes-oriented dict asMartin v. Löwis2007-08-112-19/+53
| | | | the underlying storage, and yet provide string keys.
* Remove support for __members__ and __methods__. There still might beNeal Norwitz2007-08-1114-195/+83
| | | | | some cleanup to do on this. Particularly in Python/traceback.c with getting rid of the getattr if possible and Demo/*metaclasses/Enum.py.
* Fix test_bsddb3.Martin v. Löwis2007-08-113-62/+64
|
* Fix refleaksNeal Norwitz2007-08-111-0/+4
|
* Handle errorNeal Norwitz2007-08-111-1/+4
|
* Fix what appears to be a very old bug. Tkinter in struni is more intolerantKurt B. Kaiser2007-08-111-0/+1
| | | | of non-existant text widget 'marks', it seems.
* Use an event variable to wait for the server to be ready, rather than ↵Guido van Rossum2007-08-101-3/+5
| | | | sleep(0.1).
* Remove the None tag from tagdefs dict for now, appears inoperative andKurt B. Kaiser2007-08-101-1/+3
| | | | causes a _tkinter error in py3k.
* Fix refcount bug in make_Zreplacement().Guido van Rossum2007-08-101-0/+1
|
* Make sure the mock object passed to finish_request() is buffered.Jeremy Hylton2007-08-101-4/+6
|
* Allow rfc822 to process headers from an incoming HTTP request.Jeremy Hylton2007-08-101-1/+8
|
* StyleJeremy Hylton2007-08-101-2/+2
|
* Fix a bit of code that wasn't converted properly, causing a segfault.Guido van Rossum2007-08-101-4/+1
|
* Make the sqlite tests pass.Gerhard Häring2007-08-107-31/+28
|
* A small tweak to avoid calling traceback.format_exception_only() withGuido van Rossum2007-08-101-1/+1
| | | | | a bogus (tuple) value. This should fix the "make install" issue Neal reported.
* RFC 1952 requires the FNAME field to be Latin-1. Do not includeLars Gustäbel2007-08-101-2/+9
| | | | filenames that cannot be represented that way.
* Fix refleak: decref inputobj after extracting the relavant info (the objectWalter Dörwald2007-08-101-0/+3
| | | | won't go away, as the exception object holds another reference).
* Fix dbshelve and much of dbtables.Martin v. Löwis2007-08-104-53/+66
|
* Wrap set_location.Martin v. Löwis2007-08-101-0/+8
|
* Fix some doc problems.Neal Norwitz2007-08-102-3/+3
|
* Fix circular import issueKurt B. Kaiser2007-08-102-9/+10
|
* Fix filter() issuesKurt B. Kaiser2007-08-101-3/+3
|
* Remove spurious (and unneeded) import of StringIO.Guido van Rossum2007-08-101-1/+1
|
* In PyFile_WriteString(), call PyUnicode_FromString() instead ofGuido van Rossum2007-08-091-1/+1
| | | | | PyString_FromString(). This is arguably more correct, even if it shouldn't matter much (all the input is likely to be ASCII).
* Hack to avoid a nasty recursion issue when Python is invokedGuido van Rossum2007-08-091-0/+3
| | | | in verbose mode: pre-import the Latin-1 and UTF-8 codecs
* Fix some logic in PythonCmd() -- if the AsString() call failed, we'dGuido van Rossum2007-08-091-1/+3
| | | | | | | | | | be calling LEAVE_PYTHON twice (once in PythonCmd_Error() and once in PythonCmd() itself). This fix doesn't fix the IDLE problems, but at least makes them more debuggable by getting rid of the segfault. Will backport.
* Fix two bugs in socket_getaddr():Guido van Rossum2007-08-091-4/+3
| | | | | | (a) 'single' shouldn't be DECREF'ed in the cleanup code; (b) the fallback case in makesockaddr() should use y# instead of s# in the format, since the data is bytes, not UTF-8 text.
* Oops. The PyObject_Print() function was totally broken; the original codeGuido van Rossum2007-08-091-3/+19
| | | | | was relying on PyString.tp_print but that no longer works. Fortunately it's rarely called; only the gdb 'pyo' command seems affected.
* Fix remaining map() issues.Kurt B. Kaiser2007-08-095-8/+9
| | | | | | | | M idlelib/PyShell.py M idlelib/EditorWindow.py M idlelib/rpc.py M idlelib/OutputWindow.py M idlelib/RemoteObjectBrowser.py
* Use relative importsKurt B. Kaiser2007-08-091-2/+2
|
* Oops, this was placed in the wrong branch.Guido van Rossum2007-08-091-8/+0
|
* Add a tombstone.Guido van Rossum2007-08-091-0/+8
|
* Create the new Py3k branch.Guido van Rossum2007-08-090-0/+0
|
* Merged revisions 56782-56847 via svnmerge fromGuido van Rossum2007-08-098-14/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/p3yk ................ r56808 | kurt.kaiser | 2007-08-07 14:15:45 -0700 (Tue, 07 Aug 2007) | 2 lines Replace sys.exitfunc call with atexit call ................ r56835 | thomas.wouters | 2007-08-08 09:20:30 -0700 (Wed, 08 Aug 2007) | 8 lines Tests for dict comprehensions I forgot to 'svn add' when committing the actual feature. I was _sure_ I had checked in these new tests already, but I guess the checkin failed and I didn't notice. ................ r56847 | guido.van.rossum | 2007-08-09 07:03:34 -0700 (Thu, 09 Aug 2007) | 30 lines Merged revisions 56760-56846 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r56762 | georg.brandl | 2007-08-06 00:37:58 -0700 (Mon, 06 Aug 2007) | 2 lines Place #ifdef Py_USING_UNICODE around decode_unicode(). ........ r56763 | georg.brandl | 2007-08-06 00:39:09 -0700 (Mon, 06 Aug 2007) | 2 lines Replace unnecessary function call. ........ r56764 | georg.brandl | 2007-08-06 00:52:20 -0700 (Mon, 06 Aug 2007) | 2 lines Patch #1765839: add link to https+proxy urllib2 opener. ........ r56797 | georg.brandl | 2007-08-07 00:13:24 -0700 (Tue, 07 Aug 2007) | 2 lines Bug #1769002: fix a now-wrong sentence in the tutorial. ........ r56830 | georg.brandl | 2007-08-08 06:03:41 -0700 (Wed, 08 Aug 2007) | 3 lines Revert the fix for #1548891, it broke backwards compatibility with arbitrary read buffers. Fixes #1730114. ........ r56833 | georg.brandl | 2007-08-08 06:50:02 -0700 (Wed, 08 Aug 2007) | 2 lines Fix compilation warning. ........ ................
* SF patch# 1770008 by Christian Heimes (plus some extras).Guido van Rossum2007-08-0978-657/+312
| | | | | | | | | | 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.
* Fix most of the bsddb3 tests.Martin v. Löwis2007-08-0815-294/+279
|
* Fix core dump in an endcase of b.strip() that I missed.Guido van Rossum2007-08-082-1/+5
|
* Fix the ctypes tests. Patch from Victor Stinner. He writes:Thomas Heller2007-08-087-18/+18
| | | | | | | | | | | | | | | | | The problem is that ctypes c_char (and c_char_p) creates unicode string instead of byte string. I attached a proposition (patch) to change this behaviour (use bytes for c_char). So in next example, it will display 'bytes' and not 'str': from ctypes import c_buffer, c_char buf = c_buffer("abcdef") print (type(buf[0])) Other behaviour changes: - repr(c_char) adds a "b" eg. repr(c_char('x')) is "c_char(b'x')" instead of "c_char('x')" - bytes is mutable whereas str is not: this may break some modules based on ctypes
* Fix several failing tests in test_urllib2net.Jeremy Hylton2007-08-082-1/+18
| | | | | | | | | The HTTPResponse object is being passed to BufferedReader, but it wasn't designed to be used that way. These changes extend the hacks that have already been made in urllib2 to get the tests to pass. The hacks need to be removed and proper support for use with the io library. That's a project for another day.
* Switch wsgiref to io.{StringIO,BytesIO}. This shuts up the test failures.Guido van Rossum2007-08-083-5/+5
| | | | (I'm not sure about it actually working though.)