]> granicus.if.org Git - python/log
python
18 years ago_Py_PrintReferenceAddresses,_Py_PrintReferences:
Tim Peters [Tue, 11 Apr 2006 19:12:33 +0000 (19:12 +0000)]
_Py_PrintReferenceAddresses,_Py_PrintReferences:
interpolate PY_FORMAT_SIZE_T for refcount display
instead of casting refcounts to long.

I understand that gcc on some boxes delivers
nuisance warnings about this, but if any new ones
appear because of this they'll get fixed by magic
when the others get fixed.

18 years agoComplete the ElementTree section
Andrew M. Kuchling [Tue, 11 Apr 2006 13:14:56 +0000 (13:14 +0000)]
Complete the ElementTree section

18 years agoSome more changes to make code compile under a C++ compiler.
Anthony Baxter [Tue, 11 Apr 2006 12:14:09 +0000 (12:14 +0000)]
Some more changes to make code compile under a C++ compiler.

18 years agomore low-hanging fruit to make code compile under a C++ compiler. Not
Anthony Baxter [Tue, 11 Apr 2006 12:01:56 +0000 (12:01 +0000)]
more low-hanging fruit to make code compile under a C++ compiler. Not
entirely happy with the two new VISIT macros in compile.c, but I
couldn't see a better approach.

18 years agoPatch #1464444: Add --with-system-ffi.
Martin v. Löwis [Tue, 11 Apr 2006 11:12:43 +0000 (11:12 +0000)]
Patch #1464444: Add --with-system-ffi.

18 years agoConvert 0 to their respective enum types. Convert
Martin v. Löwis [Tue, 11 Apr 2006 09:17:27 +0000 (09:17 +0000)]
Convert 0 to their respective enum types. Convert
void* to their respective _ty types. Fix signature of
ast_for_exprlist.

18 years agoCorrect casts to char*.
Martin v. Löwis [Tue, 11 Apr 2006 09:08:02 +0000 (09:08 +0000)]
Correct casts to char*.

18 years agoRemove "static forward" declaration. Move constructors
Martin v. Löwis [Tue, 11 Apr 2006 09:04:12 +0000 (09:04 +0000)]
Remove "static forward" declaration. Move constructors
after the type objects.

18 years agoRegenerate.
Martin v. Löwis [Tue, 11 Apr 2006 09:03:33 +0000 (09:03 +0000)]
Regenerate.

18 years agoAs discussed on python-dev, really fix the PyMem_*/PyObject_* memory API
Neal Norwitz [Tue, 11 Apr 2006 08:19:15 +0000 (08:19 +0000)]
As discussed on python-dev, really fix the PyMem_*/PyObject_* memory API
mismatches.  At least I hope this fixes them all.

