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.
Georg Brandl [Wed, 8 Mar 2006 18:09:27 +0000 (18:09 +0000)]
Patch #
1434038: property() now uses the getter's docstring if there is
no "doc" argument given. This makes it possible to legitimately use
property() as a decorator to produce a read-only property.
Georg Brandl [Wed, 8 Mar 2006 12:24:33 +0000 (12:24 +0000)]
typo
Georg Brandl [Wed, 8 Mar 2006 09:34:53 +0000 (09:34 +0000)]
Fix pydoc.synopsis() so that it doesn't error out with an unreadable
module.
Neal Norwitz [Wed, 8 Mar 2006 06:36:45 +0000 (06:36 +0000)]
Fix logic error and DECREF reported by Coverity.
Neal Norwitz [Wed, 8 Mar 2006 05:29:18 +0000 (05:29 +0000)]
Move version added tag from PyObject_Length/Size to PyNumber_Index.
Andrew M. Kuchling [Wed, 8 Mar 2006 01:50:20 +0000 (01:50 +0000)]
Add section
Thomas Wouters [Wed, 8 Mar 2006 01:47:19 +0000 (01:47 +0000)]
Clean up _bsddb.c: add a couple dozen missing Py_DECREF()'s, a handful of
missing PyObject_Del()'s, simplify some code by using Py_BuildValue()
instead of creating a tuple with items manually, stop clobbering builtin
exceptions in a few places, and guard against NULL-returning functions some
more.
This fixes 117 of the 780 (!?!#%@#$!!) reference leaks in test_bsddb3. I
ain't not done yet, although this review of 5kloc was just the easy part.
Martin v. Löwis [Tue, 7 Mar 2006 23:59:33 +0000 (23:59 +0000)]
Reformulate 42903 using an if statement.
Tim Peters [Tue, 7 Mar 2006 23:53:32 +0000 (23:53 +0000)]
_hotshot hotshot_profiler(): If write_header() returned
an error code, this let `self` leak. This is a disaster
on Windows, since `self` already points to a newly-opened
file object, and it was impossible for Python code to
close the thing since the only reference to it was in a
blob of leaked C memory.
test_hotshot test_bad_sys_path(): This new test provoked
the C bug above. This test passed, but left an open
"@test" file behind, which caused a massive cascade of
bogus test failures in later, unrelated tests on Windows.
Changed the test code to remove the @test file it leaves
behind, which relies on the change above to close that
file first.
Georg Brandl [Tue, 7 Mar 2006 20:56:02 +0000 (20:56 +0000)]
Fix bug introduced in rev. 42884.
Andrew M. Kuchling [Tue, 7 Mar 2006 20:48:55 +0000 (20:48 +0000)]
Some edits; add empty sections
Guido van Rossum [Tue, 7 Mar 2006 18:54:08 +0000 (18:54 +0000)]
Add note about PEP 357.
Guido van Rossum [Tue, 7 Mar 2006 18:50:55 +0000 (18:50 +0000)]
Checking in the code for PEP 357.
This was mostly written by Travis Oliphant.
I've inspected it all; Neal Norwitz and MvL have also looked at it
(in an earlier incarnation).
Guido van Rossum [Tue, 7 Mar 2006 18:31:44 +0000 (18:31 +0000)]
Address an coverity issue. Coverity was complaining about a line that's fine,
but an earlier line checked for v != NULL unnecessarily.
Andrew M. Kuchling [Tue, 7 Mar 2006 16:16:07 +0000 (16:16 +0000)]
Typo fix
Hye-Shik Chang [Tue, 7 Mar 2006 15:39:21 +0000 (15:39 +0000)]
SF #
1444030: Fix several potential defects found by Coverity.
(reviewed by Neal Norwitz)
Georg Brandl [Tue, 7 Mar 2006 14:57:48 +0000 (14:57 +0000)]
Add additional missing checks for return vals of PyTuple_New().
Normalize coding style.
Thomas Wouters [Tue, 7 Mar 2006 14:14:51 +0000 (14:14 +0000)]
Fix gcc 4.0.x warning about use of uninitialized value.
Thomas Wouters [Tue, 7 Mar 2006 14:13:17 +0000 (14:13 +0000)]
Coverity found bug: test result of PyTuple_New() against NULL before use.
Will backport.
Thomas Wouters [Tue, 7 Mar 2006 14:04:31 +0000 (14:04 +0000)]
Coverity found refleak: need to free 'v' after calling Tkinter_Error().
Will backport to release24.
Georg Brandl [Tue, 7 Mar 2006 13:47:22 +0000 (13:47 +0000)]
Bug #
1440831: fix csv UnicodeWriter example
Thomas Wouters [Tue, 7 Mar 2006 13:38:14 +0000 (13:38 +0000)]
Coverity-found bug: don't use temp->next *before* checking it for NULL. Also
return rather than use it again.
Georg Brandl [Tue, 7 Mar 2006 12:48:03 +0000 (12:48 +0000)]
Bug #
1432525: os.listdir now releases the GIL while calling
readdir().
Martin v. Löwis [Tue, 7 Mar 2006 12:08:51 +0000 (12:08 +0000)]
Change int to Py_ssize_t in several places.
Add (int) casts to silence compiler warnings.
Raise Python exceptions for overflows.