summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix a bug in test.test_support.open_urlresource().Collin Winter2007-05-091-1/+1
| | | | | | | | | If the call to requires() doesn't precede the filesystem check, we get the following situation: 1. ./python Lib/test/regrtest.py test_foo # test needs urlfetch, not enabled, so skipped 2. ./python Lib/test/regrtest.py -u urlfetch test_foo # test runs 3. ./python Lib/test/regrtest.py test_foo # test runs (!) By moving the call to requires() *before* the filesystem check, the fact that fetched files are cached on the local disk becomes an implementation detail, rather than a semantics-changing point of note.
* As per Armin Rigo's suggestion, remove special handing from intobject.c to ↵Kristján Valur Jónsson2007-05-072-8/+15
| | | | deal with the peculiarities of classobject's implementation of the number protocol. The nb_long method of classobject now falls back to nb_int if there is no __long__ attribute present.
* Verify changes to the trunk go to the normal checkins listNeal Norwitz2007-05-071-1/+0
|
* Updates of recent changes to logging.Vinay Sajip2007-05-061-5/+16
|
* Bug #1713535: typo in logging example.Georg Brandl2007-05-051-1/+1
|
* Deprecate BaseException.message as per PEP 352.Brett Cannon2007-05-057-69/+148
|
* Oops, these tests do not run on Windows CE.Thomas Heller2007-05-041-15/+16
|
* Do not truncate 64-bit pointers to 32-bit integers.Thomas Heller2007-05-043-13/+46
| | | | Fixes SF #1703286, will backport to release25-maint.
* Minor fix of PCBuild8/_ctypes vcproj, moving include dir into the .vsprops file.Kristján Valur Jónsson2007-05-042-8/+12
|
* Update the pcbuild8 solution. Straightened out the _ctypes project by using ↵Kristján Valur Jónsson2007-05-044-68/+342
| | | | a .vsproj file and a masm64.rules file to avoid redundancy
* On 64-bit Windows, ffi_arg must be 8 bytes long. This fixes theThomas Heller2007-05-041-0/+4
| | | | | remaining crashes in the ctypes tests, when functions return float or double types.
* Fix some ctypes test crashes, when running with a debug PythonThomas Heller2007-05-043-4/+11
| | | | | version on win64 by using proper argtypes and restype function attributes.
* Revert compiler comment to AMD64 for x64/AMD64 builds.Kristján Valur Jónsson2007-05-041-1/+1
|
* Fix problems in x64 build that were discovered by the testsuite:Kristján Valur Jónsson2007-05-037-73/+36
| | | | | | | | | | | | - Reenable modules on x64 that had been disabled aeons ago for Itanium. - Cleared up confusion about compilers for 64 bit windows. There is only Itanium and x64. Added macros MS_WINI64 and MS_WINX64 for those rare cases where it matters, such as the disabling of modules above. - Set target platform (_WIN32_WINNT and WINVER) to 0x0501 (XP) for x64, and 0x0400 (NT 4.0) otherwise, which are the targeted minimum platforms. - Fixed thread_nt.h. The emulated InterlockedCompareExchange function didn´t work on x64, probaby due to the lack of a "volatile" specifier. Anyway, win95 is no longer a target platform. - Itertools module used wrong constant to check for overflow in count() - PyInt_AsSsize_t couldn't deal with attribute error when accessing the __long__ member. - PyLong_FromSsize_t() incorrectly specified that the operand were unsigned. With these changes, the x64 passes the testsuite, for those modules present.
* Fix those parts in the testsuite that assumed that sys.maxint would cause ↵Kristján Valur Jónsson2007-05-035-12/+21
| | | | overflow on x64. Now the testsuite is well behaved on that platform.
* Fix pcbuild8 after recent overhaul: Added the version resource to ↵Kristján Valur Jónsson2007-05-036-5/+34
| | | | | | python26.dll. Adjust stacksize to 2Mb and made large address aware for 32 bits, and set stacksize to 3Mb for 64 bits. Todo: Set .dll optimized load addresses, and side-by-side packaging of the python26.dll.
* Clarify the behaviour of PyUnicode_DecodeUTF16(): A BOM is only skippedWalter Dörwald2007-05-031-4/+4
| | | | in native order mode, and only if it's the first two bytes.
* Don't truncate pointers to integers (on win64 platform).Thomas Heller2007-05-031-2/+21
|
* Fix building _ctypes.pyd for x64 / Windows.Thomas Heller2007-05-031-0/+139
|
* Remove dead code. This code couldn't be reached because earlier inNeal Norwitz2007-05-031-12/+1
| | | | the function there is another check for z != Py_None.
* Handle a couple of uncaught errors. This should be backportedNeal Norwitz2007-05-031-0/+4
|
* Actually raise an exception before calling ast_error_finish.Georg Brandl2007-05-021-0/+2
| | | | Triggers an assertion otherwise.
* Fix for #1303614 and #1174712:Armin Rigo2007-05-025-45/+166
| | | | | | | - __dict__ descriptor abuse for subclasses of built-in types - subclassing from both ModuleType and another built-in types Thanks zseil for the patch.
* Stop using PyMem_FREE while the GIL is not held. For details see:Neal Norwitz2007-05-022-1/+3
| | | | http://mail.python.org/pipermail/python-dev/2007-May/072896.html
* Added documentation for new optional credentials argument to ↵Vinay Sajip2007-05-011-2/+5
| | | | SMTPHandler.__init__().
* Added new optional credentials argument to SMTPHandler.__init__, and ↵Vinay Sajip2007-05-011-7/+12
| | | | smtp.login() is now called in SMTPHandler.emit() if credentials are specified.
* Patch #1710352: add missing public functions to locale.__all__.Georg Brandl2007-05-011-3/+5
|
* Bug #1710295: exceptions are now new-style classes.Georg Brandl2007-05-011-1/+1
|
* When accessing the .value attribute of a c_wchar_p instance, and theThomas Heller2007-04-301-3/+11
| | | | | | | | | instance does not point to a valid wchar_t zero-terminated string, raise a ValueError. c_char_p does this already. The ValueError message now contains the correct pointer address. Will backport to release25-maint.
* Make sure to call PyErr_NoMemory() in several places whereThomas Heller2007-04-303-3/+15
| | | | | | PyMem_Malloc() could potentially fail. Will backport to the release25-maint branch.
* Complete revamp of PCBuild8 directory. Use subdirectories for each project ↵Kristján Valur Jónsson2007-04-3063-13677/+13363
| | | | under the main pcbuild solution. Now make extensive use of property sheets to simplify project configuration. x64 build fully supported, and the process for building PGO version (Profiler Guided Optimization) simplified. All projects are now present, except _ssl, which needs to be reimplemented. Also, some of the projects that require external libraries need extra work to fully compile on x64.
* There really are some tests that are problematic.Neal Norwitz2007-04-291-1/+1
|
* Version fix (bug #1708710)Georg Brandl2007-04-271-4/+4
|
* This gets the test working on Solaris. It seems a little hokey to me,Neal Norwitz2007-04-271-0/+19
| | | | but the test passed on Linux and Solaris, hopefully other platforms too.
* Accomodate 64 bit time_t in the _bsddb module.Kristján Valur Jónsson2007-04-261-1/+21
|
* Minor wording change on slicing aide-memoire.Steve Holden2007-04-261-1/+1
|
* The locale "En" appears not to be valid on windows underi VisualStudio.2005. ↵Kristján Valur Jónsson2007-04-261-1/+1
| | | | Added "English" to the test_locale.py to make the testsuite pass for that build
* Export function sanitize_the_mode from fileobject.c as ↵Kristján Valur Jónsson2007-04-263-14/+26
| | | | _PyFile_SanitizeMode(). Use this function in posixmodule.c when implementing fdopen(). This fixes test_subprocess.py for a VisualStudio 2005 compile.
* fix some markup errorsFred Drake2007-04-264-5/+5
|
* Fix an issue related to the unittest conversion.Collin Winter2007-04-251-0/+6
|
* Convert test_ossaudiodev to use unittest.Collin Winter2007-04-251-120/+125
|
* Import and raise statement cleanup.Collin Winter2007-04-251-17/+9
|
* Set missing svn:eol-style property on text files.Tim Peters2007-04-250-0/+0
|
* Whitespace normalization.Tim Peters2007-04-251-1/+1
|
* Change test_support.have_unicode to use True/False instead of 1/0.Collin Winter2007-04-251-2/+2
|
* Remove functionality from test_datetime.test_main() that does reference ↵Collin Winter2007-04-251-20/+1
| | | | count checking; 'regrtest.py -R' is the way to do this kind of testing.
* Standardize on test.test_support.run_unittest() (as opposed to a mix of ↵Collin Winter2007-04-2529-181/+88
| | | | run_unittest() and run_suite()). Also, add functionality to run_unittest() that admits usage of unittest.TestLoader.loadTestsFromModule().
* Whitespace normalization. Ugh, we really need to do this more often.Neal Norwitz2007-04-2538-387/+386
| | | | You might want to review this change as it's my first time. Be gentle. :-)
* Markup fix.Georg Brandl2007-04-251-1/+1
|
* Patch #1698768: updated the "using Python on the Mac" intro.Georg Brandl2007-04-252-173/+135
|