This reverts part of my change from yesterday that converted everything
in Parser/*.c to use PyObject_* API.  The encoding doesn't really need
to use PyMem_*, however, it uses new_string() which must return PyMem_*
for handling the result of PyOS_Readline() which returns PyMem_* memory.

If there were 2 versions of new_string() one that returned PyMem_*
for tokens and one that return PyObject_* for encodings that could
also fix this problem.  I'm not sure which version would be clearer.
This seems to fix both Guido's and Phillip's problems, so it's good enough
for now.  After this change, it would be good to review Parser/*.c
for consistent use of the 2 memory APIs.

18 years agoMake _kind types global for C++ compilation.
Martin v. Löwis [Tue, 11 Apr 2006 08:06:50 +0000 (08:06 +0000)]
Make _kind types global for C++ compilation.
Explicitly cast void* to int to cmpop_ty.

18 years agoGet compiling again
Neal Norwitz [Tue, 11 Apr 2006 07:58:54 +0000 (07:58 +0000)]
Get compiling again

18 years agolow-hanging fruit in Python/ - g++ still hates all the enum_kind declarations
Anthony Baxter [Tue, 11 Apr 2006 07:43:46 +0000 (07:43 +0000)]
low-hanging fruit in Python/ - g++ still hates all the enum_kind declarations
in Python/Python-ast.c. Not sure what to do about those.

18 years agoMore low-hanging fruit. Still need to re-arrange some code (or find a better
Anthony Baxter [Tue, 11 Apr 2006 07:42:36 +0000 (07:42 +0000)]
More low-hanging fruit. Still need to re-arrange some code (or find a better
solution) in the same way as listobject.c got changed. Hoping for a better
solution.

18 years agoC++ already defines a perfectly good 'bool'. Use that.
Anthony Baxter [Tue, 11 Apr 2006 07:23:05 +0000 (07:23 +0000)]
C++ already defines a perfectly good 'bool'. Use that.

18 years agoAdjust whitespace.
Neal Norwitz [Tue, 11 Apr 2006 07:21:20 +0000 (07:21 +0000)]
Adjust whitespace.

18 years agoAdd whitespace after comma
Neal Norwitz [Tue, 11 Apr 2006 07:17:08 +0000 (07:17 +0000)]
Add whitespace after comma

18 years agoCorrect test whether wchar_t is unsigned. Fixed crash
Martin v. Löwis [Tue, 11 Apr 2006 07:15:30 +0000 (07:15 +0000)]
Correct test whether wchar_t is unsigned. Fixed crash
in #1454485.

18 years agoClear errno before calling opendir() and readdir().
Georg Brandl [Tue, 11 Apr 2006 07:04:06 +0000 (07:04 +0000)]
Clear errno before calling opendir() and readdir().

18 years agoMore C++-compliance. Note especially listobject.c - to get C++ to accept the
Anthony Baxter [Tue, 11 Apr 2006 06:54:30 +0000 (06:54 +0000)]
More C++-compliance. Note especially listobject.c - to get C++ to accept the
PyTypeObject structures, I had to make prototypes for the functions, and
move the structure definition ahead of the functions. I'd dearly like a better
way to do this - to change this would make for a massive set of changes to
the codebase.

There's still some warnings - this is purely to get rid of errors first.

18 years agoBug #1467952: os.listdir() now correctly raises an error if readdir()
Georg Brandl [Tue, 11 Apr 2006 06:47:43 +0000 (06:47 +0000)]
Bug #1467952: os.listdir() now correctly raises an error if readdir()
fails with an error condition.

18 years agoTypo fix.
Georg Brandl [Tue, 11 Apr 2006 06:27:12 +0000 (06:27 +0000)]
Typo fix.

18 years agoFix the code in Parser/ to also compile with C++. This was mostly casts for
Anthony Baxter [Tue, 11 Apr 2006 05:39:14 +0000 (05:39 +0000)]
Fix the code in Parser/ to also compile with C++. This was mostly casts for
malloc/realloc type functions, as well as renaming one variable called 'new'
in tokensizer.c. Still lots more to be done, going to be checking in one
chunk at a time or the patch will be massively huge. Still compiles ok with
gcc.

18 years agoTry to repair what may be the last new test failure on the
Tim Peters [Tue, 11 Apr 2006 02:59:48 +0000 (02:59 +0000)]
Try to repair what may be the last new test failure on the
"x86 OpenBSD trunk" buildbot due to changing Python so that
Python-exposed addresses are always non-negative.

test_int_pointer_arg():  This line failed now whenever the
box happened to assign an address to `ci` "with the sign
bit set":

    self.failUnlessEqual(addressof(ci), func(byref(ci)))

The problem is that the ctypes addressof() inherited "all
addresses are non-negative now" from changes to
PyLong_FromVoidPtr(), but byref() did not inherit that
change and can still return a negative int.

I don't know whether, or what, the ctypes implementation wants
to do about that (possibly nothing), but in the meantime
the test fails frequently.

So, introduced a Python positive_address() function in
the test module, that takes a purported machine address and,
if negative, converts it to a non-negative value "with the
same bits".  This should leave the test passing under all
versions of Python.

Belated thanks to Armin Rigo for teaching me the sick trick ;-)
for determining the # of bits in a machine pointer via abuse
of the struct module.

18 years agosubclasspropagation(): Squash two more bogus hash(x) == id(x)
Tim Peters [Tue, 11 Apr 2006 01:59:34 +0000 (01:59 +0000)]
subclasspropagation():  Squash two more bogus hash(x) == id(x)
tests.  Alas, because only the "x86 OpenBSD trunk" buildbot fails
these tests, and test_descr stops after the first failure, there's
no sane way for me to fix these short of fixing one and then
waiting for the buildbot to reveal the next one.

18 years agoTypo repair.
Tim Peters [Tue, 11 Apr 2006 01:47:17 +0000 (01:47 +0000)]
Typo repair.

18 years agoWhitespace normalization.
Tim Peters [Tue, 11 Apr 2006 01:44:26 +0000 (01:44 +0000)]
Whitespace normalization.

18 years agoMore words on patch #837242, since 4 or 5 tests started
Tim Peters [Tue, 11 Apr 2006 01:44:07 +0000 (01:44 +0000)]
More words on patch #837242, since 4 or 5 tests started
failing on one of the 32-bit buildbot boxes because of it,
due to tempting but always-wrong Python code.  Users
probably have code like this too (I know I did ...).

18 years agoAdd notes to NEWS for other work today.
Phillip J. Eby [Tue, 11 Apr 2006 01:21:31 +0000 (01:21 +0000)]
Add notes to NEWS for other work today.

18 years agospecials(): squash another incorrect hash(x) == id(x)
Tim Peters [Tue, 11 Apr 2006 01:21:00 +0000 (01:21 +0000)]
specials():  squash another incorrect hash(x) == id(x)
test.  Add some lines that at least invoke the default
__hash__, although there's nothing to check there beyond
that they don't blow up.

18 years agoForgot to mark up a PEP reference
Phillip J. Eby [Tue, 11 Apr 2006 01:15:28 +0000 (01:15 +0000)]
Forgot to mark up a PEP reference

18 years agoUpdated the warnings, linecache, inspect, traceback, site, and doctest modules
Phillip J. Eby [Tue, 11 Apr 2006 01:07:43 +0000 (01:07 +0000)]
Updated the warnings, linecache, inspect, traceback, site, and doctest modules
to work correctly with modules imported from zipfiles or via other PEP 302
__loader__ objects.  Tests and doc updates are included.

18 years agoHuh. This belonged with the last checkin -- no idea why svn
Tim Peters [Tue, 11 Apr 2006 00:44:27 +0000 (00:44 +0000)]
Huh.  This belonged with the last checkin -- no idea why svn
didn't commit it.

18 years agoTry to repair more new buildbot failures in "x86 OpenBSD trunk", due
Tim Peters [Tue, 11 Apr 2006 00:43:27 +0000 (00:43 +0000)]
Try to repair more new buildbot failures in "x86 OpenBSD trunk", due
to that id() can now return a Python long on a 32-bit box that allocates
addresses "with the sign bit set".

test_set.py test_subclass_with_custom_hash():  it's never been portably
legal for a __hash__() method to return id(self), but on 32-bit boxes
that never caused a problem before it became possible for id() to
return a Python long.  Changed __hash__ here to return a Python int
regardless of platform.

test_descr.py specials():
    vereq(hash(c1), id(c1))
has never been a correct test -- just removed it (hash() is always
a Python int; id() may be a Python long).

18 years agoWrite part of ElementTree section
Andrew M. Kuchling [Mon, 10 Apr 2006 22:28:11 +0000 (22:28 +0000)]
Write part of ElementTree section

18 years agoGive SQLite examples
Andrew M. Kuchling [Mon, 10 Apr 2006 21:40:16 +0000 (21:40 +0000)]
Give SQLite examples

18 years agoFix one of the tests that fails on the "x86 OpenBSD trunk" buildbot,
Tim Peters [Mon, 10 Apr 2006 21:38:11 +0000 (21:38 +0000)]
Fix one of the tests that fails on the "x86 OpenBSD trunk" buildbot,
due to that id() may return a long on a 32-bit box now.  On a box that
assigns addresses "with the sign bit set", id() always returns a long now.

18 years agoFix one of the tests that fails on the "x86 OpenBSD trunk" buildbot, due
Tim Peters [Mon, 10 Apr 2006 21:34:00 +0000 (21:34 +0000)]
Fix one of the tests that fails on the "x86 OpenBSD trunk" buildbot, due
to that id() may return a long on a 32-bit box now.  On a box that assigns
addresses "with the sign bit set", id() always returns a long now.

18 years agoWhitespace normalization.
Tim Peters [Mon, 10 Apr 2006 20:28:40 +0000 (20:28 +0000)]
Whitespace normalization.

18 years agoPatch #837242: id() for large ptr should return a long.
Martin v. Löwis [Mon, 10 Apr 2006 20:28:17 +0000 (20:28 +0000)]
Patch #837242: id() for large ptr should return a long.

18 years agoDecimalContextTestCase: this permanently changed the
Tim Peters [Mon, 10 Apr 2006 20:25:47 +0000 (20:25 +0000)]
DecimalContextTestCase:  this permanently changed the
default decimal context, causing test_tokenize to fail
if it ran after test_contextlib.  Changed to restore
the decimal context in effect at the test's start.

18 years agotest_contextlib wasn't actually being run by regrtest.py. Or more precisely,
Phillip J. Eby [Mon, 10 Apr 2006 18:33:17 +0000 (18:33 +0000)]
test_contextlib wasn't actually being run by regrtest.py.  Or more precisely,
it was being run, but no tests were actually executed!

18 years agoMinor clarity edit to contextlib per Guido's request.
Phillip J. Eby [Mon, 10 Apr 2006 17:56:29 +0000 (17:56 +0000)]
Minor clarity edit to contextlib per Guido's request.

18 years agoSF Patch #1463867: Improved generator finalization to allow generators
Phillip J. Eby [Mon, 10 Apr 2006 17:51:05 +0000 (17:51 +0000)]
SF Patch #1463867: Improved generator finalization to allow generators
that are suspended outside of any try/except/finally blocks to be
garbage collected even if they are part of a cycle.  Generators that
suspend inside of an active try/except or try/finally block (including
those created by a ``with`` statement) are still not GC-able if they
are part of a cycle, however.

18 years agoPatch #1467770: Add Popen objects to _active only in __del__.
Martin v. Löwis [Mon, 10 Apr 2006 15:55:37 +0000 (15:55 +0000)]
Patch #1467770: Add Popen objects to _active only in __del__.
Introduce _child_active member to keep track on whether a child
needs to be waited for.
Backport candidate.

18 years agoPatch #1441452: Add more AST nodes.
Martin v. Löwis [Mon, 10 Apr 2006 12:43:55 +0000 (12:43 +0000)]
Patch #1441452: Add more AST nodes.

18 years agoPatch #1429775: Link Python modules to libpython on linux if
Martin v. Löwis [Mon, 10 Apr 2006 12:39:36 +0000 (12:39 +0000)]
Patch #1429775: Link Python modules to libpython on linux if
--enable-shared. Fixes #832799.

18 years agoPatch #1462222: Fix Tix.Grid. Closes #1036406.
Martin v. Löwis [Mon, 10 Apr 2006 08:34:21 +0000 (08:34 +0000)]
Patch #1462222: Fix Tix.Grid. Closes #1036406.

18 years agoFix warning about ptsname not being a prototype on Solaris. Is this prototype even...
Neal Norwitz [Mon, 10 Apr 2006 07:44:23 +0000 (07:44 +0000)]
Fix warning about ptsname not being a prototype on Solaris.  Is this prototype even necessary anymore?

18 years agoUse PyObject_* allocator since FutureFeatures is small
Neal Norwitz [Mon, 10 Apr 2006 06:57:06 +0000 (06:57 +0000)]
Use PyObject_* allocator since FutureFeatures is small

18 years agoSF patch #1467512, fix double free with triple quoted string in standard build.
Neal Norwitz [Mon, 10 Apr 2006 06:42:25 +0000 (06:42 +0000)]
SF patch #1467512, fix double free with triple quoted string in standard build.

This was the result of inconsistent use of PyMem_* and PyObject_* allocators.
By changing to use PyObject_* allocator almost everywhere, this removes
the inconsistency.

18 years agoGet rid of warnings about using chars as subscripts
Neal Norwitz [Mon, 10 Apr 2006 02:17:47 +0000 (02:17 +0000)]
Get rid of warnings about using chars as subscripts
on Alpha (and possibly other platforms) by using Py_CHARMASK().

18 years agoFix some warnings on HP-UX when using cc/aCC
Neal Norwitz [Mon, 10 Apr 2006 01:03:32 +0000 (01:03 +0000)]
Fix some warnings on HP-UX when using cc/aCC

18 years agoI wonder if we can be too graceful? One oughta be enough. :-)
Neal Norwitz [Mon, 10 Apr 2006 00:25:01 +0000 (00:25 +0000)]
I wonder if we can be too graceful?  One oughta be enough. :-)

18 years agoPython on OS X 10.3 and above now uses dlopen() (via dynload_shlib.c)
Anthony Baxter [Sun, 9 Apr 2006 15:07:40 +0000 (15:07 +0000)]
Python on OS X 10.3 and above now uses dlopen() (via dynload_shlib.c)
to load extension modules and now provides the dl module. As a result,
sys.setdlopenflags() now works correctly on these systems. (SF patch
#1454844)

18 years agoPatch #1466993: remove wrong comment in socket.py
Georg Brandl [Sun, 9 Apr 2006 14:28:13 +0000 (14:28 +0000)]
Patch #1466993: remove wrong comment in socket.py

18 years agoFix tests so they pass in -R mode
Neal Norwitz [Sun, 9 Apr 2006 08:36:46 +0000 (08:36 +0000)]
Fix tests so they pass in -R mode

18 years agoGet test_optparse to pass in -R mode by stop changing state (COLUMNS env var)
Neal Norwitz [Sun, 9 Apr 2006 06:26:12 +0000 (06:26 +0000)]
Get test_optparse to pass in -R mode by stop changing state (COLUMNS env var)

18 years agoConvert test_compare to use unittest. Hopefully we can find out
Neal Norwitz [Sun, 9 Apr 2006 04:50:18 +0000 (04:50 +0000)]
Convert test_compare to use unittest.  Hopefully we can find out
why this breaks on openbsd sometimes.

18 years agoFix problem (not checking return result) reported by Coverity
Neal Norwitz [Sun, 9 Apr 2006 04:07:39 +0000 (04:07 +0000)]
Fix problem (not checking return result) reported by Coverity

18 years agoFix a couple of strings that were no-ops. urllib.open_file was a docstring
Neal Norwitz [Sun, 9 Apr 2006 04:00:49 +0000 (04:00 +0000)]
Fix a couple of strings that were no-ops.  urllib.open_file was a docstring
in 2.4, so put it back.  The string in telnetlib looks like a comment.

18 years agoglob('anything*/') would fail because isdir is in os.path, not os.
Neal Norwitz [Sun, 9 Apr 2006 03:35:43 +0000 (03:35 +0000)]
glob('anything*/') would fail because isdir is in os.path, not os.

