Thomas Heller
127551637b
Rewrite the AllocFunctionCallback function for better error handling.
...
Hope that fixes one or two Coverty warnings.
2006-03-16 19:24:27 +00:00
Tim Peters
d71afb2d10
Set eol-style to native.
2006-03-16 18:55:20 +00:00
Trent Mick
f8cf13eeb7
Update test_winsound to check for a configured sound card (using a VBScript
...
helper written by Roger Upole and Mark Hammond) and adjust the expected
PlaySoundTest case results accordingly.
2006-03-16 17:34:41 +00:00
Neal Norwitz
4fe4ed2525
Make mktuple consistent with mklist to get rid of Coverity warnings. Also use macro version of SetItem since we know everything is setup.
2006-03-16 08:20:19 +00:00
Neal Norwitz
6bed1c1fab
Add some versionadded info to new incremental codec docs and fix doco nits.
2006-03-16 07:49:19 +00:00
Thomas Heller
922ff4a321
Don't delete non-autogenerated source files when cleaning up.
2006-03-16 07:33:49 +00:00
Neal Norwitz
c4bd28c303
Remove some more references to regex that I missed.
2006-03-16 07:05:59 +00:00
Neal Norwitz
10be10cbe7
Remove regsub, reconvert, regex, regex_syntax and everything under lib-old.
2006-03-16 06:50:13 +00:00
Neal Norwitz
efbeaef1c1
Add a news entry about the sre/re swap.
2006-03-16 06:40:39 +00:00
Neal Norwitz
f0e2c07a74
Spel compatibility write.
2006-03-16 06:33:21 +00:00
Neal Norwitz
f521de6efc
Add back an sre.py that should be backwards compatible except for the warning.
2006-03-16 06:31:02 +00:00
Neal Norwitz
94a9c09e10
Rename sre.py -> re.py
2006-03-16 06:30:02 +00:00
Neal Norwitz
559e88be28
Remove re.py, in order to rename sre.py -> re.py (svn seems to require 2 steps).
2006-03-16 06:27:37 +00:00
Neal Norwitz
04d1513724
The pre module has been gone for a while. Need to go through and find other modules that no longer exists, since errors are silently ignored.
2006-03-16 06:21:19 +00:00
Tim Peters
1a3b248aff
Oops! Use python_d.exe _before_ it's destroyed :-)
2006-03-16 02:31:36 +00:00
Tim Peters
378832c914
Change the Windows buildbot "clean" step to remove
...
stale .pyc files.
2006-03-16 01:54:16 +00:00
Tim Peters
cf79aace07
Merge the tim-obmalloc branch to the trunk.
...
This is a heavily altered derivative of SF patch 1123430, Evan
Jones's heroic effort to make obmalloc return unused arenas to
the system free(), with some heuristic strategies to make it
more likley that arenas eventually _can_ be freed.
2006-03-16 01:14:46 +00:00
Guido van Rossum
f8480a7856
Instead of relative imports, use (implicitly) absolute ones.
2006-03-15 23:08:13 +00:00
Walter Dörwald
067db48997
Document the other change from patch #1359365 .
2006-03-15 22:17:27 +00:00
Walter Dörwald
197e8321c6
SF patch #1359365 : cStringIO.StringIO.isatty() will raise a ValueError
...
now if close() has been called before (like file and StringIO.StringIO do)
2006-03-15 22:13:13 +00:00
Thomas Heller
9998f78d6d
Backport from upstream version: compatibility with older Python
...
versions.
2006-03-15 21:49:52 +00:00
Tim Peters
f99b8162a2
Whitespace normalization.
2006-03-15 18:08:37 +00:00
Walter Dörwald
13ed60b504
Fix typo.
2006-03-15 13:36:50 +00:00
Nick Coghlan
598f8a0031
Don't try to explicitly set path in runpy package tests (tests were broken on Windows)
2006-03-15 13:29:19 +00:00
Nick Coghlan
586b83c4bb
Don't let cleanup errors mask real errors in the runpy tests
2006-03-15 13:11:54 +00:00
Vinay Sajip
a2173a189a
Catch situations where currentframe() returns None. See SF patch #1447410 , this is a different implementation.
2006-03-15 12:45:07 +00:00
Nick Coghlan
5424ad8a2a
Make test_runpy close all references to test modules before trying to delete the underlying files
2006-03-15 12:40:38 +00:00
Andrew M. Kuchling
21d3a7cd2e
Add section
2006-03-15 11:53:09 +00:00
Walter Dörwald
abb02e5994
Patch #1436130 : codecs.lookup() now returns a CodecInfo object (a subclass
...
of tuple) that provides incremental decoders and encoders (a way to use
stateful codecs without the stream API). Functions
codecs.getincrementaldecoder() and codecs.getincrementalencoder() have
been added.
2006-03-15 11:35:15 +00:00
Nick Coghlan
e2ebb2d7f7
Implement PEP 338 which has been marked as accepted by GvR
2006-03-15 11:00:26 +00:00
Tim Peters
8ea61f1a83
Revert rev 43041, which introduced the "z" format qualifier
...
unique to Python 2.5.
2006-03-15 09:17:20 +00:00
Tim Peters
ab8aeba517
CField_repr(): PyString_FromFormat() understands the
...
C99 "z" qualifier on all platforms.
2006-03-15 08:41:15 +00:00
Thomas Heller
d77eb1ff43
In 'make clean', delete some files that are generated by the _ctypes/libffi
...
configure step.
2006-03-15 08:34:38 +00:00
Walter Dörwald
0af5d93d8a
SF patch #1359365 : file and cStringIO raise a ValueError when next() is called
...
after calling close(). Change StringIO, so that it behaves the same way.
2006-03-15 08:23:53 +00:00
Neal Norwitz
4a53dadc3e
Move test code out of xxmodule and into _testcapimodule.c where it belongs.
...
Will backport.
2006-03-15 05:43:10 +00:00
Guido van Rossum
87de069e4e
Use relative imports in a few places where I noticed the need.
...
(Ideally, all packages in Python 2.5 will use the relative import
syntax for all their relative import needs.)
2006-03-15 04:33:54 +00:00
Tim Peters
903d846a69
Renamed test_hashlib_speed.py to time_hashlib.py.
...
Since it's never intended that this script be run by
regrtest.py, it shouldn't have been named with a "test_"
prefix to begin with. A consequence is that we shouldn't
see useless:
test_hashlib_speed skipped -- not a unit test (stand alone benchmark)
lines in regrtest output anymore.
2006-03-14 22:48:56 +00:00
Thomas Heller
915d7773e2
Try to avoid many of the compiler warnings when compiling libffi by
...
using a proper function prototype.
2006-03-14 20:52:24 +00:00
Thomas Heller
ab906a562b
Cast an Py_ssize_t to int, to avoid a compiler warning.
2006-03-14 20:39:27 +00:00
Thomas Heller
6ea6e204a9
For x86 Release and Debug builds, remove the /Wp64 compiler flag, it
...
is responsible for most (all?) of the warnings we get.
2006-03-14 20:22:47 +00:00
Thomas Heller
fe8f862cda
Integrate patch from Neal Norwitz. He writes:
...
"""
The attached patch fixes all the ctypes tests so they pass on amd64.
It also fixes several warnings. I'm not sure what else to do with the
patch. Let me know how you want to handle these in the future.
I'm not sure the patch is 100% correct. You will need to decide what
can be 64 bits and what can't. I believe
sq_{item,slice,ass_item,ass_slice} all need to use Py_ssize_t. The
types in ctypes.h may not require all the changes I made. I don't
know how you want to support older version, so I unconditionally
changed the types to Py_ssize_t.
"""
The patch is also in the ctypes SVN repository now, after small
changes to add compatibility with older Python versions.
2006-03-14 19:53:09 +00:00
Nick Coghlan
cb35b95f86
Teach the compiler module about augmented assignment to tuple subscripts
2006-03-14 13:21:14 +00:00
Neal Norwitz
7580146b5c
Fix and test (manually w/xx module) passing NULLs to PyObject_Str() and
...
PyObject_Unicode(). This problem was originally reported from Coverity
and addresses mail on python-dev "checkin r43015".
This inlines the conversion of the string to unicode and cleans
up/simplifies some code at the end of the PyObject_Unicode().
We really need a complete C API test module for all public APIs
and passing good and bad parameter values.
Will backport.
2006-03-14 06:02:16 +00:00
Georg Brandl
3daf75878d
Fix bug found by Coverity: don't allow NULL argument to PyUnicode_CheckExact
2006-03-13 22:22:11 +00:00
Vinay Sajip
d364a07517
Added logThreads and logProcesses to allow conditional omission of logging this information
2006-03-13 22:05:28 +00:00
Tim Peters
6da8cebe3c
It's necessary to do a Debug build of the bsddb project too.
2006-03-13 20:09:32 +00:00
Tim Peters
7ccbb0770c
Minor changes.
2006-03-13 19:43:34 +00:00
Tim Peters
32d996f8b8
Trimmed trailing whitespace.
2006-03-13 19:35:53 +00:00
Martin v. Löwis
b091241d9b
Fix build process of bsddb for IA64 and AMD64.
...
Remove remarks on size_t problems.
2006-03-13 15:37:40 +00:00
Martin v. Löwis
fcddd2930c
Initialize VS environment in external.bat as well.
2006-03-13 14:12:47 +00:00