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
Neal Norwitz
1077c42869
Add Tarek for work on distutils.
2008-12-21 14:28:32 +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