Thomas Heller
d660fabd24
binascii.hexlify returns a bytes object; we must convert it to str
...
before we can pass it to re.sub.
2007-07-12 19:56:28 +00:00
Thomas Heller
0d8a1fd78d
Simple fixes.
2007-07-12 19:54:27 +00:00
Thomas Heller
d68d131d29
Simple fixes.
2007-07-12 19:45:20 +00:00
Thomas Heller
f0d8b6eee9
Simple fixes.
2007-07-12 19:42:59 +00:00
Thomas Heller
3821e31d19
c_void_p.from_param accepts bytes. Fix test_prototypes.
2007-07-12 19:38:33 +00:00
Thomas Heller
3d79dd9edf
c_char_p.from_param accepts bytes. Fix test_parameters.
2007-07-12 19:33:24 +00:00
Thomas Heller
7a76e8f67c
Fix another test.
2007-07-12 19:24:59 +00:00
Thomas Heller
9ccf468323
test_slicing does not segfault under linux anymore, so we can run this
...
test by default.
2007-07-12 19:22:10 +00:00
Thomas Heller
7775c716fc
Accept bytes as parameter to foreign functions without prototype.
...
These are passed as byte strings (unicode strings are passed as wide
character strings).
2007-07-12 19:19:43 +00:00
Thomas Heller
60831316df
Accept bytes for c_wchar_p instances and c_wchar array instances.
...
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.
2007-07-12 19:06:25 +00:00
Thomas Heller
2c5e96465f
Accept bytes in c_char_p and c_wchar_p types.
2007-07-12 15:41:51 +00:00
Thomas Heller
3af4266d07
ctypes.c_char and ctypes.c_wchar now accept initialization from byte objects.
2007-07-12 14:58:32 +00:00
Thomas Heller
f7c6d86832
Use a unicode string as unique_key instead of 8-bit string.
2007-07-12 13:55:37 +00:00
Thomas Heller
7c1ebe33b8
Fix a ctypes test.
2007-07-12 12:05:40 +00:00
Thomas Heller
1f498ef63d
Fix a ctypes test.
2007-07-12 11:59:52 +00:00
Thomas Heller
b0f48abd87
Skip testing the special file "/dev/tty" on Windows. This test does
...
weird things if someone has a "\dev" directory on the current drive.
2007-07-12 11:29:02 +00:00
Guido van Rossum
e409b97950
Make this a pure-ASCII file. This used to have a Latin-1 coding and
...
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.
2007-07-12 09:25:21 +00:00
Guido van Rossum
fc0ffb7243
Merged revisions 56265-56300 via svnmerge from
...
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.
........
2007-07-12 08:55:44 +00:00
Guido van Rossum
a5d0c260ac
Fix for tet_bigmem.py (the failure was caused by a spurious reference
...
to 'file', which no longer exists).
Fix inspired by Christian Heimes, SF# 1752195.
2007-07-12 08:11:23 +00:00
Guido van Rossum
652f446d42
Fixes for str/uni/bytes for gettext.py. test_gettext.py passes.
...
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.
2007-07-12 08:04:06 +00:00
Guido van Rossum
076da0957b
Fix asynchat to use bytes instead of strings.
...
Fix by Alexandre Vassalotti, SF# 1752173.
2007-07-12 07:58:54 +00:00
Guido van Rossum
bdab7d3cb6
Fix test_poll.py. By Christian Heimes.
2007-07-11 20:43:16 +00:00
Thomas Heller
acb470c05f
Fix the test; solution found by Christian Heimes. Thanks!
2007-07-11 19:34:54 +00:00
Thomas Heller
f5af466d3a
Fix one more ctypes test, and disable the tests that were segfaulting.
...
Thanks to Christian Heimes for finding these tests.
2007-07-11 14:51:58 +00:00
Thomas Heller
c92159aaea
dict.keys() returns an iterable, convert it into a list.
2007-07-11 14:49:26 +00:00