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
Georg Brandl
caf9539b2b
Bug #1465600 : note encoding issue in ZipFile.write().
2006-04-06 10:03:32 +00:00
Thomas Heller
430947ac66
Replace a few more 'char' types with 'signed char', to fix test failures
...
on platforms (ppc debian) where 'char' is unsigned.
2006-04-06 09:02:58 +00:00
Neal Norwitz
b43199822b
This change shouldn't have any functional effect. Coverity was
...
complaining because it seemed like parameters_iter could be NULL.
2006-04-06 08:43:16 +00:00
Neal Norwitz
d126200aeb
Fix unchecked return result from Coverity.
2006-04-06 08:41:59 +00:00
Neal Norwitz
7e957d38b7
Remove dead code (reported by HP compiler).
...
Can probably be backported if anyone cares.
2006-04-06 08:17:41 +00:00
Neal Norwitz
ffb0d90a6e
Handle ssize_t
2006-04-06 08:07:25 +00:00
Neal Norwitz
915ae41b3a
Handle error conditions from PyString_ConcatAndDel().
2006-04-06 08:06:52 +00:00
Neal Norwitz
b038333d4b
Handle ssize_t
...
No need to INCREF then let PyString_ConcatAndDel() DECREF. Just
use PyString_Concat().
Handle error condition if we can't concat.
2006-04-06 08:05:53 +00:00
Neal Norwitz
5102c4e385
Hopefully this makes test_urllib2 have inconsistent leak results
2006-04-06 08:00:20 +00:00