Neal Norwitz [Thu, 16 Mar 2006 06:50:13 +0000 (06:50 +0000)]
Remove regsub, reconvert, regex, regex_syntax and everything under lib-old.
Neal Norwitz [Thu, 16 Mar 2006 06:40:39 +0000 (06:40 +0000)]
Add a news entry about the sre/re swap.
Neal Norwitz [Thu, 16 Mar 2006 06:33:21 +0000 (06:33 +0000)]
Spel compatibility write.
Neal Norwitz [Thu, 16 Mar 2006 06:31:02 +0000 (06:31 +0000)]
Add back an sre.py that should be backwards compatible except for the warning.
Neal Norwitz [Thu, 16 Mar 2006 06:30:02 +0000 (06:30 +0000)]
Rename sre.py -> re.py
Neal Norwitz [Thu, 16 Mar 2006 06:27:37 +0000 (06:27 +0000)]
Remove re.py, in order to rename sre.py -> re.py (svn seems to require 2 steps).
Neal Norwitz [Thu, 16 Mar 2006 06:21:19 +0000 (06:21 +0000)]
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.
Tim Peters [Thu, 16 Mar 2006 02:31:36 +0000 (02:31 +0000)]
Oops! Use python_d.exe _before_ it's destroyed :-)
Tim Peters [Thu, 16 Mar 2006 01:54:16 +0000 (01:54 +0000)]
Change the Windows buildbot "clean" step to remove
stale .pyc files.
Tim Peters [Thu, 16 Mar 2006 01:14:46 +0000 (01:14 +0000)]
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.
Guido van Rossum [Wed, 15 Mar 2006 23:08:13 +0000 (23:08 +0000)]
Instead of relative imports, use (implicitly) absolute ones.
Walter Dörwald [Wed, 15 Mar 2006 22:17:27 +0000 (22:17 +0000)]
Document the other change from patch #
1359365.
Walter Dörwald [Wed, 15 Mar 2006 22:13:13 +0000 (22:13 +0000)]
SF patch #
1359365: cStringIO.StringIO.isatty() will raise a ValueError
now if close() has been called before (like file and StringIO.StringIO do)
Thomas Heller [Wed, 15 Mar 2006 21:49:52 +0000 (21:49 +0000)]
Backport from upstream version: compatibility with older Python
versions.
Tim Peters [Wed, 15 Mar 2006 18:08:37 +0000 (18:08 +0000)]
Whitespace normalization.
Walter Dörwald [Wed, 15 Mar 2006 13:36:50 +0000 (13:36 +0000)]
Fix typo.
Nick Coghlan [Wed, 15 Mar 2006 13:29:19 +0000 (13:29 +0000)]
Don't try to explicitly set path in runpy package tests (tests were broken on Windows)
Nick Coghlan [Wed, 15 Mar 2006 13:11:54 +0000 (13:11 +0000)]
Don't let cleanup errors mask real errors in the runpy tests
Vinay Sajip [Wed, 15 Mar 2006 12:45:07 +0000 (12:45 +0000)]
Catch situations where currentframe() returns None. See SF patch #
1447410, this is a different implementation.
Nick Coghlan [Wed, 15 Mar 2006 12:40:38 +0000 (12:40 +0000)]
Make test_runpy close all references to test modules before trying to delete the underlying files
Andrew M. Kuchling [Wed, 15 Mar 2006 11:53:09 +0000 (11:53 +0000)]
Add section
Walter Dörwald [Wed, 15 Mar 2006 11:35:15 +0000 (11:35 +0000)]
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.
Nick Coghlan [Wed, 15 Mar 2006 11:00:26 +0000 (11:00 +0000)]
Implement PEP 338 which has been marked as accepted by GvR
Tim Peters [Wed, 15 Mar 2006 09:17:20 +0000 (09:17 +0000)]
Revert rev 43041, which introduced the "z" format qualifier
unique to Python 2.5.
Tim Peters [Wed, 15 Mar 2006 08:41:15 +0000 (08:41 +0000)]
CField_repr(): PyString_FromFormat() understands the
C99 "z" qualifier on all platforms.
Thomas Heller [Wed, 15 Mar 2006 08:34:38 +0000 (08:34 +0000)]
In 'make clean', delete some files that are generated by the _ctypes/libffi
configure step.
Walter Dörwald [Wed, 15 Mar 2006 08:23:53 +0000 (08:23 +0000)]
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.
Neal Norwitz [Wed, 15 Mar 2006 05:43:10 +0000 (05:43 +0000)]
Move test code out of xxmodule and into _testcapimodule.c where it belongs.
Will backport.
Guido van Rossum [Wed, 15 Mar 2006 04:33:54 +0000 (04:33 +0000)]
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.)
Tim Peters [Tue, 14 Mar 2006 22:48:56 +0000 (22:48 +0000)]
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.
Thomas Heller [Tue, 14 Mar 2006 20:52:24 +0000 (20:52 +0000)]
Try to avoid many of the compiler warnings when compiling libffi by
using a proper function prototype.
Thomas Heller [Tue, 14 Mar 2006 20:39:27 +0000 (20:39 +0000)]
Cast an Py_ssize_t to int, to avoid a compiler warning.
Thomas Heller [Tue, 14 Mar 2006 20:22:47 +0000 (20:22 +0000)]
For x86 Release and Debug builds, remove the /Wp64 compiler flag, it
is responsible for most (all?) of the warnings we get.
Thomas Heller [Tue, 14 Mar 2006 19:53:09 +0000 (19:53 +0000)]
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.
Nick Coghlan [Tue, 14 Mar 2006 13:21:14 +0000 (13:21 +0000)]
Teach the compiler module about augmented assignment to tuple subscripts
Neal Norwitz [Tue, 14 Mar 2006 06:02:16 +0000 (06:02 +0000)]
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.
Georg Brandl [Mon, 13 Mar 2006 22:22:11 +0000 (22:22 +0000)]
Fix bug found by Coverity: don't allow NULL argument to PyUnicode_CheckExact
Vinay Sajip [Mon, 13 Mar 2006 22:05:28 +0000 (22:05 +0000)]
Added logThreads and logProcesses to allow conditional omission of logging this information
Tim Peters [Mon, 13 Mar 2006 20:09:32 +0000 (20:09 +0000)]
It's necessary to do a Debug build of the bsddb project too.
Tim Peters [Mon, 13 Mar 2006 19:43:34 +0000 (19:43 +0000)]
Minor changes.
Tim Peters [Mon, 13 Mar 2006 19:35:53 +0000 (19:35 +0000)]
Trimmed trailing whitespace.
Martin v. Löwis [Mon, 13 Mar 2006 15:37:40 +0000 (15:37 +0000)]
Fix build process of bsddb for IA64 and AMD64.
Remove remarks on size_t problems.
Martin v. Löwis [Mon, 13 Mar 2006 14:12:47 +0000 (14:12 +0000)]
Initialize VS environment in external.bat as well.
Martin v. Löwis [Mon, 13 Mar 2006 13:48:05 +0000 (13:48 +0000)]
Update to bsddb 4.4.20.
Nick Coghlan [Mon, 13 Mar 2006 12:31:58 +0000 (12:31 +0000)]
Fix SF bug #
1448804 and ad a test to ensure that all subscript operations continue to be handled correctly
Martin v. Löwis [Mon, 13 Mar 2006 10:59:32 +0000 (10:59 +0000)]
Let the buildbot make a single pass in the test suite only.
Martin v. Löwis [Mon, 13 Mar 2006 10:52:04 +0000 (10:52 +0000)]
Update to bzip2 1.0.3
Make buildbot slaves automatically fetch bzip2 1.0.3.
Thomas Heller [Mon, 13 Mar 2006 10:47:02 +0000 (10:47 +0000)]
Plug some refcount leaks when tests are run repeatedly.
Hye-Shik Chang [Mon, 13 Mar 2006 10:20:08 +0000 (10:20 +0000)]
Bug #
1448490: Fix a bug that ISO-2022 codecs could not handle
SS2 (single-shift 2) escape sequences correctly.
Thomas Heller [Mon, 13 Mar 2006 07:33:38 +0000 (07:33 +0000)]
Remove the slightly broken test_leaks.py.
Change test_functions.py so that it can be run multiple time without
failing: Assign a restype to the function in test_intresult, and move
the definition of class POINT to module level so that no new class is
created each time the test is run.
Trent Mick [Sun, 12 Mar 2006 23:40:58 +0000 (23:40 +0000)]
Adding the /useenv means that one's PATH actually gets through. This is
important for the _ssl.vproj build. It calls build_ssl.py which tries to
find a Perl to use. Without "/useenv" Visual Studio is getting a PATH
from somewhere else (presumably from its internal environment
configuration). The result is that build_ssl.py fallsback to its
"well-known" locations for a Perl install.
Fredrik Lundh [Sun, 12 Mar 2006 21:06:35 +0000 (21:06 +0000)]
merged with cElementTree development trunk (1.0.6 snapshot):
Fixed a number of potential null-pointer-reference-under-pressure
glitches, based on input from the Coverity analysis tool and Simo
Salminen.
Martin v. Löwis [Sun, 12 Mar 2006 09:50:39 +0000 (09:50 +0000)]
Move buildbot scripts to Tools/buildbot.
Tim Peters [Sun, 12 Mar 2006 07:00:54 +0000 (07:00 +0000)]
Added brief comment.
Tim Peters [Sun, 12 Mar 2006 06:47:36 +0000 (06:47 +0000)]
Added brief comments.
Thomas Wouters [Sun, 12 Mar 2006 00:29:36 +0000 (00:29 +0000)]
- Reindent a confusingly indented piece of code (no intended code changes
there)
- Add missing DECREFs of inner-scope 'temp' variable
- Add various missing DECREFs by changing 'return NULL' into 'goto onError'
- Avoid double DECREF when last _PyUnicode_Resize() fails
Coverity found one of the missing DECREFs, but oddly enough not the others.
Thomas Wouters [Sun, 12 Mar 2006 00:13:09 +0000 (00:13 +0000)]
Plug the last 657 referenceleaks in test_bsddb3: a circular reference
between a TestCase instance, the database it opened (or a cursor to a
database) and a bound method as a registered database callback, and a lack
of GC-handling in bsddb caused the TestCases to linger. Fix the test, for
now, as backward compatibility makes adding GC to bsddb annoying.
Thomas Wouters [Sun, 12 Mar 2006 00:01:38 +0000 (00:01 +0000)]
Fix another leak in bsddb, and avoid use of uninitialized value -- funny how
gcc 4.0.x wasn't complaining about *that* one ;)
Martin v. Löwis [Sat, 11 Mar 2006 23:56:39 +0000 (23:56 +0000)]
Add buildbot test script.
Tim Peters [Sat, 11 Mar 2006 23:05:39 +0000 (23:05 +0000)]
Give the _ssl project a harmless command to perform
for its "clean" action. Else the clean step run by
the buildbot reports failure, due to the _ssl project
whining about not being able to spawn an empty string.
Martin v. Löwis [Sat, 11 Mar 2006 12:43:44 +0000 (12:43 +0000)]
Add changelog entry.
Martin v. Löwis [Sat, 11 Mar 2006 12:16:23 +0000 (12:16 +0000)]
Adjust CJK Ideograph range to Unicode 4.1.
Tim Peters [Fri, 10 Mar 2006 23:39:56 +0000 (23:39 +0000)]
Whitespace normalization.
Tim Peters [Fri, 10 Mar 2006 23:37:10 +0000 (23:37 +0000)]
When the new -w option (yay! great idea) reruns a
failed test, first display the name of the test (else
it's not always clear from the output which test is
getting run).
Martin v. Löwis [Fri, 10 Mar 2006 21:26:16 +0000 (21:26 +0000)]
Add regrtest -w option.
Andrew M. Kuchling [Fri, 10 Mar 2006 18:50:08 +0000 (18:50 +0000)]
Unicode database updated; use SVN instead of CVS
Martin v. Löwis [Fri, 10 Mar 2006 16:02:59 +0000 (16:02 +0000)]
Add AMD64 and Itanium configurationgs to ctypes;
disable them in the solution since ctypes doesn't
support these processors on Windows.
Martin v. Löwis [Fri, 10 Mar 2006 15:36:28 +0000 (15:36 +0000)]
Add ctypes.
Martin v. Löwis [Fri, 10 Mar 2006 11:59:47 +0000 (11:59 +0000)]
Update test data to 4.1; disable PRI #29 for now.
Martin v. Löwis [Fri, 10 Mar 2006 11:29:32 +0000 (11:29 +0000)]
Fix refcounting bug.
Martin v. Löwis [Fri, 10 Mar 2006 11:20:04 +0000 (11:20 +0000)]
Avoid forward-declaring the methods array.
Rename unicodedata.db* to unicodedata.ucd*
Guido van Rossum [Fri, 10 Mar 2006 02:28:35 +0000 (02:28 +0000)]
Um, I thought I'd already checked this in.
Anyway, this is the changes to the with-statement
so that __exit__ must return a true value in order
for a pending exception to be ignored.
The PEP (343) is already updated.
Guido van Rossum [Fri, 10 Mar 2006 02:04:28 +0000 (02:04 +0000)]
Fix three nits found by Coverity, adding null checks and comments.
Martin v. Löwis [Thu, 9 Mar 2006 23:38:20 +0000 (23:38 +0000)]
Update Unicode database to Unicode 4.1.
Georg Brandl [Thu, 9 Mar 2006 23:22:43 +0000 (23:22 +0000)]
Move entry to correct section.
Georg Brandl [Thu, 9 Mar 2006 23:22:06 +0000 (23:22 +0000)]
Patch #
1446372: quit and exit can now be called from the interactive
interpreter to exit.
Tim Peters [Thu, 9 Mar 2006 22:31:45 +0000 (22:31 +0000)]
NodeInfo.__gen_init(): Fiddle so that reindent.py is
happy with the output as-is. This incidentally also
gets rid of "an extra" blank line at the end of the output
block that probably wasn't intended (although it doesn't
matter one way or the other).
Thomas Heller [Thu, 9 Mar 2006 19:40:00 +0000 (19:40 +0000)]
Remove the magic to run an uninstalled ctypes version from a CVS sandbox.
Andrew M. Kuchling [Thu, 9 Mar 2006 19:06:05 +0000 (19:06 +0000)]
Write a section
Thomas Heller [Thu, 9 Mar 2006 18:49:35 +0000 (18:49 +0000)]
Deleted the svn_mime-type application/octet-stream from PCBuild/pcbuild.sln.
Tools/scripts/svneol.py: added the .sln and .vcproj extensions because these are text files.
Ran svneol.py over the source tree.
Thomas Heller [Thu, 9 Mar 2006 17:35:20 +0000 (17:35 +0000)]
Added VC project files to build _ctypes.pyd and _ctypes_test.pyd on Windows.
Settings for 64-bit Windows are missing.
I've left in the 64-bit warnings to remind me to port ctypes to Py_ssize_t.
Andrew M. Kuchling [Thu, 9 Mar 2006 13:57:28 +0000 (13:57 +0000)]
Markup fix
Andrew M. Kuchling [Thu, 9 Mar 2006 13:56:25 +0000 (13:56 +0000)]
Write a section
Georg Brandl [Thu, 9 Mar 2006 13:27:14 +0000 (13:27 +0000)]
Bug #
1442874: handle "<!>", the empty SGML comment
Georg Brandl [Thu, 9 Mar 2006 10:16:42 +0000 (10:16 +0000)]
typo
Thomas Heller [Thu, 9 Mar 2006 09:43:53 +0000 (09:43 +0000)]
Disable the testcase that crashes solaris.
Thomas Heller [Thu, 9 Mar 2006 07:21:33 +0000 (07:21 +0000)]
Replace the trivial ctypes test (did only an import) with the real test suite.
Neal Norwitz [Thu, 9 Mar 2006 05:58:11 +0000 (05:58 +0000)]
Try to be a bit more consistent on all platforms:
python .
python < .
both print a message, return non-zero and do not core dump.
Martin v. Löwis [Thu, 9 Mar 2006 02:20:05 +0000 (02:20 +0000)]
Directly read working copy data to obtain list of properties.
Tim Peters [Thu, 9 Mar 2006 01:59:27 +0000 (01:59 +0000)]
Taught svneol to look at .c and .h files too, and
it found a bunch more in need of svn:eol-style.
Tim Peters [Thu, 9 Mar 2006 01:42:24 +0000 (01:42 +0000)]
Simple utility to add svn:eol-style to text files under
SVN control. Like reindent.py, I expect to run this
mindlessly from time to time, checking in whatever it
happens to do ;-)
Martin v. Löwis [Thu, 9 Mar 2006 01:35:32 +0000 (01:35 +0000)]
Set auto-props
Tim Peters [Thu, 9 Mar 2006 01:15:05 +0000 (01:15 +0000)]
Whitespace normalization.
Tim Peters [Thu, 9 Mar 2006 01:07:25 +0000 (01:07 +0000)]
These text files were all missing the svn:eol-style property.
Hye-Shik Chang [Wed, 8 Mar 2006 23:31:17 +0000 (23:31 +0000)]
Remove .cvsignore and set svn:ignore for *.pyc *.pyo.
Georg Brandl [Wed, 8 Mar 2006 20:59:09 +0000 (20:59 +0000)]
Bug #
1445901: os.path.realpath() is available on Win/Mac too.
Thomas Heller [Wed, 8 Mar 2006 20:38:11 +0000 (20:38 +0000)]
Trivial test for ctypes, more to come
Thomas Heller [Wed, 8 Mar 2006 19:56:54 +0000 (19:56 +0000)]
Copy ctypes-0.9.9.4 Python modules from external into the trunk.
Thomas Heller [Wed, 8 Mar 2006 19:51:58 +0000 (19:51 +0000)]
Changes to build the _ctypes extension module.
Based on a patch from Hye-Shik Chang.
Thomas Heller [Wed, 8 Mar 2006 19:35:11 +0000 (19:35 +0000)]
Copy ctypes-0.9.9.4 sources from external into the trunk.