Tim Peters
85b362f007
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.
2006-04-11 01:21:00 +00:00
Phillip J. Eby
678b8ecd08
Forgot to mark up a PEP reference
2006-04-11 01:15:28 +00:00
Phillip J. Eby
4703211080
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.
2006-04-11 01:07:43 +00:00
Tim Peters
7731dfdaad
Huh. This belonged with the last checkin -- no idea why svn
...
didn't commit it.
2006-04-11 00:44:27 +00:00
Tim Peters
6902b44406
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).
2006-04-11 00:43:27 +00:00
Andrew M. Kuchling
16ed521dd7
Write part of ElementTree section
2006-04-10 22:28:11 +00:00
Andrew M. Kuchling
d58baf8592
Give SQLite examples
2006-04-10 21:40:16 +00:00
Tim Peters
9bdc85f8bf
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.
2006-04-10 21:38:11 +00:00
Tim Peters
88459359b1
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.
2006-04-10 21:34:00 +00:00
Tim Peters
3daf304f3b
Whitespace normalization.
2006-04-10 20:28:40 +00:00
Martin v. Löwis
0bc2ab9a20
Patch #837242 : id() for large ptr should return a long.
2006-04-10 20:28:17 +00:00
Tim Peters
a19dc0beb1
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.
2006-04-10 20:25:47 +00:00
Phillip J. Eby
bd0c10f7c9
test_contextlib wasn't actually being run by regrtest.py. Or more precisely,
...
it was being run, but no tests were actually executed!
2006-04-10 18:33:17 +00:00
Phillip J. Eby
93149d935d
Minor clarity edit to contextlib per Guido's request.
2006-04-10 17:56:29 +00:00
Phillip J. Eby
2ba96610bf
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.
2006-04-10 17:51:05 +00:00
Martin v. Löwis
17de8ffc21
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.
2006-04-10 15:55:37 +00:00
Martin v. Löwis
3fa6c090d8
Patch #1441452 : Add more AST nodes.
2006-04-10 12:43:55 +00:00
Martin v. Löwis
10acfd00b2
Patch #1429775 : Link Python modules to libpython on linux if
...
--enable-shared. Fixes #832799 .
2006-04-10 12:39:36 +00:00
Martin v. Löwis
b04dee935c
Patch #1462222 : Fix Tix.Grid. Closes #1036406 .
2006-04-10 08:34:21 +00:00
Neal Norwitz
84a98e07f5
Fix warning about ptsname not being a prototype on Solaris. Is this prototype even necessary anymore?
2006-04-10 07:44:23 +00:00
Neal Norwitz
14bc4e4d89
Use PyObject_* allocator since FutureFeatures is small
2006-04-10 06:57:06 +00:00
Neal Norwitz
2c4e4f9839
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.
2006-04-10 06:42:25 +00:00
Neal Norwitz
65c05b20e9
Get rid of warnings about using chars as subscripts
...
on Alpha (and possibly other platforms) by using Py_CHARMASK().
2006-04-10 02:17:47 +00:00
Neal Norwitz
b183a25c29
Fix some warnings on HP-UX when using cc/aCC
2006-04-10 01:03:32 +00:00
Neal Norwitz
6974a51d1a
I wonder if we can be too graceful? One oughta be enough. :-)
2006-04-10 00:25:01 +00:00
Anthony Baxter
8220174489
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 )
2006-04-09 15:07:40 +00:00
Georg Brandl
a50794b620
Patch #1466993 : remove wrong comment in socket.py
2006-04-09 14:28:13 +00:00
Neal Norwitz
ce4a9c9019
Fix tests so they pass in -R mode
2006-04-09 08:36:46 +00:00
Neal Norwitz
aa34b6c2e3
Get test_optparse to pass in -R mode by stop changing state (COLUMNS env var)
2006-04-09 06:26:12 +00:00
Neal Norwitz
349c0ed27f
Convert test_compare to use unittest. Hopefully we can find out
...
why this breaks on openbsd sometimes.
2006-04-09 04:50:18 +00:00
Neal Norwitz
4c842a4db0
Fix problem (not checking return result) reported by Coverity
2006-04-09 04:07:39 +00:00
Neal Norwitz
c5d0dbd328
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.
2006-04-09 04:00:49 +00:00
Neal Norwitz
a31bf18c48
glob('anything*/') would fail because isdir is in os.path, not os.
2006-04-09 03:35:43 +00:00
Tim Peters
e0bb597d03
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.
2006-04-08 12:05:15 +00:00
Martin v. Löwis
2f36caf8ff
Define WIN32, to get proper struct alignment in WinSock2.h.
...
Fixes #1462352 . Will backport.
2006-04-08 09:13:43 +00:00
Gregory P. Smith
7f5b6f4b33
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).
2006-04-08 07:10:51 +00:00
Thomas Heller
795246cf99
Don't try to build ctypes when configuration of libffi fails.
2006-04-07 19:27:56 +00:00
Thomas Heller
eba43c157b
Configure Modules/_ctypes/libffi just before building the _ctypes extension.
...
This avoids configuring it when it is not build by setup.py.
2006-04-07 19:04:09 +00:00
Andrew M. Kuchling
6e3a66de91
Fix a few XXX markers
2006-04-07 12:46:06 +00:00
Martin v. Löwis
9fbc44cc34
Adjust compileall -x option to Makefile.pre.in. Fixes #1465093 .
2006-04-07 10:02:25 +00:00
Martin v. Löwis
ad7c44c047
Regenerate.
2006-04-07 06:26:31 +00:00
Anthony Baxter
7846f4d365
missing 'self' from TextCalendar.prweek.
2006-04-07 05:41:13 +00:00
Anthony Baxter
b4e4165b96
minor error in uudecode main error handling
2006-04-07 05:39:17 +00:00
Martin v. Löwis
5fe60e7a4c
Patch #1462080 : Conditionalize some NETLINK defines.
2006-04-06 22:29:33 +00:00
Tim Peters
7d6b8954bf
Whitespace normalization.
2006-04-06 19:35:27 +00:00
Thomas Heller
fff61ea025
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.
2006-04-06 15:23:16 +00:00
Andrew M. Kuchling
a4d651fbc8
Fix unfinished paragraph; markup fix
2006-04-06 13:24:58 +00:00
Andrew M. Kuchling
4d8cd8957a
Expand the PEP 353 section; various smaller changes
2006-04-06 13:03:04 +00:00
Georg Brandl
4dce8e4e69
Bug #1464658 : make clear that PyList_GetItem doesn't take negative indices.
2006-04-06 12:45:51 +00:00
Georg Brandl
729156e7de
Bug #1465619 : rot13 codec decodes to a Unicode string.
2006-04-06 11:25:33 +00:00