[Python-3000-checkins] r60023 - in python/branches/py3k: Lib/ctypes/__init__.py Lib/ctypes/test/test_arrays.py Lib/ctypes/test/test_structures.py Modules/_ctypes/_ctypes.c Modules/_ctypes/cfield.c

2008-01-17 Thread thomas.heller
Author: thomas.heller Date: Thu Jan 17 19:46:55 2008 New Revision: 60023 Modified: python/branches/py3k/ (props changed) python/branches/py3k/Lib/ctypes/__init__.py python/branches/py3k/Lib/ctypes/test/test_arrays.py python/branches/py3k/Lib/ctypes/test/test_structures.py python

[Python-3000-checkins] r60059 - python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c python/branches/py3k-ctypes-pep3118/Modules/_ctypes/ctypes.h python/branches/py3k-ctypes-pep3118/Modules/_

2008-01-18 Thread thomas.heller
Author: thomas.heller Date: Fri Jan 18 22:17:05 2008 New Revision: 60059 Modified: python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c python/branches/py3k-ctypes-pep3118/Modules/_ctypes/ctypes.h python/branches/py3k-ctypes-pep3118/Modules/_ctypes/stgdict.c Log: Implement

[Python-3000-checkins] r60055 - python/branches/py3k-ctypes-pep3118

2008-01-18 Thread thomas.heller
Author: thomas.heller Date: Fri Jan 18 21:06:02 2008 New Revision: 60055 Added: python/branches/py3k-ctypes-pep3118/ - copied from r60054, python/branches/py3k/ Log: create branch to support pep3118 in ctypes ___ Python-3000-checkins mailing

[Python-3000-checkins] r60072 - python/branches/py3k-ctypes-pep3118

2008-01-19 Thread thomas.heller
Author: thomas.heller Date: Sat Jan 19 11:51:29 2008 New Revision: 60072 Modified: python/branches/py3k-ctypes-pep3118/ (props changed) Log: Initialized merge tracking via "svnmerge" with revisions "1-60054" from svn+ssh://[EMAIL PROTECTED]/

[Python-3000-checkins] r60108 - in python/branches/py3k-ctypes-pep3118: Lib/ctypes/test/test_pep3118.py Modules/_ctypes/_ctypes.c

2008-01-19 Thread thomas.heller
Author: thomas.heller Date: Sat Jan 19 22:56:12 2008 New Revision: 60108 Added: python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py (contents, props changed) Modified: python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c Log: Always use explicit endian specifiers

[Python-3000-checkins] r60112 - in python/branches/py3k-ctypes-pep3118: Lib/ctypes/test/test_pep3118.py Modules/_ctypes/_ctypes.c

2008-01-19 Thread thomas.heller
Author: thomas.heller Date: Sat Jan 19 23:25:14 2008 New Revision: 60112 Modified: python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c Log: Fully implement tp_asbuffer for pointer types. Modified: python

[Python-3000-checkins] r60236 - python/branches/py3k/Lib/test/test_winreg.py

2008-01-24 Thread thomas.heller
Author: thomas.heller Date: Thu Jan 24 11:31:31 2008 New Revision: 60236 Modified: python/branches/py3k/Lib/test/test_winreg.py Log: Fix a bug in the test. Modified: python/branches/py3k/Lib/test/test_winreg.py

[Python-3000-checkins] r60261 - python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c python/branches/py3k-ctypes-pep3118/Modules/_ctypes/callproc.c python/branches/py3k-ctypes-pep3118/Modules

2008-01-24 Thread thomas.heller
Author: thomas.heller Date: Thu Jan 24 22:01:29 2008 New Revision: 60261 Modified: python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c python/branches/py3k-ctypes-pep3118/Modules/_ctypes/callproc.c python/branches/py3k-ctypes-pep3118/Modules/_ctypes/ctypes.h python/branches

[Python-3000-checkins] r60278 - python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c python/branches/py3k-ctypes-pep3118/Modules/_ctypes/ctypes.h python/branches/py3k-ctypes-pep3118/Modules/_

2008-01-25 Thread thomas.heller
Author: thomas.heller Date: Fri Jan 25 11:53:33 2008 New Revision: 60278 Modified: python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c python/branches/py3k-ctypes-pep3118/Modules/_ctypes/ctypes.h python/branches/py3k-ctypes-pep3118/Modules/_ctypes/stgdict.c Log: Implement

[Python-3000-checkins] r60299 - python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py

2008-01-25 Thread thomas.heller
Author: thomas.heller Date: Fri Jan 25 21:34:11 2008 New Revision: 60299 Modified: python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py Log: Add test for the readonly bit. Modified: python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py

