Vinay Sajip
72ed07843a
logging: fixed lack of use of encoding attribute specified on a stream.
2008-09-01 14:30:10 +00:00
Hirokazu Yamamoto
f7dd75f484
Issue #3732 : Backported r53335 to supress deprecation warning.
...
Reviewed by Benjamin Peterson.
2008-09-01 14:24:04 +00:00
Benjamin Peterson
17f03ca962
Fix compilation when --without-threads is given #3683
...
Reviewer: Georg Brandl, Benjamin Peterson
2008-09-01 14:18:30 +00:00
Georg Brandl
2ba93210e2
#3749 : fix c'n'p errors.
2008-09-01 14:15:55 +00:00
Benjamin Peterson
f22c26ecf4
#3703 unhelpful _fileio.FileIO error message when trying to open a directory
...
Reviewer: Gregory P. Smith
2008-09-01 14:13:43 +00:00
Gregory P. Smith
f07e5a9e4b
issue3715: docstring representation of hex escaped string needs to be double
...
escaped.
2008-08-31 16:34:18 +00:00
Andrew M. Kuchling
51eb7a9daa
Update patch/bug count
2008-08-31 15:48:44 +00:00
Andrew M. Kuchling
ba40fb467d
Last batch of edits; remove the 'other changes' section
2008-08-31 15:41:48 +00:00
Andrew M. Kuchling
fa881f2bd4
Edit the library section, rearranging items to flow better and making lots of edits
2008-08-31 14:29:31 +00:00
Jesus Cea
4907d27c1f
Update bsddb code to version 4.7.3pre2. This code should
...
be compatible with Python 3.0, also.
http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.7.3
2008-08-31 14:00:51 +00:00
Nick Coghlan
82358691f7
Issue 2235: document the ability to block inheritance of __hash__ in the language reference
2008-08-31 13:10:50 +00:00
Andrew M. Kuchling
4d028570c7
More edits
2008-08-31 02:24:08 +00:00
Andrew M. Kuchling
eaa29bb238
More edits; markup fixes
2008-08-30 22:56:54 +00:00
Georg Brandl
9481ba33ff
Fix markup.
2008-08-30 22:00:28 +00:00
Georg Brandl
5c669db194
#3707 : fix inf. recursion in pydoc topic search. Rev'd by Antoine.
2008-08-30 19:03:43 +00:00
Andrew M. Kuchling
5f2dc0bf7b
Edit four more sections
2008-08-30 16:44:54 +00:00
Andrew M. Kuchling
3ffe56398a
Correction from Antoine Pitrou: BufferedWriter and Reader support seek()
2008-08-30 15:25:47 +00:00
Andrew M. Kuchling
bf0a5951c9
Tidy up some sentences
2008-08-30 15:21:23 +00:00
Andrew M. Kuchling
e496493dd8
Partial edits from revision and tidying pass
2008-08-30 15:19:57 +00:00
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