summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* (no commit message)Collin Winter2007-08-291-0/+1
|
* (no commit message)Collin Winter2007-08-290-0/+0
|
* Don't delete test output when "make clean" is run -- only when "makeGuido van Rossum2007-08-291-2/+2
| | | | clobber" is run. (Thanks Thomas W. for pointing this out!)
* Modernize clean and funny targets.Guido van Rossum2007-08-291-5/+19
|
* Mostly rewritten, much shorter README for Py3k.Guido van Rossum2007-08-291-1204/+87
|
* [Oops, I forgot half of the patch.]Guido van Rossum2007-08-291-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 Rossum2007-08-291-1/+1
|
* Change string literal to bytes.Jeremy Hylton2007-08-291-1/+1
|
* Make terminator constants bytes.Jeremy Hylton2007-08-291-2/+2
|
* Change string literals to bytes, since they are compared to bytes.Jeremy Hylton2007-08-291-2/+2
|
* Fix issue # 1037 (sort of).Guido van Rossum2007-08-291-2/+8
|
* Make it an error to compare a bytes object and a Unicode object.Jeremy Hylton2007-08-292-7/+13
|
* Patch # 1050 by Amaury Forgeot d'Arc.Guido van Rossum2007-08-291-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. Kaiser2007-08-292-10/+32
| | | | 2. Fix some debug prints in RemoteDebugger.py - use py3k syntax.
* Patch # 1048 by Amaury Forgeot d'Arc.Guido van Rossum2007-08-291-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 Rossum2007-08-295-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 Rossum2007-08-291-1/+1
| | | | so that even on Windows, after s.write("x\n"), s.getvalue() == "x\n".
* Unset PYTHONPATH, for my convenience.Guido van Rossum2007-08-291-0/+3
|
* Insist that the argument to TextIOWrapper.write() is a basestringGuido van Rossum2007-08-291-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 Rossum2007-08-291-1/+1
|
* Convert various string literals to bytes.Jeremy Hylton2007-08-293-6/+6
|
* PEP 7 clean ups, no change in behavior.Jeremy Hylton2007-08-291-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 Hylton2007-08-291-4/+4
|
* Fix up brokenness with hashing, now hashlib is strict in requiring bytes too.Guido van Rossum2007-08-292-9/+10
|
* Straggler (forgot to save this earlier).Guido van Rossum2007-08-291-2/+1
|
* Refuse to compute digests from PyUnicode (str) instances.Guido van Rossum2007-08-291-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 Rossum2007-08-291-1/+0
|
* Fix the one failing test (can't decode twice).Guido van Rossum2007-08-291-1/+2
|
* Add PyUnicode_AsStringAndSize(), which is like PyUnicode_AsString() butGuido van Rossum2007-08-294-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 Rossum2007-08-291-0/+1
|
* Fix failure in error handler -- exc[-1] -> exc.args[-1].Guido van Rossum2007-08-291-2/+2
|
* Corrected missed #if in r57652.Eric Smith2007-08-291-0/+2
|
* Added conditional compilation for '()', which was an allowed sign code in aEric Smith2007-08-291-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 passingNeal Norwitz2007-08-293-6/+6
|
* strings vs bytes, bytes wins againGregory P. Smith2007-08-291-4/+4
|
* Commit strict str/bytes distinction.Guido van Rossum2007-08-293-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 Rossum2007-08-294-10/+8
|
* Change the way the encoding parameter is handled.Guido van Rossum2007-08-291-11/+6
| | | | This fixes test_doctest with strict bytes/str.
* Make test_cmd_line work with strict str/bytes.Guido van Rossum2007-08-291-4/+4
|
* Fix the sqlite test. Blobs should be created using buffer(b"blob"),Guido van Rossum2007-08-291-3/+3
| | | | not buffer("blob").
* "Fix" a few places that were using PyObject_AsCharBuffer() to convert a stringGuido van Rossum2007-08-292-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 returnEric Smith2007-08-292-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 Rossum2007-08-291-3/+3
|
* Fix this test. How could it ever have worked?!Guido van Rossum2007-08-291-2/+3
|
* Forgot one. This makes test_urllib2.py pass.Guido van Rossum2007-08-291-1/+1
|
* Make test_httplib pass.Guido van Rossum2007-08-291-3/+3
|
* Make test_urllib be strict about str/bytes.Guido van Rossum2007-08-292-5/+5
| | | | (One change to httplib.py, but not enough for test_httplib.)
* Disable this test too.Guido van Rossum2007-08-291-0/+2
|
* Disable test_ssl until ssl.py has been fixed.Guido van Rossum2007-08-291-0/+2
|
* Fix buglet in sliceobjects, they were not returning Py_NotImplemented whenThomas Wouters2007-08-282-0/+8
| | | | compared against something other than sliceobjects.