Christian Heimes
c7f315a3ab
Merged revisions 66739 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66739 | christian.heimes | 2008-10-02 20:33:41 +0200 (Thu, 02 Oct 2008) | 1 line
Fixed a comment to C89 style as of http://drj11.wordpress.com/2008/10/02/python-and-bragging-about-c89/
........
2008-10-02 18:39:50 +00:00
Barry Warsaw
a5a38c508e
Post release dance
2008-10-02 03:08:34 +00:00
Barry Warsaw
afa1436958
Bumping to 2.6 final.
2008-10-01 21:46:40 +00:00
Martin v. Löwis
d69c904a2f
Bug #3989 : Package the 2to3 script (as 2to3.py) in the Windows
...
installer.
2008-10-01 11:19:50 +00:00
Gregory P. Smith
0806749e63
Works around issue3863: freebsd4/5/6 and os2emx are known to have OS bugs when
...
calling fork() from a child thread. This disables that unit test (with a note
printed to stderr) on those platforms.
A caveat about buggy platforms is added to the os.fork documentation.
2008-09-30 20:41:13 +00:00
Benjamin Peterson
8d77d448a5
fix security issue 2: imageop's poor validation of arguments could result in segfaults
...
patch by Victor Stinner
reviewed by myself and Brett
2008-09-30 01:31:49 +00:00
Martin v. Löwis
e563aa4383
Issue #3965 : Allow repeated calls to turtle.Screen, by making it a
...
true singleton object.
Reviewed by Gregor Lingl.
2008-09-29 22:09:07 +00:00
Brett Cannon
b2d61bde28
The _lsprof module could crash the interpreter if it was given an external
...
timer that did not return a float and a timer was still running when the
Profiler object was garbage collected.
Fixes issue 3895.
Code review by Benjamin Peterson.
2008-09-29 03:41:21 +00:00
Jesus Cea
09c0178242
bsddb4.7.3pre9 renamed to 4.7.3
2008-09-28 23:24:19 +00:00
Amaury Forgeot d'Arc
fc5ea39289
#3967 : Correct a crash in count() and find() methods of string-like objects.
...
For example:
"".count("xxxx", sys.maxint, 0)
Reviewed by Benjamin Peterson.
Will port to 2.5 and 3.0.
2008-09-26 22:34:08 +00:00
Amaury Forgeot d'Arc
17617a07d1
#3965 : on Windows, open() crashes if the filename or the mode is invalid,
...
and if the filename is a unicode string.
Reviewed by Martin von Loewis.
2008-09-25 20:52:56 +00:00
Benjamin Peterson
22d3c92480
add a NEWs entry for r66614
2008-09-25 20:35:45 +00:00
Martin v. Löwis
e86b07cc9a
Bug #3951 : Py_USING_MEMORY_DEBUGGER should not be enabled by default.
2008-09-25 04:12:50 +00:00
Thomas Heller
a85c95d5e8
Fix issue #3547 : ctypes is confused by bitfields of varying integer types
...
Reviewed by Fredrik Lundh and Skip Montanaro.
2008-09-24 18:26:05 +00:00
Benjamin Peterson
2c7470d951
#3879 fix a regression in urllib.getproxies_environment
...
reviewers: Benjamin, Georg
2008-09-21 21:27:51 +00:00
Martin v. Löwis
175d00784d
Bug #3887 : Package x64 version of CRT for AMD64
...
Windows binaries.
2008-09-19 15:21:07 +00:00
Barry Warsaw
0c5ca57369
done with 2.6rc2
2008-09-18 05:34:31 +00:00
Barry Warsaw
6af16190f6
Bumping to 2.6rc2
2008-09-18 04:33:43 +00:00
Benjamin Peterson
8c2b7dc463
fix possible integer overflows in _hashopenssl #3886
2008-09-18 01:22:16 +00:00
Martin v. Löwis
4eb18f9d5d
Issue #3617 : Include a licensing statement regarding the Microsoft C runtime in the Windows installer.
2008-09-14 20:22:39 +00:00
Antoine Pitrou
3c9f541ef8
Issue #3850 : Misc/find_recursionlimit.py was broken.
...
Reviewed by A.M. Kuchling.
2008-09-13 20:30:30 +00:00
Martin v. Löwis
ab0b29bd81
Issue #3833 : Use a different upgrade code for Win64 installers.
2008-09-13 08:11:57 +00:00
Barry Warsaw
dfd6b86d6b
post release updates
2008-09-13 01:12:18 +00:00
Barry Warsaw
1e62aec3ed
Bumping to 2.6rc1
2008-09-12 23:25:57 +00:00
Gerhard Häring
e6872eb417
Issue #3846 : Release GIL during calls to sqlite3_prepare. This improves concurrent access to the same database file from multiple threads/processes.
2008-09-12 22:33:22 +00:00
Gerhard Häring
6e1afcf988
Fixes issue #3103 . In the sqlite3 module, made one more function static. All renaming public symbos now have the pysqlite prefix to avoid name clashes. This at least once created problems where the same symbol name appeared somewhere in Apache and the sqlite3 module was used from mod_python.
2008-09-12 18:58:57 +00:00
Gerhard Häring
ef2276b60d
sqlite3 module: Mark iterdump() method as "Non-standard" like all the other methods not found in DB-API.
2008-09-12 13:54:06 +00:00
Amaury Forgeot d'Arc
24cb382455
#3640 : Correct a crash in cPickle on 64bit platforms, in the case of deeply nested lists or dicts.
...
Reviewed by Martin von Loewis.
2008-09-11 20:56:13 +00:00
Nick Coghlan
d2e0938362
Issue #3781 : Final cleanup of warnings.catch_warnings and its usage in the test suite. Closes issue w.r.t. 2.6 (R: Brett Cannon)
2008-09-11 12:11:06 +00:00
Martin v. Löwis
9fa5a2828c
Issue #3642 : Suppress warning in obmalloc when size_t is
...
larger than uint. Reverts r65975. Reviewed by Brett Cannon.
2008-09-11 06:53:30 +00:00
Amaury Forgeot d'Arc
05e344954d
#3743 : PY_FORMAT_SIZE_T is designed for the OS "printf" functions, not for
...
PyString_FromFormat which has an independent implementation, and uses "%zd".
This makes a difference on win64, where printf needs "%Id" to display
64bit values. For example, queue.__repr__ was incorrect.
Reviewed by Martin von Loewis.
2008-09-10 22:04:45 +00:00
Guido van Rossum
e3c4fd9cc0
- Issue #3629 : Fix sre "bytecode" validator for an end case.
...
Reviewed by Amaury.
2008-09-10 14:27:00 +00:00
Martin v. Löwis
24329ba176
Issue #3811 : The Unicode database was updated to 5.1.
...
Reviewed by Fredrik Lundh and Marc-Andre Lemburg.
2008-09-10 13:38:12 +00:00
Benjamin Peterson
97179b0f58
Fix #3634 invalid return value from _weakref.ref(Exception).__init__
...
Reviewers: Amaury, Antoine, Benjamin
2008-09-09 20:55:01 +00:00
Vinay Sajip
844f741039
Issue #3809 : Fixed spurious 'test.blah' file left behind by test_logging.
2008-09-09 13:42:08 +00:00
Amaury Forgeot d'Arc
d3ffb8974f
#3777 : long(4.2) returned an int, and broke backward compatibility.
...
the __long__ slot is allowed to return either int or long, but the behaviour of
float objects should not change between 2.5 and 2.6.
Reviewed by Benjamin Peterson
2008-09-09 07:24:30 +00:00
Brett Cannon
672237dc6c
warnings.catch_warnings() now returns a list or None instead of the custom
...
WarningsRecorder object. This makes the API simpler to use as no special object
must be learned.
Closes issue 3781.
Review by Benjamin Peterson.
2008-09-09 00:49:16 +00:00
Martin v. Löwis
3f5fda8c50
Issue #2271 : Set SecureCustomProperties so that installation will properly
...
use the TARGETDIR even for unprivileged users.
2008-09-08 13:50:10 +00:00
Martin v. Löwis
67543a9dc9
Allow passing the MSI file name to merge.py.
2008-09-08 12:02:45 +00:00
Gregory P. Smith
980b99b529
- Issue #1204 : The configure script now tests for additional libraries
...
that may be required when linking against readline. This fixes issues
with x86_64 builds on some platforms (at least a few Linux flavors as
well as OpenBSD/amd64).
2008-09-07 05:15:18 +00:00
Amaury Forgeot d'Arc
feb8cade4d
#3796 : A test class was not run in test_float.
...
Reviewed by Benjamin.
2008-09-06 20:53:51 +00:00
Benjamin Peterson
6ac7d7c80b
#1638033 : add support for httponly on Cookie.Morsel
...
Reviewer: Benjamin
2008-09-06 19:28:11 +00:00
Antoine Pitrou
ebcd0ced14
Issue #3535 : zipfile couldn't read some zip files larger than 2GB.
...
Reviewed by Amaury Forgeot d'Arc.
2008-09-05 23:30:23 +00:00
Brett Cannon
cdeb24bb05
GNU coding guidelines say that ``make check`` should verify the build. That
...
clashes with what Python's build target did. Rename the target to 'patchcheck'
to avoid the culture clash.
Closes issue 3758.
Reviewed by Benjamin Peterson.
2008-09-05 22:59:17 +00:00
Brett Cannon
32476fc5a8
Deprecate bsddb for removal in Python 3.0.
...
Closes issue 3776.
Review by Nick Coghlan.
2008-09-05 18:33:51 +00:00
Hirokazu Yamamoto
42e459ef43
Added NEWS
2008-09-04 14:25:30 +00:00
Vinay Sajip
65d66e1006
Issue #3772 : Fixed regression problem in StreamHandler.emit().
2008-09-04 07:31:21 +00:00
Brett Cannon
a0b7444f68
test_py3kwarn had been overlooked when test.test_support.catch_warning() was
...
re-implemented to use warnings.catch_warnings() and had its API improved.
Closes issue #3768 .
Code review by Benjamin Peterson.
2008-09-03 22:45:11 +00:00
Facundo Batista
c585df9476
Issue 600362: Relocated parse_qs() and parse_qsl(), from the cgi module
...
to the urlparse one. Added a PendingDeprecationWarning in the old
module, it will be deprecated in the future. Docs and tests updated.
2008-09-03 22:35:50 +00:00
Jesse Noller
b814d6a704
Fix issue 3110 - solaris compilation of multiprocessing fails, reviewed by pitrou
2008-09-03 18:10:30 +00:00
Marc-André Lemburg
b339b2aa6f
Issue #2562 : Fix distutils PKG-INFO writing logic to allow having
...
non-ascii characters and Unicode in setup.py meta-data.
2008-09-03 11:13:56 +00:00
Vinay Sajip
6a2fd81316
Issue #3726 : Allowed spaces in separators in logging configuration files.
2008-09-03 09:20:05 +00:00
Amaury Forgeot d'Arc
293924bf31
Issue 2975: when compiling multiple extension modules with visual studio 2008
...
from the same python instance, some environment variables (LIB, INCLUDE)
would grow without limit.
Tested with these statements:
distutils.ccompiler.new_compiler().initialize()
print os.environ['LIB']
But I don't know how to turn them into reliable unit tests.
2008-09-02 23:19:56 +00:00
Marc-André Lemburg
31a0a1478b
Add news item for #3719 .
2008-09-02 12:11:19 +00:00
Gregory P. Smith
d712203d17
Issue #3708 : os.urandom no longer goes into an infinite loop when passed a
...
non-integer floating point number.
2008-09-02 05:36:11 +00:00
Gregory P. Smith
2bb25cc1e2
Issue #3678 : Correctly pass LDFLAGS and LDLAST to the linker on shared
...
library targets in the Makefile.
2008-09-02 05:29:51 +00:00
Brett Cannon
1eaf0742d8
Move test.test_support.catch_warning() to the warnings module, rename it
...
catch_warnings(), and clean up the API.
While expanding the test suite, a bug was found where a warning about the
'line' argument to showwarning() was not letting functions with '*args' go
without a warning.
Closes issue 3602.
Code review by Benjamin Peterson.
2008-09-02 01:25:16 +00:00
Benjamin Peterson
973e6c2cf3
remove py3k warnings about the threading api; update docs
...
Reviewer: Benjamin Peterson
2008-09-01 23:12:58 +00:00
Amaury Forgeot d'Arc
3571fbfed7
Issue #3751 : str.rpartition would perform a left-partition when called with
...
a unicode argument.
will backport.
2008-09-01 19:52:00 +00:00
Vinay Sajip
35e3b03e86
logging: fixed lack of use of encoding attribute specified on a stream.
2008-09-01 14:33:59 +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
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
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
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
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
Benjamin Peterson
712ee92309
generate py3k warnings on __getslice__, __delslice__, and __setslice__
...
Reviewer: Brett Cannon
2008-08-24 18:10:20 +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
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
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
Barry Warsaw
6a0b559d26
done with the release
2008-08-21 02:12:56 +00:00
Barry Warsaw
07a4a3851d
Bump to 2.6b3.
2008-08-21 01:15:08 +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
Hirokazu Yamamoto
838c79f472
Issue #3612 : Added some missing basic types in ctypes.wintypes.
2008-08-20 13:14:07 +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
Thomas Heller
0ad5ae02af
Fix a regression introduced by rev. 63792: ctypes function pointers
...
that are COM methods must have a boolean True value.
2008-08-19 19:25:04 +00:00
Georg Brandl
25c3408556
Fix grammar.
2008-08-18 23:09:49 +00:00
Benjamin Peterson
facdd6ee9e
update the threading docs to account for recent changes
2008-08-18 22:29:19 +00:00
Amaury Forgeot d'Arc
351ffb80c3
#2234 distutils failed with mingw binutils 2.18.50.20080109.
...
Be less strict when parsing these version numbers,
they don't necessarily follow the python numbering scheme.
2008-08-18 19:23:47 +00:00
Benjamin Peterson
d8a8972ca9
change threading.getIdent to a property
...
This is new in 2.6 so now need to worry about backwards compatibility :)
2008-08-18 16:40:03 +00:00
Nick Coghlan
6e8fef07e5
Issue 2235: document PyObject_HashNotImplemented
2008-08-18 13:14:22 +00:00
Nick Coghlan
f70385a5c3
Belated NEWS entry for r65642
2008-08-18 12:42:46 +00:00
Brett Cannon
88f801d409
Update __all__ for cookielib, csv, os, and urllib2 for objects imported into
...
the module but exposed as part of the API.
2008-08-18 00:46:22 +00:00
Brett Cannon
7b96f07feb
Remove an unneeded import of abc.ABCMeta from 'inspect'.
2008-08-18 00:41:11 +00:00
Brett Cannon
46225e77fa
Remove two unneeded imports in 'io'.
2008-08-18 00:36:52 +00:00
Brett Cannon
25c9d6aa00
Remove imports of 'warnings' that are no longer needed in dummy_thread,
...
filecmp, and shelve.
2008-08-17 22:10:11 +00:00
Hirokazu Yamamoto
41a81eb6cb
Backport r65661, r65760: Issue #3575 : Incremental decoder's decode
...
function now takes bytearray by using 's*' instead of 't#'.
2008-08-17 13:10:46 +00:00
Hirokazu Yamamoto
7f30a684c6
I forgot to update NEWS.
2008-08-17 09:46:56 +00:00
Brett Cannon
047e4a915d
Update distutils so that it triggers no warnings when run under -3.
2008-08-17 04:16:04 +00:00
Facundo Batista
94f243aa41
Issue 2464. Supports a malformation in the URL received
...
in a redirect.
2008-08-17 03:38:39 +00:00
Brett Cannon
721b1457a0
Silence DeprecationWarning raised by mimetools and rfc822 in cgi.
2008-08-16 22:00:27 +00:00
Brett Cannon
0a4128eae2
Silence the DeprecationWarning raised in httplib when mimetools is imported.
2008-08-16 21:56:03 +00:00
Brett Cannon
abe423ed2c
Silence the DeprecationWarning raised by importing mimetools in BaseHTTPServer.
...
This does have an unfortunate side-effect of silencing the warning for all
subsequent code that imports mimetools as well since the warning is only
executed upon the first import of mimetools.
2008-08-16 21:47:07 +00:00
Facundo Batista
eb90b788f4
Issue #2776 : fixed small issue when handling an URL with double slash
...
after a 302 response in the case of not going through a proxy.
2008-08-16 14:44:07 +00:00
Antoine Pitrou
b90a8be96f
#2676 : email/message.py [Message.get_content_type]: Trivial regex hangs on pathological input
2008-08-15 21:03:21 +00:00