Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | (no commit message) | Collin Winter | 2007-08-29 | 1 | -0/+1 | |
| | ||||||
* | (no commit message) | Collin Winter | 2007-08-29 | 0 | -0/+0 | |
| | ||||||
* | Don't delete test output when "make clean" is run -- only when "make | Guido van Rossum | 2007-08-29 | 1 | -2/+2 | |
| | | | | clobber" is run. (Thanks Thomas W. for pointing this out!) | |||||
* | Modernize clean and funny targets. | Guido van Rossum | 2007-08-29 | 1 | -5/+19 | |
| | ||||||
* | Mostly rewritten, much shorter README for Py3k. | Guido van Rossum | 2007-08-29 | 1 | -1204/+87 | |
| | ||||||
* | [Oops, I forgot half of the patch.] | Guido van Rossum | 2007-08-29 | 1 | -0/+5 | |
| | | | | | | | | | Patch # 1050 by Amaury Forgeot d'Arc. On Windows, debug builds insert stack probes, and recursive functions tend to exhaust the stack faster. This patch reduces the marshal maximum depth from 2000 to 1500 for debug builds only. Optimized builds are not affected. This allows test_marshal to pass with debug builds. | |||||
* | Andother bytes/str comparison caught by Jeremy's change. | Guido van Rossum | 2007-08-29 | 1 | -1/+1 | |
| | ||||||
* | Change string literal to bytes. | Jeremy Hylton | 2007-08-29 | 1 | -1/+1 | |
| | ||||||
* | Make terminator constants bytes. | Jeremy Hylton | 2007-08-29 | 1 | -2/+2 | |
| | ||||||
* | Change string literals to bytes, since they are compared to bytes. | Jeremy Hylton | 2007-08-29 | 1 | -2/+2 | |
| | ||||||
* | Fix issue # 1037 (sort of). | Guido van Rossum | 2007-08-29 | 1 | -2/+8 | |
| | ||||||
* | Make it an error to compare a bytes object and a Unicode object. | Jeremy Hylton | 2007-08-29 | 2 | -7/+13 | |
| | ||||||
* | Patch # 1050 by Amaury Forgeot d'Arc. | Guido van Rossum | 2007-08-29 | 1 | -1/+4 | |
| | | | | | | | | On Windows, debug builds insert stack probes, and recursive functions tend to exhaust the stack faster. This patch reduces the marshal maximum depth from 2000 to 1500 for debug builds only. Optimized builds are not affected. This allows test_marshal to pass with debug builds. | |||||
* | 1. Debugger was failing to start due to DictProxy limitations. | Kurt B. Kaiser | 2007-08-29 | 2 | -10/+32 | |
| | | | | 2. Fix some debug prints in RemoteDebugger.py - use py3k syntax. | |||||
* | Patch # 1048 by Amaury Forgeot d'Arc. | Guido van Rossum | 2007-08-29 | 1 | -1/+1 | |
| | | | | | | test_float crashes on Windows, because the %zd format is used in a call to PyOS_snprintf(). The attached patch properly uses PY_FORMAT_SIZE_T. | |||||
* | Three patches from issue #1047, by Amaury Forgeot d'Arc: | Guido van Rossum | 2007-08-29 | 5 | -32/+118 | |
| | | | | | | | | | | | | | | | | | | | 1/ getargs.diff adds the 'Z' and 'Z#' format specifiers for PyArg_ParseTuple. They mimic z and z# for unicode strings, by accepting a Unicode or None (in which case the Py_UNICODE* pointer is set to NULL). With doc and tests. 2/ subprocess.diff converts file PC/_subprocess.c to unicode. We use the Unicode version of the win32 api (and Z conversion from previous patch) 3/ stdout.diff: sys.stdout must not convert the line endings, Windows already does it. Without this patch, when redirecting the output of python, the file contains \r\r\n for each line. (test_subprocess did catch this) However, I (GvR) removed the change to _fileio.c (included in the patches) that prevents closing file descripors < 3 from being closed; I think that needs to be solved in a different way. | |||||
* | In rseponse to bug# 1029, force the newline default for StringIO to "\n", | Guido van Rossum | 2007-08-29 | 1 | -1/+1 | |
| | | | | so that even on Windows, after s.write("x\n"), s.getvalue() == "x\n". | |||||
* | Unset PYTHONPATH, for my convenience. | Guido van Rossum | 2007-08-29 | 1 | -0/+3 | |
| | ||||||
* | Insist that the argument to TextIOWrapper.write() is a basestring | Guido van Rossum | 2007-08-29 | 1 | -0/+3 | |
| | | | | | instance. This was effectively already the case, but the error reporting was lousy. | |||||
* | Use the correct type for variables corresponding to 'u' formats. | Guido van Rossum | 2007-08-29 | 1 | -1/+1 | |
| | ||||||
* | Convert various string literals to bytes. | Jeremy Hylton | 2007-08-29 | 3 | -6/+6 | |
| | ||||||
* | PEP 7 clean ups, no change in behavior. | Jeremy Hylton | 2007-08-29 | 1 | -49/+53 | |
| | | | | | | Reflow long lines. Remove whitespace inside parents. Move open braces off lines by themselves. | |||||
* | Fix test failures caused by missing/incorrect conversion to bytes. | Jeremy Hylton | 2007-08-29 | 1 | -4/+4 | |
| | ||||||
* | Fix up brokenness with hashing, now hashlib is strict in requiring bytes too. | Guido van Rossum | 2007-08-29 | 2 | -9/+10 | |
| | ||||||
* | Straggler (forgot to save this earlier). | Guido van Rossum | 2007-08-29 | 1 | -2/+1 | |
| | ||||||
* | Refuse to compute digests from PyUnicode (str) instances. | Guido van Rossum | 2007-08-29 | 1 | -2/+2 | |
| | | | | This breaks a few things that I'll patch up in a minute. | |||||
* | Oops, remove an abort() I put in for debugging. | Guido van Rossum | 2007-08-29 | 1 | -1/+0 | |
| | ||||||
* | Fix the one failing test (can't decode twice). | Guido van Rossum | 2007-08-29 | 1 | -1/+2 | |
| | ||||||
* | Add PyUnicode_AsStringAndSize(), which is like PyUnicode_AsString() but | Guido van Rossum | 2007-08-29 | 4 | -17/+31 | |
| | | | | | | has an extra (optional) output parameter through which it returns the size. Use this in a few places where I used PyUnicode_AsString() + strlen(), and in one new place (which fixes test_pep263). | |||||
* | Fix test_pyclbr -- _https_connection is optional. | Guido van Rossum | 2007-08-29 | 1 | -0/+1 | |
| | ||||||
* | Fix failure in error handler -- exc[-1] -> exc.args[-1]. | Guido van Rossum | 2007-08-29 | 1 | -2/+2 | |
| | ||||||
* | Corrected missed #if in r57652. | Eric Smith | 2007-08-29 | 1 | -0/+2 | |
| | ||||||
* | Added conditional compilation for '()', which was an allowed sign code in a | Eric Smith | 2007-08-29 | 1 | -1/+8 | |
| | | | | | | | previous version of PEP 3101. It's currently not compiled in, but I want to leave it because it might be useful in the future and it makes calc_number_widths() clearer. It justifies NumberFieldWidths.rsign and .n__rsign. | |||||
* | Get test_bsddb3 passing | Neal Norwitz | 2007-08-29 | 3 | -6/+6 | |
| | ||||||
* | strings vs bytes, bytes wins again | Gregory P. Smith | 2007-08-29 | 1 | -4/+4 | |
| | ||||||
* | Commit strict str/bytes distinction. | Guido van Rossum | 2007-08-29 | 3 | -119/+59 | |
| | | | | | | | | | 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. | |||||
* | Found a different, more direct way to disable ssl support until it's fixed. | Guido van Rossum | 2007-08-29 | 4 | -10/+8 | |
| | ||||||
* | Change the way the encoding parameter is handled. | Guido van Rossum | 2007-08-29 | 1 | -11/+6 | |
| | | | | This fixes test_doctest with strict bytes/str. | |||||
* | Make test_cmd_line work with strict str/bytes. | Guido van Rossum | 2007-08-29 | 1 | -4/+4 | |
| | ||||||
* | Fix the sqlite test. Blobs should be created using buffer(b"blob"), | Guido van Rossum | 2007-08-29 | 1 | -3/+3 | |
| | | | | not buffer("blob"). | |||||
* | "Fix" a few places that were using PyObject_AsCharBuffer() to convert a string | Guido van Rossum | 2007-08-29 | 2 | -3/+9 | |
| | | | | | | (PyUnicode these days) to a char* + length. The fix consists of calling PyUnicode_AsString() and strlen(). This is not ideal, but AsCharBuffer() is definitely not the API to use. | |||||
* | Modified parsing of format strings, so that we always return | Eric Smith | 2007-08-29 | 2 | -159/+170 | |
| | | | | | | | | | | | | | | | | | | a tuple (literal, field_name, format_spec, conversion). literal will always be a string, but might be of zero length. field_name will be None if there is no markup text format_spec will be a (possibly zero length) string if field_name is non-None conversion will be a one character string, or None This makes the Formatter class, and especially it's parse() method, easier to understand. Suggestion was by Jim Jewett, inspired by the "tail" of an elementtree node. Also, fixed a reference leak in fieldnameiter_next. | |||||
* | Make gettext work with strict str/bytes. | Guido van Rossum | 2007-08-29 | 1 | -3/+3 | |
| | ||||||
* | Fix this test. How could it ever have worked?! | Guido van Rossum | 2007-08-29 | 1 | -2/+3 | |
| | ||||||
* | Forgot one. This makes test_urllib2.py pass. | Guido van Rossum | 2007-08-29 | 1 | -1/+1 | |
| | ||||||
* | Make test_httplib pass. | Guido van Rossum | 2007-08-29 | 1 | -3/+3 | |
| | ||||||
* | Make test_urllib be strict about str/bytes. | Guido van Rossum | 2007-08-29 | 2 | -5/+5 | |
| | | | | (One change to httplib.py, but not enough for test_httplib.) | |||||
* | Disable this test too. | Guido van Rossum | 2007-08-29 | 1 | -0/+2 | |
| | ||||||
* | Disable test_ssl until ssl.py has been fixed. | Guido van Rossum | 2007-08-29 | 1 | -0/+2 | |
| | ||||||
* | Fix buglet in sliceobjects, they were not returning Py_NotImplemented when | Thomas Wouters | 2007-08-28 | 2 | -0/+8 | |
| | | | | compared against something other than sliceobjects. |