[Python-3000-checkins] r60298 - python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py

2008-01-25 Thread thomas.heller
Author: thomas.heller Date: Fri Jan 25 21:11:08 2008 New Revision: 60298 Modified: python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py Log: Fix test for 64-bt platform. Modified: python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py

[Python-3000-checkins] r60292 - python/branches/py3k-ctypes-pep3118/Modules/_ctypes/stgdict.c

2008-01-25 Thread thomas.heller
Author: thomas.heller Date: Fri Jan 25 20:32:20 2008 New Revision: 60292 Modified: python/branches/py3k-ctypes-pep3118/Modules/_ctypes/stgdict.c Log: Only structures with native packing implement the pep. Unions, or packed structures do not. Modified: python/branches/py3k-ctypes-pep3118

[Python-3000-checkins] r60288 - python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c

2008-01-25 Thread thomas.heller
Author: thomas.heller Date: Fri Jan 25 17:58:30 2008 New Revision: 60288 Modified: python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c Log: All ctypes types now use the same CData_GetBuffer function. Modified: python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c

[Python-3000-checkins] r60289 - python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c python/branches/py3k-ctypes-pep3118/Modules/_ctypes/ctypes.h python/branches/py3k-ctypes-pep3118/Modules/_

2008-01-25 Thread thomas.heller
Author: thomas.heller Date: Fri Jan 25 19:59:45 2008 New Revision: 60289 Modified: python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c python/branches/py3k-ctypes-pep3118/Modules/_ctypes/ctypes.h python/branches/py3k-ctypes-pep3118/Modules/_ctypes/stgdict.c Log: Fix format

[Python-3000-checkins] r60290 - python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c

2008-01-25 Thread thomas.heller
Author: thomas.heller Date: Fri Jan 25 20:09:03 2008 New Revision: 60290 Modified: python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c Log: Implement to format string for function pointers. Modified: python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c

[Python-3000-checkins] r60293 - python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py

2008-01-25 Thread thomas.heller
Author: thomas.heller Date: Fri Jan 25 20:34:31 2008 New Revision: 60293 Modified: python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py Log: Update the test. Modified: python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py

[Python-3000-checkins] r60295 - python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c python/branches/py3k-ctypes-pep3118/Modules/_ctypes/stgdict.c

2008-01-25 Thread thomas.heller
Author: thomas.heller Date: Fri Jan 25 20:44:41 2008 New Revision: 60295 Modified: python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c python/branches/py3k-ctypes-pep3118/Modules/_ctypes/stgdict.c Log: Fixed a few XXX markers. Modified: python/branches/py3k-ctypes-pep3118

[Python-3000-checkins] r60384 - python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py

2008-01-27 Thread thomas.heller
Author: thomas.heller Date: Mon Jan 28 08:45:04 2008 New Revision: 60384 Modified: python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py Log: Restructure the test so that it contains little endian format strings. On big endian machines, the format strings are converted by

[Python-3000-checkins] r60385 - in python/branches/py3k-ctypes-pep3118: Lib/ctypes/test/test_pep3118.py Modules/_ctypes/_ctypes.c

2008-01-27 Thread thomas.heller
Author: thomas.heller Date: Mon Jan 28 08:58:46 2008 New Revision: 60385 Modified: python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py python/branches/py3k-ctypes-pep3118/Modules/_ctypes/_ctypes.c Log: Bugfix and test for explicit big and little endian types. Modified

[Python-3000-checkins] r60428 - python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py

2008-01-29 Thread thomas.heller
Author: thomas.heller Date: Tue Jan 29 22:00:37 2008 New Revision: 60428 Modified: python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py Log: Add comments to clarify the tests. Modified: python/branches/py3k-ctypes-pep3118/Lib/ctypes/test/test_pep3118.py

[Python-3000-checkins] r60746 - python/branches/py3k/Modules/_ctypes/_ctypes.c

2008-02-12 Thread thomas.heller
Author: thomas.heller Date: Tue Feb 12 18:44:23 2008 New Revision: 60746 Modified: python/branches/py3k/Modules/_ctypes/_ctypes.c Log: Revert the last svnmerge (r60681) from trunk to _ctypes.c, it should not have been merged as was noticed in the commit message. Modified: python/branches

[Python-3000-checkins] r60769 - in python/branches/py3k: Doc/library/ctypes.rst Lib/ctypes/test/test_pickling.py Modules/_ctypes/_ctypes.c Modules/_ctypes/callproc.c Modules/_ctypes/ctypes.h Modules/_