18 years agotest_timeout(): This test was added during Bug Day, but disabled
Tim Peters [Sat, 8 Apr 2006 12:05:15 +0000 (12:05 +0000)]
test_timeout():  This test was added during Bug Day, but disabled
soon after because the gmail address it connects to started timing
out on all the buildbot slaves.  Rewrote the test to produce a
warning message (instead of failing) when the address times out.

Also removed the special case for Windows -- this test started to
work on Windows as soon as bug 1462352 was fixed.

18 years agoDefine WIN32, to get proper struct alignment in WinSock2.h.
Martin v. Löwis [Sat, 8 Apr 2006 09:13:43 +0000 (09:13 +0000)]
Define WIN32, to get proper struct alignment in WinSock2.h.
Fixes #1462352. Will backport.

18 years agoFix bsddb.db.DBError derived exceptions so they can be unpickled.
Gregory P. Smith [Sat, 8 Apr 2006 07:10:51 +0000 (07:10 +0000)]
Fix bsddb.db.DBError derived exceptions so they can be unpickled.

Also adds some backwards compatibility when compiling _bsddb.c on earlier
python versions (needed for pybsddb).

18 years agoDon't try to build ctypes when configuration of libffi fails.
Thomas Heller [Fri, 7 Apr 2006 19:27:56 +0000 (19:27 +0000)]
Don't try to build ctypes when configuration of libffi fails.

