summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Second part of sf# 1752225: On windows, emulate ftruncate with Win32Thomas Heller2007-07-121-4/+37
| | | | | | | | | | | api functions. Code from fileobject.c, patch by Amaury Forgeot d'Arc. This patch also changes: The return value of the native ftruncate function is checked for '!= 0' instead of '< 0' as before. fileio_seekable returns bool now instead of an int.
* First part of sf# 1752225: Support for wide filenames on Windows.Thomas Heller2007-07-121-9/+12
| | | | Patch by Amaury Forgeot d'Arc.
* Py_USING_UNICODE is no longer defined on Windows (on posix it is stillThomas Heller2007-07-122-80/+1
| | | | | in pyconfig.h). Remove the workaround for the broken (in Python 2.3) PyUnicode_(From|As)WideChar functions.
* Make this a pure-ASCII file. This used to have a Latin-1 coding andGuido van Rossum2007-07-121-12/+11
| | | | | | | | | | contain several string literals using non-ASCII characters. Because of the pain of displaying those characters, it's better to use \xXX escapes for these instead of typing the accented characters. Apologies if I missed something; it didn't look like there was anything that depended on this file being encoded in Latin-1 or containing non-ASCII characters.
* Merged revisions 56265-56300 via svnmerge fromGuido van Rossum2007-07-121-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/p3yk ........ r56274 | georg.brandl | 2007-07-11 08:10:46 -0700 (Wed, 11 Jul 2007) | 2 lines Fix #1751965, typo in isinstance. ........
* Fix for tet_bigmem.py (the failure was caused by a spurious referenceGuido van Rossum2007-07-121-1/+1
| | | | | to 'file', which no longer exists). Fix inspired by Christian Heimes, SF# 1752195.
* Fixes for str/uni/bytes for gettext.py. test_gettext.py passes.Guido van Rossum2007-07-121-33/+13
| | | | | | | | Fix by Christian Heimes, SF# 1751958, who writes: I tested the fixes with the Zope3 zope.app.locales packages. The mo files are loaded and parsed w/o any problem. The translation with gettext.gettext is working as expected.