summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Discard unused function.Guido van Rossum2007-06-131-34/+0
|
* Make test_tmpfile() pass. (And hence test_os.py as a whole passes.)Guido van Rossum2007-06-131-2/+2
| | | | tmpfile() now is a binary file.
* Fix bz2_test.py by removing the tests for universal newline mode.Guido van Rossum2007-06-132-37/+2
| | | | | If you want text support, wrap a TextIOWrapper around it. Remove references to universal newlines from the BZ2File docstring.
* Make it compile with GCC 2.96.Guido van Rossum2007-06-131-3/+5
|
* Checkpoint: half-fixed the bz2 module. 'U' is no longer supported.Guido van Rossum2007-06-131-211/+42
|
* Rip out the file object's implementation.Guido van Rossum2007-06-1214-2536/+105
| | | | | | | | | | | Fixed test_import.py while I was at it. However, there's still a problem in import.c -- get_file() can leak a FILE struct (not a file descriptor though). I'm not sure how to fix this; closing the FILE* closes the file descriptor, and that's the wrong thing to do when there's still a Python file object keeping the file descriptor open. I also would rather not mess with dup(), as it won't port to Windows.
* unicode is named str now => fix type check.Walter Dörwald2007-06-121-1/+1
|
* Fix test_shlex: Use io.StringIO.Walter Dörwald2007-06-121-7/+2
|
* Mention name of left operand, if "foo in unicode_string"Walter Dörwald2007-06-121-2/+3
| | | | fails.
* Rip out all codecs that can't work in a unicode/bytes world:Walter Dörwald2007-06-1211-730/+6
| | | | | | | | base64, uu, zlib, rot_13, hex, quopri, bz2, string_escape. However codecs.escape_encode() and codecs.escape_decode() still exist, as they are used for pickling str8 objects (so those two functions can go, when the str8 type is removed).
* Make module docstrings unicode objects.Walter Dörwald2007-06-121-1/+1
|
* Revert 55876. Use PyUnicode_AsEncodedString instead.Martin v. Löwis2007-06-122-20/+3
|
* Duh. Delete the outdated comment too.Guido van Rossum2007-06-121-7/+0
|
* Seems this test is just fine. It fails because __phello__.spamGuido van Rossum2007-06-121-2/+0
| | | | doesn't exist, but that seems a separate issue.
* Minimal changes to make the "freeze" tool work again.Guido van Rossum2007-06-128-29/+31
| | | | There are other issues left, but these were basics (e.g. keys().sort()).
* Update the frozen bytecode for __hello__.Guido van Rossum2007-06-121-3/+3
|
* Some quick fixes of code that was sorting dict.keys() etc.Guido van Rossum2007-06-121-6/+3
|
* Remove unused code.Walter Dörwald2007-06-111-4/+0
|
* Simplify various spots where: str() is called on somethingWalter Dörwald2007-06-119-89/+48
| | | | | | that already is a string or the existence of the str class is checked or a check is done for str twice. These all stem from the initial unicode->str replacement.
* Add versionadded notes to PyUnicode_FromString(),Walter Dörwald2007-06-111-2/+3
| | | | PyUnicode_FromFormat() and PyUnicode_FromFormatV().
* Document PyUnicode_FromFormat().Walter Dörwald2007-06-111-0/+49
|
* Add a format specifier %V to PyUnicode_FromFormat(), that works similar to %U,Walter Dörwald2007-06-113-44/+66
| | | | | | | but requires an additional char * that will be used if the unicode object is NULL. Use %V in descrobject.c and classobject.c.
* Fix PyErr_Format() call (missing exception class).Walter Dörwald2007-06-111-3/+2
| | | | Remove unused variable.
* Use PyErr_Format() directly instead ofWalter Dörwald2007-06-111-5/+3
| | | | PyOS_snprintf()+PyErr_SetString().
* Simplify error formatting. Fix error message inWalter Dörwald2007-06-111-12/+12
| | | | check_unoptimized().
* Simplify ste_repr().Walter Dörwald2007-06-111-7/+3
|
* Simplify error formatting and type_repr().Walter Dörwald2007-06-111-8/+4
|
* Simplify error formatting.Walter Dörwald2007-06-111-10/+10
|
* Simplify error formatting (no default encoding required).Walter Dörwald2007-06-111-3/+2
|
* Check unicode identifier directly instead of convertingWalter Dörwald2007-06-112-4/+11
| | | | it to an 8bit string first.
* __module__ is a unicode string now:Walter Dörwald2007-06-111-5/+2
| | | | | | | use PyUnicode_CompareWithASCIIString() instead of strcmp(). Simplify repr formatting.
* Short-cut lookup of utf-8 codec, to make import workMartin v. Löwis2007-06-111-0/+17
| | | | on OSX.
* Expect unicode in class_name.Martin v. Löwis2007-06-101-3/+3
|
* Fix getclassname. Fixes test_descrtut.Martin v. Löwis2007-06-101-2/+2
|
* Make identifiers str (not str8) objects throughout.Martin v. Löwis2007-06-1040-289/+462
| | | | | | | | | | | | | | | | | | | This affects the parser, various object implementations, and all places that put identifiers into C string literals. In testing, a number of crashes occurred as code would fail when the recursion limit was reached (such as the Unicode interning dictionary having key/value pairs where key is not value). To solve these, I added an overflowed flag, which allows for 50 more recursions after the limit was reached and the exception was raised, and a recursion_critical flag, which indicates that recursion absolutely must be allowed, i.e. that a certain call must not cause a stack overflow exception. There are still some places where both str and str8 are accepted as identifiers; these should eventually be removed.
* Adapt to new exception message.Walter Dörwald2007-06-091-6/+6
| | | | Simplify formatting (use "%r" % x instead of "%s" % repr(x)).
* Fix Cookie.py: Fix example in the docstring (encoded SerialCookies containWalter Dörwald2007-06-081-12/+10
| | | | | | unicode now). Fix _quote() and Morsel.set() which were using str8.translate(). As cPickle.dumps() returns bytes now value_encode() and value_decode() methods must encode/decode (however output() might better return a bytes object).
* Rename checks for test_support.have_unicode (we alwaysWalter Dörwald2007-06-087-112/+62
| | | | | have unicode support now) and either drop the tests or merge them into the existing tests.
* Fix chr() test (1000000 was accepted on a UCS4 build).Walter Dörwald2007-06-081-1/+1
|
* Make test_socket work.Guido van Rossum2007-06-082-8/+14
| | | | Don't exclude test_socket from the tests to run.
* Just enoug fixes so that test_mailbox fails instead of loops forever.Guido van Rossum2007-06-071-19/+23
|
* Accellerate binary readline() a bit.Guido van Rossum2007-06-072-8/+26
|
* Merged revisions 55795-55816 via svnmerge fromGuido van Rossum2007-06-0740-202/+161
| | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/p3yk ........ r55797 | neal.norwitz | 2007-06-07 00:00:57 -0700 (Thu, 07 Jun 2007) | 3 lines Get rid of some remnants of classic classes. types.ClassType == type. Also get rid of almost all uses of the types module and use the builtin name. ........ r55798 | neal.norwitz | 2007-06-07 00:12:36 -0700 (Thu, 07 Jun 2007) | 1 line Remove a use of types, verify commit hook works ........ r55809 | guido.van.rossum | 2007-06-07 11:11:29 -0700 (Thu, 07 Jun 2007) | 2 lines Fix syntax error introduced by Neal in last checkin. ........
* Fix pdb help command.Alexandre Vassalotti2007-06-071-2/+3
|
* The bufsize argument to Popen() should accept None meaning the default (0).Guido van Rossum2007-06-072-0/+10
|
* Change normalize_encodings() to avoid using .translate() or depending onGuido van Rossum2007-06-071-14/+11
| | | | | the string type. It will always return a Unicode string. The algoritm's specification is unchanged.
* Fix libc_ver(): libc_ver() was reading sys.executableWalter Dörwald2007-06-071-2/+2
| | | | | | | in binary mode and comparing the content to strings, which failed. Now the bytes get decoded into unicode using latin-1 (the comparison compares ASCII strings only anyway, and we don't want the decoding to fail).
* Change most sys attributes that were str8 objects into str objectsWalter Dörwald2007-06-071-7/+7
| | | | (executable, prefix and exec_prefix are still str8).
* Don't lie in error messages from str8.Guido van Rossum2007-06-071-9/+9
| | | | In some cases we use the more neutral term string; in others we are explicit.
* Fix test_str.py so that it tests the str8 class.Walter Dörwald2007-06-072-2/+2
| | | | | Fix string_tests.py::MixinStrUnicodeTest.test_bug1001011(): Test str and str8.