18 years agoConfigure Modules/_ctypes/libffi just before building the _ctypes extension.
Thomas Heller [Fri, 7 Apr 2006 19:04:09 +0000 (19:04 +0000)]
Configure Modules/_ctypes/libffi just before building the _ctypes extension.
This avoids configuring it when it is not build by setup.py.

18 years agoFix a few XXX markers
Andrew M. Kuchling [Fri, 7 Apr 2006 12:46:06 +0000 (12:46 +0000)]
Fix a few XXX markers

18 years agoAdjust compileall -x option to Makefile.pre.in. Fixes #1465093.
Martin v. Löwis [Fri, 7 Apr 2006 10:02:25 +0000 (10:02 +0000)]
Adjust compileall -x option to Makefile.pre.in. Fixes #1465093.

18 years agoRegenerate.
Martin v. Löwis [Fri, 7 Apr 2006 06:26:31 +0000 (06:26 +0000)]
Regenerate.

18 years agomissing 'self' from TextCalendar.prweek.
Anthony Baxter [Fri, 7 Apr 2006 05:41:13 +0000 (05:41 +0000)]
missing 'self' from TextCalendar.prweek.

18 years agominor error in uudecode main error handling
Anthony Baxter [Fri, 7 Apr 2006 05:39:17 +0000 (05:39 +0000)]
minor error in uudecode main error handling

