Commit Graph

40453 Commits

Author SHA1 Message Date
Georg Brandl f5a3fb730f super() actually returns a super object. 2008-08-30 13:17:39 +00:00
Georg Brandl 6140651d93 #3569: eval() also accepts "exec"able code objects. 2008-08-30 10:03:09 +00:00
Georg Brandl c176814d82 #3716: fix typo. 2008-08-30 09:52:44 +00:00
Georg Brandl cff0b46edc #3730: mention "server" attribute explicitly. 2008-08-30 09:49:36 +00:00
Armin Rigo dcde494114 A collection of crashers, all variants of the idea
of issue #3720.
2008-08-29 21:21:52 +00:00
Antoine Pitrou d4ae97bc38 #3668: When PyArg_ParseTuple correctly parses a s* format, but raises an
exception afterwards (for a subsequent parameter), the user code will
not call PyBuffer_Release() and memory will leak.

Reviewed by Amaury Forgeot d'Arc.
2008-08-29 18:39:48 +00:00
Georg Brandl a27e89bd04 #3711: .dll isn't a valid Python extension anymore. 2008-08-28 09:40:18 +00:00
Andrew M. Kuchling 488a4f0118 Add various items 2008-08-27 02:12:18 +00:00
Andrew M. Kuchling c9b41106e8 Add an item and a note 2008-08-27 00:45:02 +00:00
Andrew M. Kuchling d207e230e1 Trim whitespace; add a few updates 2008-08-27 00:27:18 +00:00
Antoine Pitrou 0668c62677 Issue #2534: speed up isinstance() and issubclass() by 50-70%, so as to
match Python 2.5 speed despite the __instancecheck__ / __subclasscheck__
mechanism. In the process, fix a bug where isinstance() and issubclass(),
when given a tuple of classes as second argument, were looking up
__instancecheck__ / __subclasscheck__ on the tuple rather than on each
type object.

Reviewed by Benjamin Peterson and Raymond Hettinger.
2008-08-26 22:42:08 +00:00
Benjamin Peterson 14cb6bcf2b sort of backport 66038 by aliasing PyObject_Bytes to PyObject_Str 2008-08-26 17:08:40 +00:00
Neal Norwitz e39be53c3c Try to reduce the flakiness of this test 2008-08-25 03:52:40 +00:00
Neal Norwitz 2a7767a173 Use bytes as return type from recv_bytes() methods. Not sure why this only
affects some buildbots.

R=Brett
TESTED=./python -E -tt ./Lib/test/regrtest.py test_multiprocessing
2008-08-25 03:03:25 +00:00
Neal Norwitz 0c519b3a5e Fix problem reported by pychecker where AuthenticationError wasn't imported.
Add some test coverage to this code.  More tests should be added (TODO added).

R=Brett
TESTED=./python -E -tt ./Lib/test/regrtest.py test_multiprocessing
2008-08-25 01:50:24 +00:00
Brett Cannon 971f10210e Clarify that some attributes/methods are listed somewhat separately because they are not part of the threading API. 2008-08-24 23:15:19 +00:00
Neal Norwitz 901e4715bd #3662: Fix segfault introduced when fixing memory leaks.
TESTED=./python -E -tt ./Lib/test/regrtest.py test_fileio
R (approach from bug)=Amaury and Benjamin
2008-08-24 22:03:05 +00:00
Benjamin Peterson dcf4891210 remove note about unimplemented feature 2008-08-24 21:55:03 +00:00
Georg Brandl 30de77b97d #3654: fix duplicate test method name. Review by Benjamin P. 2008-08-24 18:11:07 +00:00
Benjamin Peterson 712ee92309 generate py3k warnings on __getslice__, __delslice__, and __setslice__
Reviewer: Brett Cannon
2008-08-24 18:10:20 +00:00
Neal Norwitz a403e4141a Use the actual blacklist of leaky tests 2008-08-24 17:29:53 +00:00
Neal Norwitz 3782fba588 Ignore a couple more tests that report leaks inconsistently. 2008-08-24 17:27:43 +00:00
Neal Norwitz 18aa388ca0 Fix:
* crashes on memory allocation failure found with failmalloc
 * memory leaks found with valgrind
 * compiler warnings in opt mode which would lead to invalid memory reads
 * problem using wrong name in decimal module reported by pychecker

Update the valgrind suppressions file with new leaks that are small/one-time
leaks we don't care about (ie, they are too hard to fix).

TBR=barry
TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt modes)
  in opt mode:
  valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \
    ./python -E -tt ./Lib/test/regrtest.py -uall,-bsddb,-compiler \
                        -x test_logging test_ssl test_multiprocessing
  valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \
    ./python -E -tt ./Lib/test/regrtest.py test_multiprocessing
  for i in `seq 1 4000` ; do
    LD_PRELOAD=~/local/lib/libfailmalloc.so FAILMALLOC_INTERVAL=$i \
        ./python -c pass
  done