2008-02-13 Thread thomas.heller
Author: thomas.heller Date: Wed Feb 13 21:40:44 2008 New Revision: 60769 Added: python/branches/py3k/Lib/ctypes/test/test_pickling.py - copied, changed from r60767, python/trunk/Lib/ctypes/test/test_pickling.py Modified: python/branches/py3k/ (props changed) python/branches/py3k

[Python-3000-checkins] r56253 - python/branches/py3k-struni/Modules/_ctypes/_ctypes_test.c

2007-07-11 Thread thomas.heller
Author: thomas.heller Date: Wed Jul 11 11:41:04 2007 New Revision: 56253 Modified: python/branches/py3k-struni/Modules/_ctypes/_ctypes_test.c Log: Make _ctypes_test.c compile on Windows. Modified: python/branches/py3k-struni/Modules/_ctypes/_ctypes_test.c

[Python-3000-checkins] r56254 - python/branches/py3k-struni/PCbuild/rmpyc.py

2007-07-11 Thread thomas.heller
Author: thomas.heller Date: Wed Jul 11 11:41:23 2007 New Revision: 56254 Modified: python/branches/py3k-struni/PCbuild/rmpyc.py Log: print() is a function now. Modified: python/branches/py3k-struni/PCbuild/rmpyc.py

[Python-3000-checkins] r56257 - python/branches/py3k-struni/Modules/_ctypes/stgdict.c

2007-07-11 Thread thomas.heller
Author: thomas.heller Date: Wed Jul 11 14:18:46 2007 New Revision: 56257 Modified: python/branches/py3k-struni/Modules/_ctypes/stgdict.c Log: PyType_stgdict() returns a borrowed reference which must not be Py_DECREF'd. This bug should be fixed in trunk and release25-maint also. Mod

[Python-3000-checkins] r56259 - python/branches/py3k-struni/Modules/_ctypes/cfield.c python/branches/py3k-struni/Modules/_ctypes/ctypes.h

2007-07-11 Thread thomas.heller
Author: thomas.heller Date: Wed Jul 11 14:21:58 2007 New Revision: 56259 Modified: python/branches/py3k-struni/Modules/_ctypes/cfield.c python/branches/py3k-struni/Modules/_ctypes/ctypes.h Log: Avoid compiler warnings about 'const char*'. Modified: python/branches/py3k-stru

[Python-3000-checkins] r56260 - python/branches/py3k-struni/Modules/_ctypes/_ctypes.c

2007-07-11 Thread thomas.heller
Author: thomas.heller Date: Wed Jul 11 14:24:20 2007 New Revision: 56260 Modified: python/branches/py3k-struni/Modules/_ctypes/_ctypes.c Log: Repair ctypes Structures. Modified: python/branches/py3k-struni/Modules/_ctypes/_ctypes.c

[Python-3000-checkins] r56264 - in python/branches/py3k-struni: Modules/_fileio.c PC/config.c PCbuild/pythoncore.vcproj

2007-07-11 Thread thomas.heller
Author: thomas.heller Date: Wed Jul 11 14:45:46 2007 New Revision: 56264 Modified: python/branches/py3k-struni/Modules/_fileio.c python/branches/py3k-struni/PC/config.c python/branches/py3k-struni/PCbuild/pythoncore.vcproj Log: See SF# 1751801: Windows: Add the _fileio builtin module

[Python-3000-checkins] r56269 - python/branches/py3k-struni/Modules/_ctypes/cfield.c

2007-07-11 Thread thomas.heller
Author: thomas.heller Date: Wed Jul 11 15:55:28 2007 New Revision: 56269 Modified: python/branches/py3k-struni/Modules/_ctypes/cfield.c Log: PyUnicode_AsEncodedString() returns a bytes object. Modified: python/branches/py3k-struni/Modules/_ctypes/cfield.c

[Python-3000-checkins] r56270 - python/branches/py3k-struni/Objects/object.c

2007-07-11 Thread thomas.heller
Author: thomas.heller Date: Wed Jul 11 15:57:16 2007 New Revision: 56270 Modified: python/branches/py3k-struni/Objects/object.c Log: Remove unused local variable. Modified: python/branches/py3k-struni/Objects/object.c

[Python-3000-checkins] r56268 - python/branches/py3k-struni/Lib/ctypes/test/test_cast.py python/branches/py3k-struni/Lib/ctypes/test/test_internals.py

2007-07-11 Thread thomas.heller
Author: thomas.heller Date: Wed Jul 11 15:50:53 2007 New Revision: 56268 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_cast.py python/branches/py3k-struni/Lib/ctypes/test/test_internals.py Log: Fix some more ctypes tests. Modified: python/branches/py3k-struni/Lib/ctypes/test

