Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Run 2to3 over the Demo/ directory to shut up parse errors from 2to3 about ↵ | Collin Winter | 2007-07-17 | 132 | -1081/+1071 |
| | | | | lingering print statements. | ||||
* | SF patch# 1755229 by Amaury Forgeot d'Arc: fix _winreg module and tests. | Guido van Rossum | 2007-07-17 | 2 | -34/+24 |
| | | | | Untested. | ||||
* | Minimal changes to make ftplib work. Basically, this opens the stream in | Guido van Rossum | 2007-07-17 | 1 | -4/+5 |
| | | | | | text mode and encodes commands being sent. The default encoding is ASCII, there's a class/instance variable 'encoding' you could set to change it. | ||||
* | (1) SF patch# 1755214 by Amaury Forgeot d'Arc which makes some tests | Guido van Rossum | 2007-07-17 | 1 | -6/+9 |
| | | | | | | | pass on Windows. (2) Fix a typo in makefile() where using a text mode would attempt to set self.mode instead of text.mode. | ||||
* | Fix two bugs from the map->itertools.imap switch. | Collin Winter | 2007-07-17 | 2 | -6/+5 |
| | |||||
* | Fix a bug in distutils.core's error handling. | Collin Winter | 2007-07-17 | 1 | -2/+2 |
| | |||||
* | Make the test of chr() overflow pass. | Guido van Rossum | 2007-07-17 | 1 | -1/+1 |
| | | | | (Sigh. There are so many redundant tests.) | ||||
* | Fix a bug from the map->itertools.imap conversion. | Collin Winter | 2007-07-17 | 1 | -2/+1 |
| | |||||
* | Make test_pickletools.py pass. | Guido van Rossum | 2007-07-17 | 1 | -34/+20 |
| | |||||
* | Fix for cProfile. | Guido van Rossum | 2007-07-16 | 2 | -1/+4 |
| | | | | SF patch# 1755176 by Amaury Forgeot d'Arc. | ||||
* | Change a bunch of file encodings from Latin-1 to UTF-8. | Guido van Rossum | 2007-07-16 | 6 | -17/+17 |
| | | | | | | | Remove the encoding from Tix.py (it doesn't seem to need one). Note: we still have to keep the "coding: utf-8" declaration for files that aren't pure ASCII, as the default per PEP 3120 hasn't been implemented yet. | ||||
* | Fix for one particular test (test_file). There are still four errors. | Guido van Rossum | 2007-07-16 | 1 | -1/+1 |
| | | | | (This is not the fix suggested by Hasan Diwan in SF patch# 1753889.) | ||||
* | Three patches by Amaury Forgeot d'Arc; SF patch# 1754484. | Guido van Rossum | 2007-07-16 | 3 | -9/+15 |
| | |||||
* | Fix test_uu.py by inserting an explicit conversion from bytes to str | Guido van Rossum | 2007-07-16 | 1 | -1/+1 |
| | | | | into uu.py. (This is *not* SF patch 1754339, which I rejected.) | ||||
* | Fix a weird use of try/finally to close a file. | Guido van Rossum | 2007-07-16 | 1 | -60/+57 |
| | | | | | (There are more places that don't close 'f' at all if an error occurs, but none have a bogus try/finally pattern.) | ||||
* | SF patch# 1752647 by Joe Gregorio. | Guido van Rossum | 2007-07-16 | 2 | -47/+49 |
| | | | | | Fixes to make test_mmap.py pass unit tests. Moves the interface from being string based to being bytes based. | ||||
* | Use the encoding specification when reading the source file. | Guido van Rossum | 2007-07-15 | 1 | -1/+18 |
| | |||||
* | Don't stop installing if compileall fails -- ever. | Guido van Rossum | 2007-07-15 | 1 | -2/+2 |
| | |||||
* | Improve error handling; don't die from unicode errors or syntax errors. | Guido van Rossum | 2007-07-15 | 1 | -3/+9 |
| | |||||
* | Make chr() and ord() return/accept surrogate pairs in narrow builds. | Guido van Rossum | 2007-07-15 | 3 | -20/+59 |
| | | | | The domain of chr() and the range of ord() are now always [0 ... 0x10FFFF]. | ||||
* | Fix ctypes tests on OS X. | Thomas Heller | 2007-07-14 | 1 | -8/+0 |
| | |||||
* | For easier merging, revert ths change; it will be brought back in when | Thomas Heller | 2007-07-13 | 1 | -0/+2 |
| | | | | the trunk is merged. | ||||
* | atexit is a builtin module now, provide that on Windows. | Thomas Heller | 2007-07-13 | 2 | -0/+5 |
| | |||||
* | c_char, c_char_p objects and c_char array structure fields return | Thomas Heller | 2007-07-13 | 7 | -40/+29 |
| | | | | their value now as str, no longer str8. | ||||
* | Do not accept str8 type in function calls any longer. | Thomas Heller | 2007-07-13 | 3 | -10/+11 |
| | | | | Accept bytes instead of str8 in the (unexposed in ctypes) BSTR type. | ||||
* | Remove all the Python 2.3 compatibility markers (the Python 3 ctypes | Thomas Heller | 2007-07-13 | 1 | -46/+0 |
| | | | | | version is not compatible with Python 2.x anymore). Remove backwards compatibility code. | ||||
* | Remove all the Python 2.3 compatibility markers (the Python 3 ctypes | Thomas Heller | 2007-07-13 | 15 | -177/+0 |
| | | | | | version is not compatible with Python 2.x anymore). Remove backwards compatibility code. | ||||
* | Structure fields of type c_char array or c_wchar array accept bytes or | Thomas Heller | 2007-07-13 | 2 | -2/+36 |
| | | | | (unicode) string. | ||||
* | No crashes on Linux in the ctypes test suite any longer, so we can | Thomas Heller | 2007-07-12 | 2 | -23/+19 |
| | | | | remove the 'crash-protection'. | ||||
* | Fix segfault on Linux. | Thomas Heller | 2007-07-12 | 1 | -4/+4 |
| | |||||
* | More easy fixes. The ctypes unittests pass now (on Windows). | Thomas Heller | 2007-07-12 | 2 | -4/+4 |
| | |||||
* | binascii.hexlify returns a bytes object; we must convert it to str | Thomas Heller | 2007-07-12 | 1 | -1/+1 |
| | | | | before we can pass it to re.sub. | ||||
* | Simple fixes. | Thomas Heller | 2007-07-12 | 2 | -7/+7 |
| | |||||
* | Simple fixes. | Thomas Heller | 2007-07-12 | 1 | -4/+4 |
| | |||||
* | Simple fixes. | Thomas Heller | 2007-07-12 | 2 | -10/+4 |
| | |||||
* | c_void_p.from_param accepts bytes. Fix test_prototypes. | Thomas Heller | 2007-07-12 | 2 | -1/+19 |
| | |||||
* | c_char_p.from_param accepts bytes. Fix test_parameters. | Thomas Heller | 2007-07-12 | 2 | -4/+4 |
| | |||||
* | Fix another test. | Thomas Heller | 2007-07-12 | 1 | -1/+1 |
| | |||||
* | test_slicing does not segfault under linux anymore, so we can run this | Thomas Heller | 2007-07-12 | 1 | -40/+38 |
| | | | | test by default. | ||||
* | Accept bytes as parameter to foreign functions without prototype. | Thomas Heller | 2007-07-12 | 2 | -2/+11 |
| | | | | | These are passed as byte strings (unicode strings are passed as wide character strings). | ||||
* | Accept bytes for c_wchar_p instances and c_wchar array instances. | Thomas Heller | 2007-07-12 | 3 | -7/+7 |
| | | | | | | | | ctypes.create_unicode_buffer also accepts bytes now. Revert some tests in test_unicode: Since string literals are unicode now, conversion takes place when byte literals are passed as unicode parameters. | ||||
* | Change the StgDictObject's proto member to a PyUnicode_Object (was a | Thomas Heller | 2007-07-12 | 1 | -17/+9 |
| | | | | PyStringObject before). | ||||
* | Accept bytes in c_char_p and c_wchar_p types. | Thomas Heller | 2007-07-12 | 2 | -9/+18 |
| | |||||
* | ctypes.c_char and ctypes.c_wchar now accept initialization from byte objects. | Thomas Heller | 2007-07-12 | 2 | -2/+41 |
| | |||||
* | Use a unicode string as unique_key instead of 8-bit string. | Thomas Heller | 2007-07-12 | 2 | -4/+4 |
| | |||||
* | Fix typo in docstring. | Walter Dörwald | 2007-07-12 | 1 | -1/+1 |
| | |||||
* | Rename PyTclObject_unicode to PyTclObject_str and use this | Walter Dörwald | 2007-07-12 | 1 | -22/+3 |
| | | | | for the tp_str slot. Drop __unicode__ method. | ||||
* | Fix a ctypes test. | Thomas Heller | 2007-07-12 | 1 | -3/+3 |
| | |||||
* | Fix a ctypes test. | Thomas Heller | 2007-07-12 | 1 | -4/+4 |
| | |||||
* | Skip testing the special file "/dev/tty" on Windows. This test does | Thomas Heller | 2007-07-12 | 1 | -16/+17 |
| | | | | weird things if someone has a "\dev" directory on the current drive. |