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
Jesus Cea
5cd5f12a48
Bugfix for issue3885 and 'DB.verify()' crash.
...
Reviewed by Nick Coghlan.
2008-09-23 18:54:08 +00:00
Hirokazu Yamamoto
09979a137a
Issue #3945 : Fixed compile error on cygwin. (initializer element is not constant)
...
Reviewed by Amaury Forgeot d'Arc.
2008-09-23 16:11:09 +00:00
Georg Brandl
a438c85a88
#3897 : _collections now has an underscore.
2008-09-21 07:31:52 +00:00
Georg Brandl
2f3bd8364a
#3852 : fix some select.kqueue and kevent docs.
2008-09-21 07:14:44 +00:00
Benjamin Peterson
fbb388b39b
tabify
2008-09-18 23:20:28 +00:00
Benjamin Peterson
8c2b7dc463
fix possible integer overflows in _hashopenssl #3886
2008-09-18 01:22:16 +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
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
Jesus Cea
69acb43327
Python3.0 bsddb testsuite compatibility improvements
2008-09-03 22:07:11 +00:00
Jesse Noller
b814d6a704
Fix issue 3110 - solaris compilation of multiprocessing fails, reviewed by pitrou
2008-09-03 18:10:30 +00:00
Jesus Cea
ac25fab12f
Fix some leaks - Neal Norwitz
2008-09-03 17:50:32 +00:00
Jesus Cea
3b6be74304
Improve compatibility with Python3.0 testsuite
2008-09-02 02:29:06 +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
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
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
94a730540a
d is the correct format string
2008-08-22 21:23:47 +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
Guido van Rossum
93ebfb1544
Issue 1179: [CVE-2007-4965] Integer overflow in imageop module.
2008-08-19 21:02:04 +00:00
Thomas Heller
d9ccf8c547
COM method code is windows specific
2008-08-19 19:40:23 +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
Thomas Heller
6626099520
Fix strange character in the docstring.
2008-08-19 17:47:13 +00:00
Benjamin Peterson
7dd854725b
get the symtable module back in working order
...
- Fix broken functions
- Add (hopefully) extensive tests
- Modernize a little
2008-08-17 17:13:26 +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
a0fdd72f8e
Issue #2222 : Fixed reference leak when occured os.rename()
...
fails unicode conversion on 2nd parameter. (windows only)
2008-08-17 09:19:52 +00:00
Martin v. Löwis
8401eec7fa
Properly INCREF reference in Py_buffer.
2008-08-14 15:56:07 +00:00
Martin v. Löwis
f91d46a17d
Issue #3139 : Make buffer-interface thread-safe wrt. PyArg_ParseTuple,
...
by denying s# to parse objects that have a releasebuffer procedure,
and introducing s*.
More module might need to get converted to use s*.
2008-08-12 14:49:50 +00:00
Brett Cannon
83e818415a
Copy reduce() to _functools so to have functools.reduce() not raise a warning
...
from usage under -3.
2008-08-09 23:30:55 +00:00
Antoine Pitrou
016b366df4
#3205 : bz2 iterator fails silently on MemoryError
2008-08-09 17:22:25 +00:00
Guido van Rossum
d69390107a
Patch by Ian Charnas from issue 3517.
...
Add F_FULLFSYNC if it exists (OS X only so far).
2008-08-07 18:51:38 +00:00
Guido van Rossum
8b762f05c7
Tracker issue 3487: sre "bytecode" verifier.
...
This is a verifier for the binary code used by the _sre module (this
is often called bytecode, though to distinguish it from Python bytecode
I put it in quotes).
I wrote this for Google App Engine, and am making the patch available as
open source under the Apache 2 license. Below are the copyright
statement and license, for completeness.
# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
It's not necessary to include these copyrights and bytecode in the
source file. Google has signed a contributor's agreement with the PSF
already.
2008-08-05 03:39:21 +00:00
Benjamin Peterson
8df0e4ffc3
fix compile error on Windows
2008-08-02 03:11:16 +00:00
Jesse Noller
1299e36a70
Submit fix for issue3393: Memory corruption in multiprocessing module
2008-08-01 19:46:50 +00:00
Neal Norwitz
e7d8be80ba
Security patches from Apple: prevent int overflow when allocating memory
2008-07-31 17:17:14 +00:00
Mark Dickinson
ff3fdce0d2
Replace math.sum with math.fsum in a couple of comments
...
that were missed by r65308
2008-07-30 16:25:16 +00:00
Mark Dickinson
fef6b13c32
Rename math.sum to math.fsum
2008-07-30 16:20:10 +00:00
Mark Dickinson
abe0aee3cf
Fix special-value handling for math.sum.
...
Also minor cleanups to the code: fix tabbing, remove
trailing whitespace, and reformat to fit into 80
columns.
2008-07-30 12:01:41 +00:00
Thomas Heller
ba55936b8a
Make ctypes compatible with Python 2.3, 2.4, and 2.5 again.
2008-07-24 11:16:45 +00:00
Raymond Hettinger
527eee2b32
Finish conversion from int to Py_ssize_t.
2008-07-24 05:38:48 +00:00
Raymond Hettinger
723ba3049a
Parse to the correct datatype.
2008-07-24 00:53:49 +00:00
Raymond Hettinger
33fcf9db74
Finish-up the partial conversion from int to Py_ssize_t for deque indices and length.
2008-07-24 00:08:18 +00:00
Georg Brandl
f9efabb6d2
3k-warn about parser's "ast" aliases.
2008-07-23 15:16:45 +00:00