Benjamin Peterson
596d306950
add a note about the ftruncate change
2009-01-19 15:42:23 +00:00
Jesse Noller
9a5b2ad38d
Resolve issue 3321: (segfault) _multiprocessing.Connection() doesn't check handle
2009-01-19 15:12:22 +00:00
Benjamin Peterson
5848d1ff35
raise an OSError for invalid fds #4991
2009-01-19 00:08:08 +00:00
Jesse Noller
438195fc11
issue 4301: patch logging to add processName, remove the old _check_logger_class code
2009-01-18 21:04:36 +00:00
Jesse Noller
6ab22154dd
Resolve issue 4449: AssertionError in mp_benchmarks.py
2009-01-18 02:45:38 +00:00
Benjamin Peterson
5e5fbb612d
fix inspect.isclass() on instances with a custom __getattr__ #1225107
2009-01-17 22:27:54 +00:00
Amaury Forgeot d'Arc
d25f87ae36
#3997 : zipfiles generated with more than 65536 files could not be opened
...
with other applications.
Reviewed by Martin, will backport to 2.6 and 3.0
2009-01-17 16:40:17 +00:00
Mark Dickinson
a200dd5584
Another typo fix.
2009-01-15 15:17:43 +00:00
Mark Dickinson
e82cdae58f
Issue #4397 . Fix occasional test_socket failure on OS X.
2009-01-15 14:54:37 +00:00
Amaury Forgeot d'Arc
b54447f31c
#1162154 : inspect.getmembers() now skips attributes that raise AttributeError,
...
e.g. a __slots__ attribute which has not been set.
2009-01-13 23:39:22 +00:00
Amaury Forgeot d'Arc
a18392a324
#4807 : Remove a wrong usage of wsprintf in the winreg module
...
("windows sprintf", different than swprintf)
Needed for the windows CE port.
2009-01-13 23:19:08 +00:00
Antoine Pitrou
c2f02216b6
Issue #4935 : The overflow checking code in the expandtabs() method common
...
to str, bytes and bytearray could be optimized away by the compiler, letting
the interpreter segfault instead of raising an error.
2009-01-13 23:13:52 +00:00
Amaury Forgeot d'Arc
a40d573664
#3720 : Interpreter crashes when an evil iterator removes its own next function.
...
Now the slot is filled with a function that always raises.
Will not backport: extensions compiled with 2.6.x would not run on 2.6.0.
2009-01-12 23:36:55 +00:00
Raymond Hettinger
f94d7fa5fb
Issue 1696199: Add collections.Counter().
2009-01-12 22:58:41 +00:00
Kristján Valur Jónsson
c22ab18e91
Misc/NEWS for issue 4293
2009-01-12 09:24:04 +00:00
Kristján Valur Jónsson
6220e41cb1
Update Misc/NEWS for issue 3582
2009-01-12 09:20:34 +00:00
Martin v. Löwis
e3422fae8a
Issue #4893 : Use NT threading on CE.
2009-01-12 08:11:24 +00:00
Martin v. Löwis
1b3bef21b0
Issue #4915 : Port sysmodule to Windows CE.
2009-01-12 07:57:11 +00:00
Martin v. Löwis
eefda27e97
Issue #4895 : Use _strdup on Windows CE.
2009-01-11 09:43:55 +00:00
Martin v. Löwis
b3b7d859b3
Issue #4279 : Fix build of parsermodule under Cygwin.
2009-01-11 09:26:54 +00:00
Matthias Klose
43723e2ad8
- Issue #4861 : ctypes.util.find_library(): Robustify. Fix library detection on
...
biarch systems. Try to rely on ldconfig only, without using objdump and gcc.
2009-01-10 17:00:42 +00:00
Antoine Pitrou
bd4b5f2b87
Add NEWS entry for r68484.
2009-01-10 16:15:24 +00:00
Antoine Pitrou
4c5ecb7cbb
Issue #4074 : Change the criteria for doing a full garbage collection (i.e.
...
collecting the oldest generation) so that allocating lots of objects without
destroying them does not show quadratic performance. Based on a proposal by
Martin von Löwis at http://mail.python.org/pipermail/python-dev/2008-June/080579.html .
2009-01-09 21:40:55 +00:00
Martin v. Löwis
b90304acb9
Issue #4850 : Change COUNT_ALLOCS variables to Py_ssize_t.
2009-01-07 18:40:40 +00:00
Antoine Pitrou
e96d4ea4e2
Issue #1180193 : When importing a module from a .pyc (or .pyo) file with
...
an existing .py counterpart, override the co_filename attributes of all
code objects if the original filename is obsolete (which can happen if the
file has been renamed, moved, or if it is accessed through different paths).
Patch by Ziga Seilnacht and Jean-Paul Calderone.
2009-01-06 18:10:47 +00:00
Antoine Pitrou
f0d2c3f730
Issue #4272 : Add an optional argument to the GzipFile constructor to override the timestamp in the gzip stream.
2009-01-04 21:29:23 +00:00
Mark Dickinson
514d483a7d
Misc/NEWS entry for r68317
2009-01-04 21:25:40 +00:00
Tarek Ziadé
85d6fb5022
fixed #1702551 : distutils sdist was not pruning VCS directories under win32
2009-01-04 00:04:49 +00:00
Georg Brandl
fe427895b5
Manually merge r68095,68186,68187,68188,68190 from 2.6 branch.
2009-01-03 22:03:11 +00:00
Guilherme Polo
e7f140355b
The _tkinter module functions "createfilehandler", "deletefilehandler",
...
"createtimerhandler", "mainloop", "dooneevent" and "quit" have been
deprecated for removal in 3.x (part of issue #3638 ).
2009-01-03 21:51:09 +00:00
Raymond Hettinger
f4d8597a59
Issue 4796: Add from_float methods to the decimal module.
2009-01-03 19:02:23 +00:00
Martin v. Löwis
0fa10b3cd5
Issue #4817 : Remove unused function PyOS_GetLastModificationTime.
2009-01-03 17:19:26 +00:00
Mark Dickinson
c5de0969ca
Issue #4812 : add missing underscore prefix to some internal-use-only
...
constants in the decimal module. (Dec_0 becomes _Dec_0, etc.)
2009-01-02 23:07:08 +00:00
Martin v. Löwis
9ac4927125
Issue #4051 : Prevent conflict of UNICODE macros in cPickle.
2009-01-02 20:40:14 +00:00
Martin v. Löwis
5344c99734
Issue #4075 : Use OutputDebugStringW in Py_FatalError.
2009-01-02 20:32:55 +00:00
Ronald Oussoren
072bb405f3
Fix for issues #841800 and #900506
2009-01-02 15:25:36 +00:00
Ronald Oussoren
abcc168c69
Fix for issue 1149804
2009-01-02 15:00:05 +00:00
Ronald Oussoren
919697cefe
Fix for issue r1737832
2009-01-02 14:52:09 +00:00
Ronald Oussoren
7f8cbf0e73
Fix for issue 1627952
2009-01-02 14:48:17 +00:00
Ronald Oussoren
63b74feb51
Fix for issue 900949
2009-01-02 14:46:19 +00:00
Ronald Oussoren
0238497e93
Fix for issue1594
2009-01-02 14:10:20 +00:00
Ronald Oussoren
f7d5405d57
Forgot to add a NEWS item in my previous checkin
2009-01-02 10:48:31 +00:00
Hirokazu Yamamoto
99a1b20bbf
Issue #4797 : IOError.filename was not set when _fileio.FileIO failed to open
...
file with `str' filename on Windows.
2009-01-01 15:45:39 +00:00
Antoine Pitrou
aa687902f2
Issue #3680 : Reference cycles created through a dict, set or deque iterator did not get collected.
2009-01-01 14:11:22 +00:00
Georg Brandl
6269fec171
#4228 : Pack negative values the same way as 2.4
...
in struct's L format.
2009-01-01 12:15:31 +00:00
Benjamin Peterson
8ad09a4f2e
#4795 inspect.isgeneratorfunction() should return False instead of None
2008-12-31 23:48:39 +00:00
Tarek Ziadé
b1a85413b1
Fixed #4702 : Throwing DistutilsPlatformError instead of IOError under win32 if MSVC is not found
2008-12-30 23:03:41 +00:00
Nick Coghlan
180e400766
Issue #4701 : implicitly call PyType_Ready from PyObject_Hash
2008-12-30 01:18:48 +00:00
Tarek Ziadé
c13acb18bc
fixed #4646 : distutils was choking on empty options arg in the setup function.
2008-12-29 22:23:53 +00:00
Martin v. Löwis
03824e45f6
Issue #1040026 : Fix os.times result on systems where HZ is incorrect.
2008-12-29 18:17:34 +00:00
Benjamin Peterson
7af65568ff
#4764 in io.open, set IOError.filename when trying to open a directory on POSIX platforms
2008-12-29 17:56:58 +00:00
Benjamin Peterson
fe231b07e4
#4764 set IOError.filename when trying to open a directory on POSIX platforms
2008-12-29 17:47:42 +00:00
Martin v. Löwis
732479f50b
Issue #3767 : Convert Tk object to string in tkColorChooser.
2008-12-29 16:22:25 +00:00
Martin v. Löwis
e2eb2b4bc3
Issue #3248 : Allow placing ScrolledText in a PanedWindow.
2008-12-29 15:51:01 +00:00
Benjamin Peterson
fd9633ed36
fix WORD_BIGEDIAN declaration in Universal builds; fixes #4060 and #4728
2008-12-28 15:37:31 +00:00
Antoine Pitrou
697ca3d0cb
Issue #4444 : Allow assertRaises() to be used as a context handler.
2008-12-28 14:09:36 +00:00
Georg Brandl
6425a2fa8f
Backport r67974:
...
#4759 : allow None as first argument of bytearray.translate(), for consistency with bytes.translate().
Also fix segfault for bytearray.translate(x, None) -- will backport this part to 3.0 and 2.6.
2008-12-28 11:54:53 +00:00
Antoine Pitrou
e555f581dc
Issue #4677 : add two list comprehension tests to pybench.
2008-12-27 20:34:52 +00:00
Benjamin Peterson
8d5934b25d
#4748 lambda generators shouldn't return values
2008-12-27 18:24:11 +00:00
Georg Brandl
c3a9803410
Patch #4739 by David Laban: add symbols to pydoc help topics,
...
so that ``help('@')`` works as expected.
2008-12-27 18:20:04 +00:00
Antoine Pitrou
6f193e0e95
Issue #4756 : zipfile.is_zipfile() now supports file-like objects.
...
Patch by Gabriel Genellina.
2008-12-27 15:43:12 +00:00
Alexandre Vassalotti
6067f78ecf
Add Misc/NEWS entry for r67934.
2008-12-27 07:13:01 +00:00
Tarek Ziadé
e4c75bb585
fixed #4400 : distutils .pypirc default generated file was broken.
2008-12-24 19:10:05 +00:00
Benjamin Peterson
54686e3c29
#4736 BufferRWPair.closed shouldn't try to call another property as a function
2008-12-24 15:10:27 +00:00
Skip Montanaro
f205c13fac
As a result of a regression that snuck into 2.5.3 add a test case that
...
ensures that when you try to read from a file opened for writing an IOError
is raised.
2008-12-23 03:30:15 +00:00
Benjamin Peterson
cf2ce24db5
add NEWS note
2008-12-22 20:52:53 +00:00
Antoine Pitrou
73c0e65fc3
Issue #2467 : gc.DEBUG_STATS reports invalid elapsed times.
...
Patch by Neil Schemenauer, very slightly modified.
2008-12-17 22:46:54 +00:00
Mark Dickinson
1a707981c8
Issue #3439 : add bit_length method to int and long.
...
Thanks Fredrik Johansson and Victor Stinner for code,
Raymond Hettinger for review.
2008-12-17 16:14:37 +00:00
Antoine Pitrou
d0c3515bc5
Issue #2183 : Simplify and optimize bytecode for list comprehensions.
2008-12-17 00:38:28 +00:00
Amaury Forgeot d'Arc
3538a3107a
#3632 : the "pyo" macro from gdbinit can now run when the GIL is released.
...
Patch by haypo.
2008-12-15 22:29:14 +00:00
Amaury Forgeot d'Arc
31949b9108
#3954 : Fix error handling code in _hotshot.logreader
...
Will port to 2.6. hotshot was deleted from python 3.
2008-12-15 21:47:57 +00:00
Antoine Pitrou
655fbf1806
Backport r67759 (fix io.IncrementalNewlineDecoder for UTF-16 et al.).
2008-12-14 17:40:51 +00:00
Nick Coghlan
a2053475bb
Fix several issues relating to access to source code inside zipfiles. Initial work by Alexander Belopolsky. See Misc/NEWS in this checkin for details.
2008-12-14 10:54:50 +00:00
Antoine Pitrou
74af3bbfbd
Issue #4163 : Use unicode-friendly word splitting in the textwrap functions when given an unicode string.
2008-12-13 23:12:30 +00:00
Lars Gustäbel
3b02742f7d
Issue #4616 : TarFile.utime(): Restore directory times on Windows.
2008-12-12 13:58:03 +00:00
Mark Dickinson
4c96fa5525
Issues #3167 , #3682 : tests for math.log and math.log10 were failing on
...
Solaris and OpenBSD. Fix this by handling special values and domain
errors directly in mathmodule.c, passing only positive nonspecial floats
to the system log/log10.
2008-12-11 19:28:08 +00:00
Facundo Batista
e29d435e0c
Issue #4084 : Fix max, min, max_mag and min_mag Decimal methods to
...
give correct results in the case where one argument is a quiet NaN
and the other is a finite number that requires rounding.
Thanks Mark Dickinson.
2008-12-11 04:19:46 +00:00
Amaury Forgeot d'Arc
240028cb77
#1030250 : correctly pass the dry_run option to the mkpath() function.
2008-12-11 00:03:42 +00:00
Amaury Forgeot d'Arc
ad9b5992e3
#4559 : When a context manager's __exit__() method returns an object whose
...
conversion to bool raises an exception, 'with' loses that exception.
Reviewed by Jeffrey Yasskin.
Already ported to 2.5, will port to 2.6 and 3.0
2008-12-10 23:22:49 +00:00
Jeffrey Yasskin
ffd42cf444
Update Misc/NEWS for r67666.
2008-12-10 07:35:02 +00:00
Antoine Pitrou
ae5beceb35
Issue #4509 : bugs in bytearray with exports (buffer protocol)
2008-12-06 21:29:24 +00:00
Skip Montanaro
45313fe6e0
issue 4483 - dbm build failures on systems with gdbm_compat lib.
2008-12-06 17:43:30 +00:00
Mark Dickinson
826f3fefe5
Issue #4445 : save 3 bytes (on average, on a typical machine) per
...
string allocation.
2008-12-05 21:55:28 +00:00
Georg Brandl
fe879e8a23
#4529 : fix parser's validation for try-except-finally statements.
2008-12-05 12:09:41 +00:00
Georg Brandl
a07435d3e3
#4458 : recognize "-" as an argument, not a malformed option in gnu_getopt().
2008-12-05 09:23:14 +00:00
Gregory P. Smith
26576801a6
rename the new check_call_output to check_output. its less ugly.
2008-12-05 02:27:01 +00:00
Vinay Sajip
6831d6bc7f
Took Nick Coghlan's advice about importing warnings globally in logging, to avoid the possibility of race conditions: "This could deadlock if a thread spawned as a side effect of importing a module happens to trigger a warning. warnings is pulled into sys.modules as part of the interpreter startup - having a global 'import warnings' shouldn't have any real effect on logging's import time."
2008-12-04 20:32:18 +00:00
Gregory P. Smith
97f49f4be7
Adds a subprocess.check_call_output() function to return the output from a
...
process on success or raise an exception on error.
2008-12-04 20:21:09 +00:00
Fred Drake
5248103ef9
Issue #1055234 : cgi.parse_header(): Fixed parsing of header parameters to
...
support unusual filenames (such as those containing semi-colons) in
Content-Disposition headers.
2008-12-04 18:25:17 +00:00
Vinay Sajip
213faca204
Issue #4384 : Added logging integration with warnings module using captureWarnings(). This change includes a NullHandler which does nothing; it will be of use to library developers who want to avoid the "No handlers could be found for logger XXX" message which can appear if the library user doesn't configure logging.
2008-12-03 23:22:58 +00:00
Raymond Hettinger
7989a4dccb
Backport r67478
2008-12-03 15:42:10 +00:00
Martin v. Löwis
bcb017f353
Issue #4365 : Add crtassem.h constants to the msvcrt module.
2008-11-30 19:28:27 +00:00
Martin v. Löwis
cb6c359a6d
Issue #4389 : Add icon to the uninstall entry in
...
"add-and-remove-programs".
2008-11-30 11:08:26 +00:00
Christian Heimes
aa67471227
Fixed issue ##3741: DISTUTILS_USE_SDK set causes msvc9compiler.py to raise an exception
2008-11-28 11:02:32 +00:00
Benjamin Peterson
9dfe6a8862
#4396 make the parser module correctly validate the with syntax
2008-11-24 04:09:03 +00:00
Amaury Forgeot d'Arc
dc61901dd2
#3996 : On Windows, PyOS_CheckStack is supposed to protect the interpreter from
...
stack overflow. But doing this, it always crashes when the stack is nearly full.
Reviewed by Martin von Loewis. Will backport to 2.6.
2008-11-22 20:01:18 +00:00
Benjamin Peterson
bfc51567f5
backport r67325: make FileIO.mode always contain 'b'
2008-11-22 01:59:15 +00:00
Benjamin Peterson
c078f929cb
don't segfault when \N escapes are used and unicodedata fails to load
...
Fixes #4367
2008-11-21 22:27:24 +00:00
Amaury Forgeot d'Arc
d42941751c
#4363 : Let uuid.uuid1() and uuid.uuid4() run even if the ctypes module is not present.
...
Will backport to 2.6
2008-11-21 22:05:48 +00:00
Amaury Forgeot d'Arc
322656596a
Fixed issue #4233 .
...
Changed semantic of _fileio.FileIO's close() method on file objects with closefd=False.
The file descriptor is still kept open but the file object behaves like a closed file.
The FileIO object also got a new readonly attribute closefd.
Approved by Barry
Backport of r67106 from the py3k branch
2008-11-20 23:34:31 +00:00
Benjamin Peterson
46cc6d1102
make sure that bytearray methods return a new bytearray even if there is no change
...
Fixes #4348
Reviewed by Brett
2008-11-19 21:49:09 +00:00
Martin v. Löwis
6347098a26
Issue #4289 : Remove Cancel button from AdvancedDlg.
2008-11-19 13:51:44 +00:00
Martin v. Löwis
bb9b1f1d4a
Issue #4116 : Resolve member name conflict in ScrolledCanvas.__init__
2008-11-19 09:09:41 +00:00
Amaury Forgeot d'Arc
7cfe7ea745
#4317 : Fix an Array Bounds Read in imageop.rgb2rgb8.
...
Will backport to 2.4.
2008-11-18 22:19:37 +00:00
Benjamin Peterson
273c233c78
when __getattr__ is a descriptor, call it correctly; fixes #4230
...
patch from Ziga Seilnacht
2008-11-17 22:39:09 +00:00
Brett Cannon
e3d0bf740f
The docs for httplib.HTTPConnection.putheader() have claimed for quite a while
...
that their could be an arbitrary number of values passed in. Turns out the code
did not match that. The code now matches the docs.
2008-11-15 22:40:44 +00:00
Martin v. Löwis
3d6f8ff81f
Issue #1656675 : Register a drop handler for .py* files on Windows.
2008-11-07 18:51:50 +00:00
Martin v. Löwis
692c2f8fe6
Issue #4120 : Exclude manifest from extension modules in VS2008.
2008-11-06 16:43:00 +00:00
Martin v. Löwis
bb86d83134
Issue #4204 : Fixed module build errors on FreeBSD 4.
2008-11-04 20:40:09 +00:00
Hirokazu Yamamoto
b9828f67b8
Issue #3774 : Fixed an error when create a Tkinter menu item without command
...
and then remove it. Written by Guilherme Polo (gpolo).
2008-11-03 18:03:06 +00:00
Benjamin Peterson
6624a9fddd
#4048 make the parser module accept relative imports as valid
2008-11-03 15:14:51 +00:00
Benjamin Peterson
dcee09d920
make sure the parser flags and passed onto the compiler
...
This fixes "from __future__ import unicode_literals" in an exec statment
See #4225
2008-10-31 02:16:05 +00:00
Amaury Forgeot d'Arc
69a9c5b539
Issue #4176 : Pickle would crash the interpreter when a __reduce__ function
...
does not return an iterator for the 4th and 5th items.
(sequence-like and mapping-like state)
A list is not an iterator...
Will backport to 2.6 and 2.5.
2008-10-30 21:18:34 +00:00
Thomas Heller
1fac5a4505
Fixed a modulefinder crash on certain relative imports.
2008-10-30 20:18:13 +00:00
Benjamin Peterson
bdca942ffc
fix __future__ imports when multiple features are given
2008-10-26 20:21:13 +00:00
Georg Brandl
7fb00ad1be
Typo fix.
2008-10-25 07:00:52 +00:00
Benjamin Peterson
399b1fe8df
give a py3k warning when 'nonlocal' is used as a variable name
2008-10-25 02:53:28 +00:00
Benjamin Peterson
c18574c98e
fix #4150 : pdb's up command didn't work for generators in post-mortem
2008-10-22 21:16:34 +00:00
Benjamin Peterson
e4dc175474
add NEWs note for last change
2008-10-21 22:20:31 +00:00
Martin v. Löwis
0f3e7697dc
Issue #4091 : Install pythonxy.dll in system32 again.
2008-10-17 13:43:01 +00:00
Amaury Forgeot d'Arc
07d539d08b
#4122 : On Windows, Py_UNICODE_ISSPACE cannot be used in an extension module:
...
compilation fails with "undefined reference to _Py_ascii_whitespace"
Will backport to 2.6.
2008-10-14 21:47:22 +00:00
Martin v. Löwis
eba774b486
Issue #4018 : Disable "for me" installations on Vista.
2008-10-13 11:23:35 +00:00
Hirokazu Yamamoto
10a018c285
On windows, os.chdir given unicode was not working if GetCurrentDirectoryW
...
returned a path longer than MAX_PATH. (But It's doubtful this code path is
really executed because I cannot move to such directory on win2k)
2008-10-09 10:00:30 +00:00
Georg Brandl
f3776a17ef
#3935 : properly support list subclasses in the C impl. of bisect.
...
Patch reviewed by Raymond.
2008-10-08 18:47:17 +00:00
Amaury Forgeot d'Arc
d78b9dcbc3
#4069 : aSet.remove(otherSet) would always report the empty frozenset([]) as the missing key.
...
Now it correctly refers to the initial otherset.
Reviewed by Raymond. Will backport to 2.6.
2008-10-07 20:32:10 +00:00
Brett Cannon
60b15d20f2
Add the 'patchcheck' build target to .PHONY.
...
Re-closes issue 3758. Thanks to Ralph Corderoy for the catch.
2008-10-06 22:44:37 +00:00
Martin v. Löwis
96a9f237c6
Issue #4014 : Don't claim that Python has an Alpha release status, in addition
...
to claiming it is Mature.
2008-10-06 15:15:40 +00:00
Barry Warsaw
12582c9225
Bump to 2.7a0
2008-10-02 03:33:51 +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