[Python-3000-checkins] r56272 - python/branches/py3k-struni/Lib/ctypes/test/__init__.py

2007-07-11 Thread thomas.heller
Author: thomas.heller Date: Wed Jul 11 16:49:26 2007 New Revision: 56272 Modified: python/branches/py3k-struni/Lib/ctypes/test/__init__.py Log: dict.keys() returns an iterable, convert it into a list. Modified: python/branches/py3k-struni/Lib/ctypes/test/__init__.py

[Python-3000-checkins] r56279 - python/branches/py3k-struni/Lib/test/test_pep263.py

2007-07-11 Thread thomas.heller
Author: thomas.heller Date: Wed Jul 11 21:34:54 2007 New Revision: 56279 Modified: python/branches/py3k-struni/Lib/test/test_pep263.py Log: Fix the test; solution found by Christian Heimes. Thanks! Modified: python/branches/py3k-struni/Lib/test/test_pep263.py

[Python-3000-checkins] r56282 - in python/branches/py3k-struni: Objects/typeobject.c Python/errors.c

2007-07-11 Thread thomas.heller
Author: thomas.heller Date: Wed Jul 11 21:57:40 2007 New Revision: 56282 Modified: python/branches/py3k-struni/Objects/typeobject.c python/branches/py3k-struni/Python/errors.c Log: Must create heaptypes with unicode names. Modified: python/branches/py3k-struni/Objects/typeobject.c

[Python-3000-checkins] r56283 - in python/branches/py3k-struni: Objects/typeobject.c Python/errors.c

2007-07-11 Thread thomas.heller
Author: thomas.heller Date: Wed Jul 11 22:01:43 2007 New Revision: 56283 Modified: python/branches/py3k-struni/Objects/typeobject.c python/branches/py3k-struni/Python/errors.c Log: Revert a wrong commit. Modified: python/branches/py3k-struni/Objects/typeobject.c

[Python-3000-checkins] r56284 - python/branches/py3k-struni/Modules/_ctypes/_ctypes.c

2007-07-11 Thread thomas.heller
Author: thomas.heller Date: Wed Jul 11 22:02:35 2007 New Revision: 56284 Modified: python/branches/py3k-struni/Modules/_ctypes/_ctypes.c Log: Must create heaptypes with unicode names. Modified: python/branches/py3k-struni/Modules/_ctypes/_ctypes.c

[Python-3000-checkins] r56309 - python/branches/py3k-struni/Modules/_ctypes/_ctypes.c python/branches/py3k-struni/Modules/_ctypes/ctypes.h

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 13:00:22 2007 New Revision: 56309 Modified: python/branches/py3k-struni/Modules/_ctypes/_ctypes.c python/branches/py3k-struni/Modules/_ctypes/ctypes.h Log: Py_USING_UNICODE is no longer defined on Windows (on posix it is still in pyconfig.h). Remove

[Python-3000-checkins] r56310 - python/branches/py3k-struni/Modules/_fileio.c

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 13:03:13 2007 New Revision: 56310 Modified: python/branches/py3k-struni/Modules/_fileio.c Log: First part of sf# 1752225: Support for wide filenames on Windows. Patch by Amaury Forgeot d'Arc. Modified: python/branches/py3k-struni/Modules/_fil

[Python-3000-checkins] r56311 - python/branches/py3k-struni/Modules/_fileio.c

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 13:21:36 2007 New Revision: 56311 Modified: python/branches/py3k-struni/Modules/_fileio.c Log: Second part of sf# 1752225: On windows, emulate ftruncate with Win32 api functions. Code from fileobject.c, patch by Amaury Forgeot d'Arc. Modified: p

[Python-3000-checkins] r56312 - python/branches/py3k-struni/Lib/test/test_fileio.py

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 13:29:02 2007 New Revision: 56312 Modified: python/branches/py3k-struni/Lib/test/test_fileio.py Log: Skip testing the special file "/dev/tty" on Windows. This test does weird things if someone has a "\dev" directory on the curre

[Python-3000-checkins] r56314 - python/branches/py3k-struni/Lib/ctypes/test/test_keeprefs.py

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 14:05:40 2007 New Revision: 56314 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_keeprefs.py Log: Fix a ctypes test. Modified: python/branches/py3k-struni/Lib/ctypes/test/test_keeprefs.py

[Python-3000-checkins] r56313 - python/branches/py3k-struni/Lib/ctypes/test/test_objects.py

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 13:59:52 2007 New Revision: 56313 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_objects.py Log: Fix a ctypes test. Modified: python/branches/py3k-struni/Lib/ctypes/test/test_objects.py