18 years agoPatch #1462080: Conditionalize some NETLINK defines.
Martin v. Löwis [Thu, 6 Apr 2006 22:29:33 +0000 (22:29 +0000)]
Patch #1462080: Conditionalize some NETLINK defines.

18 years agoWhitespace normalization.
Tim Peters [Thu, 6 Apr 2006 19:35:27 +0000 (19:35 +0000)]
Whitespace normalization.

18 years agoExpose RTLD_LOCAL and RTLD_GLOBAL always from the _ctypes extension module.
Thomas Heller [Thu, 6 Apr 2006 15:23:16 +0000 (15:23 +0000)]
Expose RTLD_LOCAL and RTLD_GLOBAL always from the _ctypes extension module.
If RTLD_LOCAL is not #defined in any header file (Windows), set it to 0.
If RTLD_GLOBAL is not #defined, set it equal to RTLD_LOCAL.

This should fix ctypes on cygwin.

18 years agoFix unfinished paragraph; markup fix
Andrew M. Kuchling [Thu, 6 Apr 2006 13:24:58 +0000 (13:24 +0000)]
Fix unfinished paragraph; markup fix

18 years agoExpand the PEP 353 section; various smaller changes
Andrew M. Kuchling [Thu, 6 Apr 2006 13:03:04 +0000 (13:03 +0000)]
Expand the PEP 353 section; various smaller changes