At least some of these fixes should probably be backported to 2.5.
2008-08-24 05:04:52 +00:00
Benjamin Peterson 21d2ab7fe8 fix warning 2008-08-23 21:40:15 +00:00
Benjamin Peterson 37346b2b9b #3643 add a few more checks to _testcapi to prevent segfaults
Author: Victor Stinner
Reviewer: Benjamin Peterson
2008-08-23 20:27:43 +00:00
Georg Brandl 7161cbfcba Small updates to types member docs, backport from r65994. 2008-08-23 15:15:31 +00:00
Mark Hammond 69ed524045 Fix bug 3625: test issues on 64bit windows. r=pitrou 2008-08-23 00:59:14 +00:00
Christian Heimes 94a730540a d is the correct format string 2008-08-22 21:23:47 +00:00
Benjamin Peterson b6a955672f fix a few get_name() calls and turn then to .name
Reviewer: Christian Heimes
2008-08-22 20:43:48 +00:00
Christian Heimes 1cc69636ef Fixed two format strings in the _collections module. For example
Modules/_collectionsmodule.c:674: warning: format '%i' expects type 'int', but argument 2 has type 'Py_ssize_t'
Reviewed by Benjamin Peterson
2008-08-22 20:10:27 +00:00
Christian Heimes a27a62e74c Silenced a compiler warning in the sqlite module
Modules/_sqlite/row.c:187: warning: suggest parentheses around && within ||
Reviewed by Benjamin Peterson
2008-08-22 19:55:54 +00:00
Christian Heimes 7d4c3177d5 Silenced compiler warning
Objects/stringlib/find.h:97: warning: 'stringlib_contains_obj' defined but not used
Reviewed by Benjamin Peterson
2008-08-22 19:47:25 +00:00
Christian Heimes fb1813cb8d Changed type of numarenas from uint to size_t to silence a GCC warning on 64bit OSes. Reviewed by Benjamin Peterson. 2008-08-22 19:34:15 +00:00
Robert Schuppenies af1aae3aa6 Issue #1342811: Fixed broken patch. Reviewed by benjamin.peterson. 2008-08-22 08:03:43 +00:00
Mark Dickinson 5c2bb1a7d4 issue 3633: Solaris allows fullwidth Unicode digits in isxdigit, so
rewrite float.fromhex to only allow ASCII hex digits on all platforms.
(Tests for this are already present, but the test_float failures
on Solaris hadn't been noticed before.)

Reviewed by Antoine Pitrou.
2008-08-21 21:38:38 +00:00
Mark Dickinson 892429b08b Fix float.fromhex test to give additional information on failure. This
change is aimed at diagnosing issue 3633 (test_float fails on Solaris).

Reviewed by Benjamin Peterson
2008-08-21 20:02:24 +00:00
Barry Warsaw 6a0b559d26 done with the release 2008-08-21 02:12:56 +00:00
Barry Warsaw 118c9054ca Tagging 2.6b3 2008-08-21 01:15:57 +00:00
Barry Warsaw 07a4a3851d Bump to 2.6b3. 2008-08-21 01:15:08 +00:00
Hirokazu Yamamoto cd3b74d4e8 Reverted r65900. See http://mail.python.org/pipermail/python-checkins/2008-August/073116.html 2008-08-20 16:15:28 +00:00
Guido van Rossum f840296392 News for the tp_flags change. 2008-08-20 15:01:50 +00:00
Guido van Rossum 84b1e0fde7 News for the imageop fix. 2008-08-20 14:57:20 +00:00
Benjamin Peterson 73641d7eb4 fix up the multiprocessing docs a little 2008-08-20 14:07:59 +00:00
Hirokazu Yamamoto 838c79f472 Issue #3612: Added some missing basic types in ctypes.wintypes. 2008-08-20 13:14:07 +00:00
Hirokazu Yamamoto ccfdcd0cb2 fixed get_file_system in test_os.py ('path' is unicode on py3k and ansi on trunk) 2008-08-20 04:13:28 +00:00
Benjamin Peterson e6b5ba621f fix silly errors of mine 2008-08-20 02:15:42 +00:00
Benjamin Peterson 86da890a9e newSymbolTable is not public API 2008-08-20 01:44:45 +00:00
Benjamin Peterson e977ad4d7b deprecate some useless, noop methods in symtable 2008-08-20 01:42:01 +00:00
Benjamin Peterson f647dc10e3 add a NEWS note for new args syntax 2008-08-20 01:27:30 +00:00
Amaury Forgeot d'Arc 67f24f1ed6 follow-up of issue3473: update the compiler package to recognize the new syntax. 2008-08-20 00:08:47 +00:00