[Python-3000-checkins] r56317 - in python/branches/py3k-struni: Lib/ctypes/test/test_objects.py Modules/_ctypes/_ctypes.c

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 15:55:37 2007 New Revision: 56317 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_objects.py python/branches/py3k-struni/Modules/_ctypes/_ctypes.c Log: Use a unicode string as unique_key instead of 8-bit string. Modified: python/branches

[Python-3000-checkins] r56318 - in python/branches/py3k-struni: Lib/ctypes/test/test_bytes.py Modules/_ctypes/cfield.c

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 16:58:32 2007 New Revision: 56318 Added: python/branches/py3k-struni/Lib/ctypes/test/test_bytes.py (contents, props changed) Modified: python/branches/py3k-struni/Modules/_ctypes/cfield.c Log: ctypes.c_char and ctypes.c_wchar now accept

[Python-3000-checkins] r56319 - in python/branches/py3k-struni: Lib/ctypes/test/test_bytes.py Modules/_ctypes/cfield.c

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 17:41:51 2007 New Revision: 56319 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_bytes.py python/branches/py3k-struni/Modules/_ctypes/cfield.c Log: Accept bytes in c_char_p and c_wchar_p types. Modified: python/branches/py3k-struni/Lib

[Python-3000-checkins] r56324 - python/branches/py3k-struni/Modules/_ctypes/_ctypes.c

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 20:53:22 2007 New Revision: 56324 Modified: python/branches/py3k-struni/Modules/_ctypes/_ctypes.c Log: Change the StgDictObject's proto member to a PyUnicode_Object (was a PyStringObject before). Modified: python/branches/py3k-struni/Modules/_c

[Python-3000-checkins] r56325 - in python/branches/py3k-struni: Lib/ctypes/__init__.py Lib/ctypes/test/test_unicode.py Modules/_ctypes/_ctypes.c

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 21:06:25 2007 New Revision: 56325 Modified: python/branches/py3k-struni/Lib/ctypes/__init__.py python/branches/py3k-struni/Lib/ctypes/test/test_unicode.py python/branches/py3k-struni/Modules/_ctypes/_ctypes.c Log: Accept bytes for c_wchar_p

[Python-3000-checkins] r56329 - python/branches/py3k-struni/Lib/ctypes/test/test_strings.py

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 21:24:59 2007 New Revision: 56329 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_strings.py Log: Fix another test. Modified: python/branches/py3k-struni/Lib/ctypes/test/test_strings.py

[Python-3000-checkins] r56326 - in python/branches/py3k-struni: Lib/ctypes/test/test_slicing.py Modules/_ctypes/callproc.c

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 21:19:43 2007 New Revision: 56326 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_slicing.py python/branches/py3k-struni/Modules/_ctypes/callproc.c Log: Accept bytes as parameter to foreign functions without prototype. These are passed as

[Python-3000-checkins] r56328 - python/branches/py3k-struni/Lib/ctypes/test/test_slicing.py

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 21:22:10 2007 New Revision: 56328 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_slicing.py Log: test_slicing does not segfault under linux anymore, so we can run this test by default. Modified: python/branches/py3k-struni/Lib/ctypes/test

[Python-3000-checkins] r56330 - in python/branches/py3k-struni: Lib/ctypes/test/test_parameters.py Modules/_ctypes/_ctypes.c

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 21:33:24 2007 New Revision: 56330 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_parameters.py python/branches/py3k-struni/Modules/_ctypes/_ctypes.c Log: c_char_p.from_param accepts bytes. Fix test_parameters. Modified: python/branches

[Python-3000-checkins] r56331 - in python/branches/py3k-struni: Lib/ctypes/test/test_prototypes.py Modules/_ctypes/_ctypes.c

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 21:38:33 2007 New Revision: 56331 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_prototypes.py python/branches/py3k-struni/Modules/_ctypes/_ctypes.c Log: c_void_p.from_param accepts bytes. Fix test_prototypes. Modified: python/branches

[Python-3000-checkins] r56333 - python/branches/py3k-struni/Lib/ctypes/test/test_memfunctions.py

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 21:45:20 2007 New Revision: 56333 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_memfunctions.py Log: Simple fixes. Modified: python/branches/py3k-struni/Lib/ctypes/test/test_memfunctions.py

[Python-3000-checkins] r56334 - python/branches/py3k-struni/Lib/ctypes/test/test_internals.py python/branches/py3k-struni/Lib/ctypes/test/test_random_things.py

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 21:54:27 2007 New Revision: 56334 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_internals.py python/branches/py3k-struni/Lib/ctypes/test/test_random_things.py Log: Simple fixes. Modified: python/branches/py3k-struni/Lib/ctypes/test