18 years agoBug #1464658: make clear that PyList_GetItem doesn't take negative indices.
Georg Brandl [Thu, 6 Apr 2006 12:45:51 +0000 (12:45 +0000)]
Bug #1464658: make clear that PyList_GetItem doesn't take negative indices.

18 years agoBug #1465619: rot13 codec decodes to a Unicode string.
Georg Brandl [Thu, 6 Apr 2006 11:25:33 +0000 (11:25 +0000)]
Bug #1465619: rot13 codec decodes to a Unicode string.

18 years agoBug #1465600: note encoding issue in ZipFile.write().
Georg Brandl [Thu, 6 Apr 2006 10:03:32 +0000 (10:03 +0000)]
Bug #1465600: note encoding issue in ZipFile.write().

18 years agoReplace a few more 'char' types with 'signed char', to fix test failures
Thomas Heller [Thu, 6 Apr 2006 09:02:58 +0000 (09:02 +0000)]
Replace a few more 'char' types with 'signed char', to fix test failures
on platforms (ppc debian) where 'char' is unsigned.

18 years agoThis change shouldn't have any functional effect. Coverity was
Neal Norwitz [Thu, 6 Apr 2006 08:43:16 +0000 (08:43 +0000)]
This change shouldn't have any functional effect.  Coverity was
complaining because it seemed like parameters_iter could be NULL.

18 years agoFix unchecked return result from Coverity.
Neal Norwitz [Thu, 6 Apr 2006 08:41:59 +0000 (08:41 +0000)]
Fix unchecked return result from Coverity.

