Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Discard unused function. | Guido van Rossum | 2007-06-13 | 1 | -34/+0 |
| | |||||
* | Make test_tmpfile() pass. (And hence test_os.py as a whole passes.) | Guido van Rossum | 2007-06-13 | 1 | -2/+2 |
| | | | | tmpfile() now is a binary file. | ||||
* | Fix bz2_test.py by removing the tests for universal newline mode. | Guido van Rossum | 2007-06-13 | 2 | -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 Rossum | 2007-06-13 | 1 | -3/+5 |
| | |||||
* | Checkpoint: half-fixed the bz2 module. 'U' is no longer supported. | Guido van Rossum | 2007-06-13 | 1 | -211/+42 |
| | |||||
* | Rip out the file object's implementation. | Guido van Rossum | 2007-06-12 | 14 | -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örwald | 2007-06-12 | 1 | -1/+1 |
| | |||||
* | Fix test_shlex: Use io.StringIO. | Walter Dörwald | 2007-06-12 | 1 | -7/+2 |
| | |||||
* | Mention name of left operand, if "foo in unicode_string" | Walter Dörwald | 2007-06-12 | 1 | -2/+3 |
| | | | | fails. | ||||
* | Rip out all codecs that can't work in a unicode/bytes world: | Walter Dörwald | 2007-06-12 | 11 | -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örwald | 2007-06-12 | 1 | -1/+1 |
| | |||||
* | Revert 55876. Use PyUnicode_AsEncodedString instead. | Martin v. Löwis | 2007-06-12 | 2 | -20/+3 |
| | |||||
* | Duh. Delete the outdated comment too. | Guido van Rossum | 2007-06-12 | 1 | -7/+0 |
| | |||||
* | Seems this test is just fine. It fails because __phello__.spam | Guido van Rossum | 2007-06-12 | 1 | -2/+0 |
| | | | | doesn't exist, but that seems a separate issue. | ||||
* | Minimal changes to make the "freeze" tool work again. | Guido van Rossum | 2007-06-12 | 8 | -29/+31 |
| | | | | There are other issues left, but these were basics (e.g. keys().sort()). | ||||
* | Update the frozen bytecode for __hello__. | Guido van Rossum | 2007-06-12 | 1 | -3/+3 |
| | |||||
* | Some quick fixes of code that was sorting dict.keys() etc. | Guido van Rossum | 2007-06-12 | 1 | -6/+3 |
| | |||||
* | Remove unused code. | Walter Dörwald | 2007-06-11 | 1 | -4/+0 |
| | |||||
* | Simplify various spots where: str() is called on something | Walter Dörwald | 2007-06-11 | 9 | -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örwald | 2007-06-11 | 1 | -2/+3 |
| | | | | PyUnicode_FromFormat() and PyUnicode_FromFormatV(). | ||||
* | Document PyUnicode_FromFormat(). | Walter Dörwald | 2007-06-11 | 1 | -0/+49 |
| | |||||
* | Add a format specifier %V to PyUnicode_FromFormat(), that works similar to %U, | Walter Dörwald | 2007-06-11 | 3 | -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örwald | 2007-06-11 | 1 | -3/+2 |
| | | | | Remove unused variable. | ||||
* | Use PyErr_Format() directly instead of | Walter Dörwald | 2007-06-11 | 1 | -5/+3 |
| | | | | PyOS_snprintf()+PyErr_SetString(). | ||||
* | Simplify error formatting. Fix error message in | Walter Dörwald | 2007-06-11 | 1 | -12/+12 |
| | | | | check_unoptimized(). | ||||
* | Simplify ste_repr(). | Walter Dörwald | 2007-06-11 | 1 | -7/+3 |
| | |||||
* | Simplify error formatting and type_repr(). | Walter Dörwald | 2007-06-11 | 1 | -8/+4 |
| | |||||
* | Simplify error formatting. | Walter Dörwald | 2007-06-11 | 1 | -10/+10 |
| | |||||
* | Simplify error formatting (no default encoding required). | Walter Dörwald | 2007-06-11 | 1 | -3/+2 |
| | |||||
* | Check unicode identifier directly instead of converting | Walter Dörwald | 2007-06-11 | 2 | -4/+11 |
| | | | | it to an 8bit string first. | ||||
* | __module__ is a unicode string now: | Walter Dörwald | 2007-06-11 | 1 | -5/+2 |
| | | | | | | | use PyUnicode_CompareWithASCIIString() instead of strcmp(). Simplify repr formatting. | ||||
* | Short-cut lookup of utf-8 codec, to make import work | Martin v. Löwis | 2007-06-11 | 1 | -0/+17 |
| | | | | on OSX. | ||||
* | Expect unicode in class_name. | Martin v. Löwis | 2007-06-10 | 1 | -3/+3 |
| | |||||
* | Fix getclassname. Fixes test_descrtut. | Martin v. Löwis | 2007-06-10 | 1 | -2/+2 |
| | |||||
* | Make identifiers str (not str8) objects throughout. | Martin v. Löwis | 2007-06-10 | 40 | -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örwald | 2007-06-09 | 1 | -6/+6 |
| | | | | Simplify formatting (use "%r" % x instead of "%s" % repr(x)). | ||||
* | Fix Cookie.py: Fix example in the docstring (encoded SerialCookies contain | Walter Dörwald | 2007-06-08 | 1 | -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 always | Walter Dörwald | 2007-06-08 | 7 | -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örwald | 2007-06-08 | 1 | -1/+1 |
| | |||||
* | Make test_socket work. | Guido van Rossum | 2007-06-08 | 2 | -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 Rossum | 2007-06-07 | 1 | -19/+23 |
| | |||||
* | Accellerate binary readline() a bit. | Guido van Rossum | 2007-06-07 | 2 | -8/+26 |
| | |||||
* | Merged revisions 55795-55816 via svnmerge from | Guido van Rossum | 2007-06-07 | 40 | -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 Vassalotti | 2007-06-07 | 1 | -2/+3 |
| | |||||
* | The bufsize argument to Popen() should accept None meaning the default (0). | Guido van Rossum | 2007-06-07 | 2 | -0/+10 |
| | |||||
* | Change normalize_encodings() to avoid using .translate() or depending on | Guido van Rossum | 2007-06-07 | 1 | -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.executable | Walter Dörwald | 2007-06-07 | 1 | -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 objects | Walter Dörwald | 2007-06-07 | 1 | -7/+7 |
| | | | | (executable, prefix and exec_prefix are still str8). | ||||
* | Don't lie in error messages from str8. | Guido van Rossum | 2007-06-07 | 1 | -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örwald | 2007-06-07 | 2 | -2/+2 |
| | | | | | Fix string_tests.py::MixinStrUnicodeTest.test_bug1001011(): Test str and str8. |