summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Run 2to3 over the Demo/ directory to shut up parse errors from 2to3 about ↵Collin Winter2007-07-17132-1081/+1071
| | | | lingering print statements.
* SF patch# 1755229 by Amaury Forgeot d'Arc: fix _winreg module and tests.Guido van Rossum2007-07-172-34/+24
| | | | Untested.
* Minimal changes to make ftplib work. Basically, this opens the stream inGuido van Rossum2007-07-171-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 testsGuido van Rossum2007-07-171-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 Winter2007-07-172-6/+5
|
* Fix a bug in distutils.core's error handling.Collin Winter2007-07-171-2/+2
|
* Make the test of chr() overflow pass.Guido van Rossum2007-07-171-1/+1
| | | | (Sigh. There are so many redundant tests.)
* Fix a bug from the map->itertools.imap conversion.Collin Winter2007-07-171-2/+1
|
* Make test_pickletools.py pass.Guido van Rossum2007-07-171-34/+20
|
* Fix for cProfile.Guido van Rossum2007-07-162-1/+4
| | | | SF patch# 1755176 by Amaury Forgeot d'Arc.
* Change a bunch of file encodings from Latin-1 to UTF-8.Guido van Rossum2007-07-166-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 Rossum2007-07-161-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 Rossum2007-07-163-9/+15
|
* Fix test_uu.py by inserting an explicit conversion from bytes to strGuido van Rossum2007-07-161-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 Rossum2007-07-161-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 Rossum2007-07-162-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 Rossum2007-07-151-1/+18
|
* Don't stop installing if compileall fails -- ever.Guido van Rossum2007-07-151-2/+2
|
* Improve error handling; don't die from unicode errors or syntax errors.Guido van Rossum2007-07-151-3/+9
|
* Make chr() and ord() return/accept surrogate pairs in narrow builds.Guido van Rossum2007-07-153-20/+59
| | | | The domain of chr() and the range of ord() are now always [0 ... 0x10FFFF].
* Fix ctypes tests on OS X.Thomas Heller2007-07-141-8/+0
|
* For easier merging, revert ths change; it will be brought back in whenThomas Heller2007-07-131-0/+2
| | | | the trunk is merged.
* atexit is a builtin module now, provide that on Windows.Thomas Heller2007-07-132-0/+5
|
* c_char, c_char_p objects and c_char array structure fields returnThomas Heller2007-07-137-40/+29
| | | | their value now as str, no longer str8.
* Do not accept str8 type in function calls any longer.Thomas Heller2007-07-133-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 ctypesThomas Heller2007-07-131-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 ctypesThomas Heller2007-07-1315-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 orThomas Heller2007-07-132-2/+36
| | | | (unicode) string.
* No crashes on Linux in the ctypes test suite any longer, so we canThomas Heller2007-07-122-23/+19
| | | | remove the 'crash-protection'.
* Fix segfault on Linux.Thomas Heller2007-07-121-4/+4
|
* More easy fixes. The ctypes unittests pass now (on Windows).Thomas Heller2007-07-122-4/+4
|
* binascii.hexlify returns a bytes object; we must convert it to strThomas Heller2007-07-121-1/+1
| | | | before we can pass it to re.sub.
* Simple fixes.Thomas Heller2007-07-122-7/+7
|
* Simple fixes.Thomas Heller2007-07-121-4/+4
|
* Simple fixes.Thomas Heller2007-07-122-10/+4
|
* c_void_p.from_param accepts bytes. Fix test_prototypes.Thomas Heller2007-07-122-1/+19
|
* c_char_p.from_param accepts bytes. Fix test_parameters.Thomas Heller2007-07-122-4/+4
|
* Fix another test.Thomas Heller2007-07-121-1/+1
|
* test_slicing does not segfault under linux anymore, so we can run thisThomas Heller2007-07-121-40/+38
| | | | test by default.
* Accept bytes as parameter to foreign functions without prototype.Thomas Heller2007-07-122-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 Heller2007-07-123-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 aThomas Heller2007-07-121-17/+9
| | | | PyStringObject before).
* Accept bytes in c_char_p and c_wchar_p types.Thomas Heller2007-07-122-9/+18
|
* ctypes.c_char and ctypes.c_wchar now accept initialization from byte objects.Thomas Heller2007-07-122-2/+41
|
* Use a unicode string as unique_key instead of 8-bit string.Thomas Heller2007-07-122-4/+4
|
* Fix typo in docstring.Walter Dörwald2007-07-121-1/+1
|
* Rename PyTclObject_unicode to PyTclObject_str and use thisWalter Dörwald2007-07-121-22/+3
| | | | for the tp_str slot. Drop __unicode__ method.
* Fix a ctypes test.Thomas Heller2007-07-121-3/+3
|
* Fix a ctypes test.Thomas Heller2007-07-121-4/+4
|
* Skip testing the special file "/dev/tty" on Windows. This test doesThomas Heller2007-07-121-16/+17
| | | | weird things if someone has a "\dev" directory on the current drive.