18 years agoRemove dead code (reported by HP compiler).
Neal Norwitz [Thu, 6 Apr 2006 08:17:41 +0000 (08:17 +0000)]
Remove dead code (reported by HP compiler).

Can probably be backported if anyone cares.

18 years agoHandle ssize_t
Neal Norwitz [Thu, 6 Apr 2006 08:07:25 +0000 (08:07 +0000)]
Handle ssize_t

18 years agoHandle error conditions from PyString_ConcatAndDel().
Neal Norwitz [Thu, 6 Apr 2006 08:06:52 +0000 (08:06 +0000)]
Handle error conditions from PyString_ConcatAndDel().

18 years agoHandle ssize_t
Neal Norwitz [Thu, 6 Apr 2006 08:05:53 +0000 (08:05 +0000)]
Handle ssize_t
No need to INCREF then let PyString_ConcatAndDel() DECREF.  Just
use PyString_Concat().
Handle error condition if we can't concat.

18 years agoHopefully this makes test_urllib2 have inconsistent leak results
Neal Norwitz [Thu, 6 Apr 2006 08:00:20 +0000 (08:00 +0000)]
Hopefully this makes test_urllib2 have inconsistent leak results

18 years agoI don't think we know of any tests that really leak anymore
Neal Norwitz [Thu, 6 Apr 2006 07:58:59 +0000 (07:58 +0000)]
I don't think we know of any tests that really leak anymore
(other than those in leakers).

18 years agoFix for failure of test_urllib2 breaking test_mimetypes (SF bug 1464978)
Anthony Baxter [Thu, 6 Apr 2006 07:31:31 +0000 (07:31 +0000)]
Fix for failure of test_urllib2 breaking test_mimetypes (SF bug 1464978)
will backport.

18 years agoIn some environments (under screen, in a chroot) curses doesn't support
Anthony Baxter [Thu, 6 Apr 2006 07:12:39 +0000 (07:12 +0000)]
In some environments (under screen, in a chroot) curses doesn't support
mouse events. This makes the test fail. Catch that case and don't run
the tests. Should make the debian/ubuntu buildbots that run in a chroot
work again.

Will backport to release24-maint.

18 years agoBug #1451341: find fuzzy marks correctly.
Georg Brandl [Thu, 6 Apr 2006 06:44:33 +0000 (06:44 +0000)]
Bug #1451341: find fuzzy marks correctly.

18 years agoremove more cruft no longer needed
Fred Drake [Thu, 6 Apr 2006 01:32:26 +0000 (01:32 +0000)]
remove more cruft no longer needed

18 years agoremove much of the Python-version compatibility cruft; the minimum Python
Fred Drake [Thu, 6 Apr 2006 01:29:04 +0000 (01:29 +0000)]
remove much of the Python-version compatibility cruft; the minimum Python
version this should support is Python 2.3

18 years agorevert incomplete changes committed by accident
Fred Drake [Thu, 6 Apr 2006 00:18:28 +0000 (00:18 +0000)]
revert incomplete changes committed by accident

18 years agoupdate URL to reflect new website
Fred Drake [Thu, 6 Apr 2006 00:17:08 +0000 (00:17 +0000)]
update URL to reflect new website

18 years agoExplicitely use 'signed char', to avoid problems on platforms with unsigned char...
Thomas Heller [Wed, 5 Apr 2006 20:34:18 +0000 (20:34 +0000)]
Explicitely use 'signed char', to avoid problems on platforms with unsigned char type.

18 years agoExplicitely use 'signed char', to avoid problems on platforms with unsigned char...
Thomas Heller [Wed, 5 Apr 2006 19:51:19 +0000 (19:51 +0000)]
Explicitely use 'signed char', to avoid problems on platforms with unsigned char type.

18 years agoOne test still fails on the ia64 debian box.
Thomas Heller [Wed, 5 Apr 2006 19:01:35 +0000 (19:01 +0000)]
One test still fails on the ia64 debian box.

18 years agoFixed error in comment for new PY_SSIZE_T_MIN.
Tim Peters [Wed, 5 Apr 2006 18:43:30 +0000 (18:43 +0000)]
Fixed error in comment for new PY_SSIZE_T_MIN.