[Python-3000-checkins] r56335 - python/branches/py3k-struni/Lib/ctypes/test/test_array_in_pointer.py

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 21:56:28 2007 New Revision: 56335 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_array_in_pointer.py Log: binascii.hexlify returns a bytes object; we must convert it to str before we can pass it to re.sub. Modified: python/branches/py3k

[Python-3000-checkins] r56336 - python/branches/py3k-struni/Lib/ctypes/test/test_functions.py python/branches/py3k-struni/Lib/ctypes/test/test_python_api.py

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 21:58:41 2007 New Revision: 56336 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_functions.py python/branches/py3k-struni/Lib/ctypes/test/test_python_api.py Log: More easy fixes. The ctypes unittests pass now (on Windows). Modified

[Python-3000-checkins] r56332 - python/branches/py3k-struni/Lib/ctypes/test/test_repr.py python/branches/py3k-struni/Lib/ctypes/test/test_structures.py

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 21:42:59 2007 New Revision: 56332 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_repr.py python/branches/py3k-struni/Lib/ctypes/test/test_structures.py Log: Simple fixes. Modified: python/branches/py3k-struni/Lib/ctypes/test/test_repr.py

[Python-3000-checkins] r56337 - python/branches/py3k-struni/Lib/ctypes/test/test_funcptr.py

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 22:06:41 2007 New Revision: 56337 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_funcptr.py Log: Fix segfault on Linux. Modified: python/branches/py3k-struni/Lib/ctypes/test/test_funcptr.py

[Python-3000-checkins] r56338 - python/branches/py3k-struni/Lib/ctypes/test/test_functions.py python/branches/py3k-struni/Lib/ctypes/test/test_python_api.py

2007-07-12 Thread thomas.heller
Author: thomas.heller Date: Thu Jul 12 22:10:18 2007 New Revision: 56338 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_functions.py python/branches/py3k-struni/Lib/ctypes/test/test_python_api.py Log: No crashes on Linux in the ctypes test suite any longer, so we can remove the

[Python-3000-checkins] r56341 - in python/branches/py3k-struni: Lib/ctypes/test/test_bytes.py Modules/_ctypes/cfield.c

2007-07-13 Thread thomas.heller
Author: thomas.heller Date: Fri Jul 13 13:19:35 2007 New Revision: 56341 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_bytes.py python/branches/py3k-struni/Modules/_ctypes/cfield.c Log: Structure fields of type c_char array or c_wchar array accept bytes or (unicode) string

[Python-3000-checkins] r56347 - in python/branches/py3k-struni: PC/config.c PCbuild/pythoncore.vcproj

2007-07-13 Thread thomas.heller
Author: thomas.heller Date: Fri Jul 13 15:13:40 2007 New Revision: 56347 Modified: python/branches/py3k-struni/PC/config.c python/branches/py3k-struni/PCbuild/pythoncore.vcproj Log: atexit is a builtin module now, provide that on Windows. Modified: python/branches/py3k-struni/PC/config.c

[Python-3000-checkins] r56344 - in python/branches/py3k-struni: Lib/ctypes/test/test_bytes.py Modules/_ctypes/callproc.c Modules/_ctypes/cfield.c

2007-07-13 Thread thomas.heller
Author: thomas.heller Date: Fri Jul 13 14:07:59 2007 New Revision: 56344 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_bytes.py python/branches/py3k-struni/Modules/_ctypes/callproc.c python/branches/py3k-struni/Modules/_ctypes/cfield.c Log: Do not accept str8 type in

[Python-3000-checkins] r56343 - python/branches/py3k-struni/Modules/_ctypes/ctypes.h

2007-07-13 Thread thomas.heller
Author: thomas.heller Date: Fri Jul 13 13:53:39 2007 New Revision: 56343 Modified: python/branches/py3k-struni/Modules/_ctypes/ctypes.h Log: Remove all the Python 2.3 compatibility markers (the Python 3 ctypes version is not compatible with Python 2.x anymore). Remove backwards compatibility

[Python-3000-checkins] r56356 - python/branches/py3k-struni/Modules/_ctypes/stgdict.c

2007-07-13 Thread thomas.heller
Author: thomas.heller Date: Fri Jul 13 21:48:40 2007 New Revision: 56356 Modified: python/branches/py3k-struni/Modules/_ctypes/stgdict.c Log: For easier merging, revert ths change; it will be brought back in when the trunk is merged. Modified: python/branches/py3k-struni/Modules/_ctypes

[Python-3000-checkins] r56375 - python/branches/py3k-struni/Lib/ctypes/macholib/dyld.py

2007-07-14 Thread thomas.heller
Author: thomas.heller Date: Sat Jul 14 20:51:36 2007 New Revision: 56375 Modified: python/branches/py3k-struni/Lib/ctypes/macholib/dyld.py Log: Fix ctypes tests on OS X. Modified: python/branches/py3k-struni/Lib/ctypes/macholib/dyld.py

[Python-3000-checkins] r57555 - python/branches/py3k/PCbuild/build_ssl.py

2007-08-27 Thread thomas.heller
Author: thomas.heller Date: Mon Aug 27 11:42:33 2007 New Revision: 57555 Modified: python/branches/py3k/PCbuild/build_ssl.py Log: Port the build_ssl.py script to Python 3. Modified: python/branches/py3k/PCbuild/build_ssl.py

[Python-3000-checkins] r57731 - in python/branches/py3k: Lib/test/test_os.py Modules/posixmodule.c

2007-08-30 Thread thomas.heller
Author: thomas.heller Date: Thu Aug 30 19:15:14 2007 New Revision: 57731 Modified: python/branches/py3k/Lib/test/test_os.py python/branches/py3k/Modules/posixmodule.c Log: Forbid an empty argument list in execv call. Fixes issue 1039. Modified: python/branches/py3k/Lib/test/test_os.py

[Python-3000-checkins] r57742 - python/branches/py3k/Lib/test/test_os.py

2007-08-30 Thread thomas.heller
Author: thomas.heller Date: Thu Aug 30 19:57:21 2007 New Revision: 57742 Modified: python/branches/py3k/Lib/test/test_os.py Log: Calling execvp with an empty argument list raises ValueError, but we want to test for OSError. Modified: python/branches/py3k/Lib/test/test_os.py

[Python-3000-checkins] r57816 - python/branches/py3k/Modules/posixmodule.c

2007-08-30 Thread thomas.heller
Author: thomas.heller Date: Fri Aug 31 08:44:36 2007 New Revision: 57816 Modified: python/branches/py3k/Modules/posixmodule.c Log: Insert "startfile" into posix_methods again; it was accidentially removed in rev 55543. Modified: python/branches/py3k/Modules/pos

[Python-3000-checkins] r57817 - python/branches/py3k/Lib/test/test_startfile.py

2007-08-30 Thread thomas.heller
Author: thomas.heller Date: Fri Aug 31 08:45:04 2007 New Revision: 57817 Modified: python/branches/py3k/Lib/test/test_startfile.py Log: Fix test_startfile and remove duplicated test. Modified: python/branches/py3k/Lib/test/test_startfile.py

[Python-3000-checkins] r57828 - python/branches/py3k/Objects/longobject.c

2007-08-31 Thread thomas.heller
Author: thomas.heller Date: Fri Aug 31 10:56:50 2007 New Revision: 57828 Modified: python/branches/py3k/Objects/longobject.c Log: round(1e20) wrongly returned 0. This fixes test_builtin on windows. (bug was introduced by the merge of the int/long unification branch, rev 53421) Modified

[Python-3000-checkins] r57830 - python/branches/py3k/Lib/ctypes/test/test_memfunctions.py

2007-08-31 Thread thomas.heller
Author: thomas.heller Date: Fri Aug 31 11:54:51 2007 New Revision: 57830 Modified: python/branches/py3k/Lib/ctypes/test/test_memfunctions.py Log: Fix a buggy test. str8 objects contained NUL-terminated strings, bytes objects don't. Modified: python/branches/py3k/Lib/ctypes

[Python-3000-checkins] r57840 - python/branches/py3k/Lib/ctypes/__init__.py

2007-08-31 Thread thomas.heller
Author: thomas.heller Date: Fri Aug 31 15:06:44 2007 New Revision: 57840 Modified: python/branches/py3k/Lib/ctypes/__init__.py Log: Add a workaround for a strange bug on win64, when _ctypes is compiled with the SDK compiler. This should fix the failing Lib\ctypes\test\test_as_parameter.py

[Python-3000-checkins] r57959 - python/branches/py3k/Lib/os.py

2007-09-04 Thread thomas.heller
Author: thomas.heller Date: Tue Sep 4 13:27:47 2007 New Revision: 57959 Modified: python/branches/py3k/Lib/os.py Log: Make the _wrap_close type (which is returned by os.popen) iterable. This should fix the Lib\test\test_uuid.py test on Windows. Modified: python/branches/py3k/Lib/os.py

[Python-3000-checkins] r58241 - in python/branches/py3k: Modules/_bsddb.c PC/_winreg.c

2007-09-24 Thread thomas.heller
Author: thomas.heller Date: Mon Sep 24 16:43:56 2007 New Revision: 58241 Modified: python/branches/py3k/Modules/_bsddb.c python/branches/py3k/PC/_winreg.c Log: Make Modules/_bsddb.c and PC/_winreg.c compile again by renaming PyBuffer into Py_buffer. Modified: python/branches/py3k/Modules

[Python-3000-checkins] r58642 - in python/branches/py3k: Lib/ctypes/test/test_prototypes.py Modules/_ctypes/_ctypes.c

2007-10-24 Thread thomas.heller
Author: thomas.heller Date: Wed Oct 24 21:37:27 2007 New Revision: 58642 Modified: python/branches/py3k/Lib/ctypes/test/test_prototypes.py python/branches/py3k/Modules/_ctypes/_ctypes.c Log: A 'PyObject *' parameter in PyErr_Format must use %S parameter, not %s. Added unittest f

[Python-3000-checkins] r58916 - python/branches/py3k/Modules/posixmodule.c

2007-11-08 Thread thomas.heller
Author: thomas.heller Date: Thu Nov 8 20:33:05 2007 New Revision: 58916 Modified: python/branches/py3k/Modules/posixmodule.c Log: Issue 1406: use widechar api for os.environ, on Windows. Modified: python/branches/py3k/Modules/posixmodule.c

[Python-3000-checkins] r58985 - python/branches/py3k/PCbuild/build_ssl.bat

2007-11-15 Thread thomas.heller
Author: thomas.heller Date: Thu Nov 15 20:11:49 2007 New Revision: 58985 Modified: python/branches/py3k/PCbuild/build_ssl.bat Log: On Win64, linking the python dll currently fails with 'unresolved external symbol PyObject_Unicode'. Building _ssl than hangs the build server becaus

[Python-3000-checkins] r58990 - in python/branches/py3k/Modules/_ctypes: _ctypes.c libffi_msvc/prep_cif.c

2007-11-15 Thread thomas.heller
Author: thomas.heller Date: Thu Nov 15 21:03:00 2007 New Revision: 58990 Modified: python/branches/py3k/Modules/_ctypes/_ctypes.c python/branches/py3k/Modules/_ctypes/libffi_msvc/prep_cif.c Log: Fix two compiler warnings on Win64. Modified: python/branches/py3k/Modules/_ctypes/_ctypes.c

[Python-3000-checkins] r58992 - in python/branches/py3k: Include/object.h Modules/_csv.c Modules/_ctypes/callproc.c Modules/_testcapimodule.c Modules/cjkcodecs/multibytecodec.c Modules/datetimemodule.

2007-11-15 Thread thomas.heller
Author: thomas.heller Date: Thu Nov 15 21:48:54 2007 New Revision: 58992 Modified: python/branches/py3k/Include/object.h python/branches/py3k/Modules/_csv.c python/branches/py3k/Modules/_ctypes/callproc.c python/branches/py3k/Modules/_testcapimodule.c python/branches/py3k/Modules

[Python-3000-checkins] r59016 - python/branches/py3k/Tools/buildbot/clean-amd64.bat python/branches/py3k/Tools/buildbot/clean.bat

2007-11-15 Thread thomas.heller
Author: thomas.heller Date: Fri Nov 16 08:00:30 2007 New Revision: 59016 Modified: python/branches/py3k/Tools/buildbot/clean-amd64.bat python/branches/py3k/Tools/buildbot/clean.bat Log: Use 'del' instead of rmpyc.py to remove the pyc and pyo files. Modified: python/branches/

[Python-3000-checkins] r59472 - python/branches/py3k/Lib/ctypes/test/test_values.py

2007-12-12 Thread thomas.heller
Author: thomas.heller Date: Wed Dec 12 09:32:02 2007 New Revision: 59472 Modified: python/branches/py3k/Lib/ctypes/test/test_values.py Log: This test checks and modifies the value of an integer stored in a dll. Restore the original value after modifying it so that subsequent tests will not

[Python-3000-checkins] r59476 - python/branches/py3k/Lib/ctypes/test/test_values.py

2007-12-12 Thread thomas.heller
Author: thomas.heller Date: Wed Dec 12 21:01:44 2007 New Revision: 59476 Modified: python/branches/py3k/Lib/ctypes/test/test_values.py Log: Add a comment to explain why we have to restore the original value. Modified: python/branches/py3k/Lib/ctypes/test/test_values.py