Michael Foord
cb66ee7f56
Issue 17502: unittest discovery should use self.testLoader
2013-02-10 23:59:46 +00:00
Serhiy Storchaka
65d56390bb
Issue #17141 : random.vonmisesvariate() no more hangs for large kappas.
2013-02-10 19:27:37 +02:00
Mark Dickinson
9aaeb5e0c8
Issue #17149 : Fix random.vonmisesvariate to always return results in [0, 2*math.pi].
2013-02-10 14:13:40 +00:00
Serhiy Storchaka
f898038ca0
Issue #1470548 : XMLGenerator now works with UTF-16 and UTF-32 encodings.
2013-02-10 14:26:08 +02:00
Serhiy Storchaka
0dd3d309ab
Issue #6975 : os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms.
2013-02-10 12:21:49 +02:00
Serhiy Storchaka
15ea3ac67a
Issue #17156 : pygettext.py now correctly escapes non-ascii characters.
2013-02-09 22:36:22 +02:00
Raymond Hettinger
4234992c75
Keep IDLE from displaying spurious SystemExit tracebacks
...
when running scripts that terminated by raising SystemExit
(i.e. unittest and turtledemo).
2013-02-09 14:20:55 -05:00
R David Murray
a5e7f8f8e0
#16564 : test to confirm behavior that regressed in python3.
...
Also add running of test_email_renamed to the email regrtest. It contains
tests that the base email/tests/test_email.py does not, which I discovered
while trying to backport this test for confirmation of the behavior.
2013-02-09 12:53:29 -05:00
Serhiy Storchaka
276f1d5139
Issue #7358 : cStringIO.StringIO now supports writing to and reading from
...
a stream larger than 2 GiB on 64-bit systems.
2013-02-09 13:47:43 +02:00
Serhiy Storchaka
beaa3adae9
Issue #10355 : SpooledTemporaryFile properties and xreadline method now work for unrolled files.
2013-02-09 12:20:18 +02:00
Serhiy Storchaka
62e709c52b
Issue #16686 : Fixed a lot of bugs in audioop module.
...
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:10:30 +02:00
Ned Deily
ed1e4382c4
Issue #17161 : make install now also installs a python2 and python man page.
2013-02-08 22:51:52 -08:00
Serhiy Storchaka
c12dcd2e4d
Fix accidental non-breakable space (U+00A0).
2013-02-08 11:21:32 +02:00
Serhiy Storchaka
35c52b687f
Issue #17073 : Fix some integer overflows in sqlite3 module.
2013-02-07 16:59:34 +02:00
Serhiy Storchaka
d5327d95d2
Issue #17043 : The unicode-internal decoder no longer read past the end of
...
input buffer.
2013-02-07 16:23:11 +02:00
Serhiy Storchaka
a07a8b4f18
Issue #6083 : Fix multiple segmentation faults occured when PyArg_ParseTuple
...
parses nested mutating sequence.
2013-02-04 12:45:46 +02:00
Benjamin Peterson
f727c31133
fix find_library on Solaris ( closes #5289 )
2013-02-03 19:25:11 -05:00
Éric Araujo
3e081c73b8
Add alias to restore 2.7.2 compatibility for setup scripts ( #13994 ).
...
The customize_compiler function moved many times during the 2.7 series;
in 2.7.3, setup scripts importing this function from ccompiler were
broken. This commit restores compatibility without reintroducing the
issue that #13994 originally fixed (duplication of the function).
A unit test makes little sense here, as distutils tests never do imports
in functions, and the fix is very simple.
2013-02-03 11:41:19 -05:00
Serhiy Storchaka
354d50ee37
Issue #17106 : Fix a segmentation fault in io.TextIOWrapper when an underlying
...
stream or a decoder produces data of an unexpected type (i.e. when
io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
2013-02-03 17:10:42 +02:00
Ned Deily
cc23cc672f
Issue #16698 : Skip posix test_getgroups when built with OS X
...
deployment target prior to 10.6.
2013-02-02 15:06:45 -08:00
Antoine Pitrou
d66c0ee76e
Issue #15633 : httplib.HTTPResponse is now mark closed when the server sends less than the advertised Content-Length.
2013-02-02 22:49:34 +01:00
Nadeem Vawda
1efd9824d8
Back out fix for issue #13886 ; it introduced a new bug in interactive readline use.
2013-02-02 20:52:54 +01:00
Benjamin Peterson
eff492f4b7
Issue #15881 : Fixed atexit hook in multiprocessing.
2013-02-02 11:15:50 -05:00
Gregory P. Smith
a5df290e06
Update the embedded copy of the expat XML parser to 2.1.0. It brings
...
with it a vareity of bug fixes, both security and behavior. See
http://www.libexpat.org/ for the list.
NOTE: I already backported the expat hash randomization fix in March.
Fixes issue #14340 .
2012-07-14 14:12:35 -07:00
Serhiy Storchaka
07fbf60cc8
Merge heads
2013-02-02 10:36:43 +02:00
Serhiy Storchaka
8673ab97cc
Issue #11159 : SAX parser now supports unicode file names.
2013-02-02 10:28:30 +02:00
Ned Deily
7045f0579b
Issue #15116 : Remove references to appscript as it is no longer being
...
supported.
2013-02-02 00:14:44 -08:00
Ned Deily
6e7da15279
Issue #15587 : Enable Tk high-resolution text rendering on Macs with
...
Retina displays. Applies to Tkinter apps, such as IDLE, on OS X
framework builds linked with Cocoa Tk 8.5+.
Suggested by Kevin Walzer
2013-02-01 23:10:56 -08:00
Ned Deily
acf7b95219
Issue #16256 : OS X installer now sets correct permissions for doc directory.
2013-02-01 13:58:00 -08:00
Gregory P. Smith
a06ad5b366
better news entry
2013-02-01 13:07:27 -08:00
Gregory P. Smith
a998ad0135
Additional fix for Issue #12268 : The io module file object writelines() methods
...
no longer abort early when one of its write system calls is interrupted (EINTR).
2013-02-01 13:02:59 -08:00
Gregory P. Smith
608cc451c7
Fixes Issue #6972 : The zipfile module no longer overwrites files outside of
...
its destination path when extracting malicious zip files.
2013-02-01 11:40:18 -08:00
doko@python.org
d65e2bab3b
- Issue #17086 : Backport the patches from the 3.3 branch to cross-build
...
the package.
2013-01-31 23:52:03 +01:00
Serhiy Storchaka
8d510cd6e1
Issue #17049 : Localized calendar methods now return unicode if a locale
...
includes an encoding and the result string contains month or weekday (was
regression from Python 2.6).
2013-01-31 15:57:51 +02:00
Serhiy Storchaka
0be506a5ba
Issue #4844 : ZipFile now raises BadZipfile when opens a ZIP file with an
...
incomplete "End of Central Directory" record. Original patch by Guilherme
Polo and Alan McIntyre.
2013-01-31 15:26:55 +02:00
Ned Deily
18fae3f954
Issue #13590 : OS X Xcode 4 - improve support for universal extension modules
...
In particular, fix extension module build failures when trying to use
32-bit-only installer Pythons on systems with Xcode 4 (currently
OS X 10.8, 10.7, and optionally 10.6).
* Backport 3.3.0 fixes to 2.7 branch (for release in 2.7.4)
* Since Xcode 4 removes ppc support, extension module builds now
check for ppc compiler support and by default remove ppc and
ppc64 archs when they are not available.
* Extension module builds now revert to using system installed
headers and libs (/usr and /System/Library) if the SDK used
to build the interpreter is not installed or has moved.
* Try to avoid building extension modules with deprecated
and problematic Apple llvm-gcc compiler. If original compiler
is not available, use clang instead by default.
2013-01-31 01:24:55 -08:00
Michael Foord
77cd8aab23
Issue 15505. unittest.installHandler and non callable signal handlers
2013-01-29 22:59:02 +00:00
Serhiy Storchaka
64cca12622
Move NEWS entity from library to core section.
2013-01-29 12:04:55 +02:00
Serhiy Storchaka
c8e58126a2
Issue #16979 : Fix error handling bugs in the unicode-escape-decode decoder.
2013-01-29 10:20:34 +02:00
Serhiy Storchaka
46f5b35bc0
Issue #17051 : Fix a memory leak in os.path.isdir() on Windows. Patch by Robert Xiao.
2013-01-28 20:19:50 +02:00
Serhiy Storchaka
72121c6c30
- Issue #17041 : Fix testing when Python is configured with the
...
--without-doc-strings option.
2013-01-27 19:45:49 +02:00
Nadeem Vawda
221508cdef
Issue #13886 : Fix input() to not strip out supposedly-invalid input bytes.
2013-01-27 14:21:26 +01:00
Serhiy Storchaka
c59c85c1ac
Issue #10156 : In the interpreter's initialization phase, unicode globals
...
are now initialized dynamically as needed.
2013-01-26 12:13:40 +02:00
Serhiy Storchaka
01b3a08f5e
Issue #16975 : Fix error handling bug in the escape-decode decoder.
2013-01-25 23:30:50 +02:00
Ronald Oussoren
1c60c7ac4c
Issue #1602133 : 'environ' is not really available with shared libraries on OSX
...
There already was a workaround for this for framework builds on OSX,
this changeset enables the same workaround for shared libraries.
Closes #1602133
2013-01-25 17:55:39 +01:00
doko@python.org
fa3f9a38b2
- Issue #3754 : fix typo in pthread AC_CACHE_VAL.
2013-01-25 15:32:31 +01:00
Serhiy Storchaka
9abc830c6a
Issue #9290 : In IDLE the sys.std* streams now implement io.TextIOBase
...
interface and support all mandatory methods and properties.
2013-01-25 15:30:35 +02:00
doko@python.org
4e63fbe04d
- Issue #17029 : Let h2py search the multiarch system include directory.
2013-01-25 13:08:27 +01:00
Serhiy Storchaka
b09ec9b618
Issue #13454 : Fix a crash when deleting an iterator created by itertools.tee()
...
if all other iterators were very advanced before.
2013-01-25 13:31:05 +02:00
Serhiy Storchaka
353e54edc4
Issue #1159051 : GzipFile now raises EOFError when reading a corrupted file
...
with truncated header or footer.
Added tests for reading truncated gzip and bzip2 files.
2013-01-22 17:13:26 +02:00
Ezio Melotti
302ad8d126
Fix a few typos in Misc/NEWS.
2013-01-19 19:44:58 +02:00
Charles-François Natali
a41cf29c0b
Issue #16953 : Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
...
Patch by Jeffrey Armstrong.
2013-01-19 12:15:56 +01:00
Benjamin Peterson
08e153ae37
check windows fd validity ( closes #16992 )
2013-01-18 00:10:24 -05:00
Serhiy Storchaka
e39ba04e22
Issue #15861 : tkinter now correctly works with lists and tuples containing
...
strings with whitespaces, backslashes or unbalanced braces.
2013-01-15 18:01:21 +02:00
Serhiy Storchaka
9599745e2c
Issue #14850 : Now a chamap decoder treates U+FFFE as "undefined mapping"
...
in any mapping, not only in an unicode string.
2013-01-15 14:42:59 +02:00
Richard Oudkerk
90b5d9288d
Issue #10527 : Use poll() instead of select() for multiprocessing pipes
2013-01-14 23:09:14 +00:00
Serhiy Storchaka
80a9fd77a0
Issue #9720 : zipfile now writes correct local headers for files larger than 4 GiB.
2013-01-15 00:29:51 +02:00
Serhiy Storchaka
eebcb5f790
Issue #16829 : IDLE printing no longer fails if there are spaces or other
...
special characters in the file path.
2013-01-12 18:12:27 +02:00
Raymond Hettinger
2cdb6435d6
Issue #16398 : Optimize deque.rotate()
2013-01-12 00:05:00 -08:00
Serhiy Storchaka
8cd7f82024
Issue #15539 : Fix a number of bugs in Tools/scripts/pindent.py.
...
Now pindent.py works with a "with" statement. pindent.py no longer produces
improper indentation. pindent.py now works with continued lines broken after
"class" or "def" keywords and with continuations at the start of line. Added
regression tests for pindent.py. Modernized pindent.py.
2013-01-11 11:59:59 +02:00
Ezio Melotti
5c4e32b131
#13899 : \A, \Z, and \B now correctly match the A, Z, and B literals when used inside character classes (e.g. [A]). Patch by Matthew Barnett.
2013-01-11 08:32:01 +02:00
R David Murray
32851d61f2
#15109 : revert '%'->'format' changes in 4b105d328fe7 to fix regression.
...
With '%', non-ascii worked because the '%' automatically got promoted to
unicode. With format that doesn't happen, which led to encoding errors. This
fix goes back to using %, and adds a test to make sure non-ascii string values
work in iterdump.
2013-01-10 21:10:40 -05:00
R David Murray
d618684d65
#15545 : sort iterdump via SQL instead of in python code
...
Although there is not a regression in Python2, we make the same update here to
keep the code bases in sync.
(The fix for issue 9750 introduced a regression in Python 3 by sorting the row
objects returned by fetchall. But if a row_factory such as sqlite3.Row is
used, the rows may not be sortable (in Python3), which leads to an exception.
The sorting is still a nice idea, so the patch moves the sort into the sql.)
Fix and test by Peter Otten.
2013-01-10 11:30:51 -05:00
Ned Deily
ec8f8f7959
Issue #15782 : Prevent compile errors of OS X Carbon modules _Fm, _Qd, and
...
_Qdoffs when compiling with an SDK of 10.7 or later. The OS X APIs they
wrap have long been deprecated and have now been removed with 10.7.
These modules were already empty for 64-bit builds and have been removed
in Python 3. (Original patch by Ronald Oussoren.)
2013-01-09 22:04:35 -08:00
Serhiy Storchaka
c4b82c037e
Issue #11461 : Fix the incremental UTF-16 decoder. Original patch by
...
Amaury Forgeot d'Arc. Added tests for partial decoding of non-BMP
characters.
2013-01-08 23:12:00 +02:00
Charles-François Natali
be2b907ce2
Issue #16836 : Enable IPv6 support even if IPv6 is disabled on the build host.
2013-01-08 19:47:00 +01:00
Ezio Melotti
58abc5bcd7
#13094 : add Programming FAQ entry about the behavior of closures.
2013-01-05 00:49:48 +02:00
Victor Stinner
23a32ba0e5
Issue #16367 : Fix FileIO.readall() on Windows for files larger than 2 GB
2013-01-03 03:33:21 +01:00
Nadeem Vawda
895cc22b8b
Issue #16828 : Fix error incorrectly raised by bz2.compress('').
...
Patch by Martin Packman.
2013-01-02 22:59:51 +01:00
Benjamin Peterson
a708adfcf6
call PyErr_Clear() when ignoring error from PyNumber_Int ( closes #15516 )
...
Patch from Tom Tromey.
2013-01-02 12:21:32 -06:00
Benjamin Peterson
140794d6e7
merge heads
2013-01-02 09:37:33 -06:00
Benjamin Peterson
6b3f8d375b
ensure the attribute name string is initalized before using it ( closes #16839 )
2013-01-02 09:36:23 -06:00
Serhiy Storchaka
dbaac37a5f
Fix incorrect grammar in Misc/NEWS.
2013-01-02 11:56:58 +02:00
Serhiy Storchaka
14224420d0
Issue #16819 : IDLE method completion now correctly works for unicode literals.
2013-01-01 22:27:45 +02:00
Richard Oudkerk
7450a81970
Issue #9586 : Redefine SEM_FAILED on MacOSX to keep compiler happy.
2013-01-01 17:25:09 +00:00
Ned Deily
10e93a6d40
Issue #14958 : backport to 2.7.x from 3.3 (patch by Roger Serwy)
2012-12-31 15:06:38 -08:00
Giampaolo Rodola'
cef2006eaf
Fix issue 10527: make multiprocessing use poll() instead of select() if available.
2012-12-31 17:23:09 +01:00
Serhiy Storchaka
4ed797efbc
Issue #16485 : Fix file descriptor not being closed if file header patching fails on closing of aifc file.
2012-12-29 22:25:59 +02:00
Antoine Pitrou
40f12ab0c5
Backport Python 3.2 fix for issue #12065 , and add another test for SSLSocket.connect_ex().
2012-12-28 19:03:43 +01:00
Serhiy Storchaka
cf095f8e0f
Issue #16761 : Raise TypeError when int() or long() called with base argument only.
2012-12-28 09:31:59 +02:00
Chris Jerdonek
3684c79e00
Issue #15324 : Fix regrtest parsing of --fromfile and --randomize options.
2012-12-27 18:14:01 -08:00
Brian Curtin
33e05e7905
Fix #16759 . Convert DWORD registry values using unsigned long.
...
When converting REG_DWORD registry values into Python, the conversion
needs to be made from an *unsigned* long (k instead of i) to match the
DWORD type.
2012-12-27 14:37:06 -06:00
Serhiy Storchaka
a0b7e9c74c
Null merge.
2012-12-27 22:00:12 +02:00
Serhiy Storchaka
61006a2113
Issue #16504 : Catch SyntaxErrors raised by tokenizer in IDLE.
2012-12-27 21:34:23 +02:00
Brian Curtin
0e091b0365
Fix #14420 . Check for PyLong as well as PyInt when converting in Py2Reg.
...
This fixes a ValueError seen in winreg.SetValueEx when passed long
winreg.REG_DWORD values that should be supported by the underlying API.
2012-12-27 12:28:51 -06:00
Hynek Schlawack
4a5a4c2808
#16618 : Add more glob regression tests
...
Mostly about symlinks and str/unicode behavior.
Patch by Serhiy Storchaka.
2012-12-27 10:24:21 +01:00
Senthil Kumaran
2f01e239cb
Issue #16702 : Skip proxies for localhost in urllib2_localnet tests
2012-12-26 01:45:22 -08:00
Senthil Kumaran
1974baadc6
Fix issue16713 - tel url parsing with params
2012-12-24 13:56:54 -08:00
Mark Dickinson
9fade768c8
Issue #13863 : fix incorrect .pyc timestamps on Windows / NTFS (apparently due to buggy fstat)
2012-12-24 16:33:18 +00:00
Andrew Svetlov
1c6c90fc73
Issue #16443 : Add docstrings to regular expression match objects.
...
Patch by Anton Kasyanov.
2012-12-23 20:09:01 +02:00
Senthil Kumaran
f8a6b005fd
Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to return headers correctly
2012-12-23 09:00:47 -08:00
Petri Lehtinen
ab7dd183f3
#8853 : Allow port to be of type long for socket.getaddrinfo()
2012-12-20 21:09:56 +02:00
Benjamin Peterson
92014420d7
add news note ( #16597 )
2012-12-20 12:55:52 -06:00
Giampaolo Rodola'
c2a8169aa3
Fix issue #16646 : ftplib.FTP.makeport() might lose socket error details. (patch by Serhiy Storchaka)
2012-12-17 14:30:48 +01:00
Brian Curtin
bc453ca81d
Fix #14901 . Update some sections of Windows FAQ.
...
Patch by Ashish Nitin Patil.
2012-12-17 00:17:49 -06:00
Antoine Pitrou
124ee8b1ab
Issue #16626 : Fix infinite recursion in glob.glob() on Windows when the pattern contains a wildcard in the drive or UNC path.
...
Patch by Serhiy Storchaka.
2012-12-16 13:55:47 +01:00
Hynek Schlawack
646c7b5086
#16664 : Add regression tests for glob's behaviour concerning "."-entries
...
Patch by Sebastian Kreft.
2012-12-16 12:30:57 +01:00
Antoine Pitrou
4113d2bd36
Issue #16298 : In HTTPResponse.read(), close the socket when there is no Content-Length and the incoming stream is finished.
...
Patch by Eran Rundstein.
2012-12-15 19:11:54 +01:00
Antoine Pitrou
7dddec4e9d
Issue #16248 : Disable code execution from the user's home directory by tkinter when the -E flag is passed to Python.
...
Patch by Zachary Ware.
2012-12-09 14:46:18 +01:00
Éric Araujo
367efc254d
Branch merge
2012-12-08 22:45:09 -05:00
Éric Araujo
2320fa08a8
Fix setup.py register failure with invalid rst in description ( #13614 ).
...
Original patch by Julien Courteau and Pierre Paul Lefebvre.
2012-12-08 22:26:57 -05:00
Antoine Pitrou
d38c990bb7
Issue #16602 : When a weakref's target was part of a long deallocation chain, the object could remain reachable through its weakref even though its refcount had dropped to zero.
...
Thanks to Eugene Toder for diagnosing and reporting the issue.
2012-12-08 21:15:26 +01:00
Antoine Pitrou
8eeda72742
Issue #16628 : Fix a memory leak in ctypes.resize().
2012-12-08 11:05:50 +01:00
Jesus Cea
7ddd9c21da
Closes #16588 : Silence unused-but-set warnings in Python/thread_pthread.h
2012-12-05 14:41:11 +01:00
Victor Stinner
8c7c697e49
Issue #15747 : skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
...
This is necessary for ZFS systems, which don't support UF_IMMUTABLE.
--
Kubilay Kocak (koobs) asked me on IRC to backport this fix to Python 2.7: done!
2012-12-04 10:07:16 +01:00
Antoine Pitrou
b83575b0a5
Issue #10182 : The re module doesn't truncate indices to 32 bits anymore.
...
Patch by Serhiy Storchaka.
2012-12-02 12:52:36 +01:00
Chris Jerdonek
8da8268b1f
Backport from 3.2: improve argument/parameter documentation (issue #15990 ).
...
The corresponding 3.x commits are 69d5d834c5cb, 40fd26a4206b, and
74d8a2a20c52.
2012-11-29 19:03:37 -08:00
Benjamin Peterson
256aaf7b47
add changelog
2012-11-29 10:57:01 -05:00
Ezio Melotti
def6ee5979
#16476 : Fix json.tool to avoid including trailing whitespace.
2012-11-29 02:22:49 +02:00
Ezio Melotti
d8feba904c
#16549 : Add tests for json.tools. Initial patch by Berker Peksag and Serhiy Storchaka.
2012-11-29 02:14:52 +02:00
Gregory P. Smith
0d68ab3f48
Plug a leak in timemodule. The module dictionary is saved during
...
initialization. If the interpreter is shut down and reinitialized (embedded
CPython), the old module dictionary was not dec-refed during the next import of
the time extension module.
Contributed by Torsten Marek of Google.
2012-11-27 10:19:29 -08:00
Ezio Melotti
282d331ec7
#16559 : Add more tests for the json module. Patch by Serhiy Storchaka.
2012-11-26 19:22:58 +02:00
Mark Dickinson
b1cc6aa2df
Issue #9011 : AST creation no longer modifies CST for negated numeric literals.
2012-11-25 17:11:33 +00:00
Antoine Pitrou
b83ea144cc
Issue #1160 : Fix compiling large regular expressions on UCS2 builds.
...
Patch by Serhiy Storchaka.
2012-11-20 22:30:42 +01:00
Ezio Melotti
db5947f0f3
#16306 : Fix multiple error messages when unknown command line parameters where passed to the interpreter. Patch by Hieu Nguyen.
2012-11-18 13:46:38 +02:00
Ezio Melotti
9e94972eed
#14313 : zipfile now raises NotImplementedError when the compression type is unknown.
2012-11-18 13:18:06 +02:00
Antoine Pitrou
02512fb1cf
Issue #16408 : Fix file descriptors not being closed in error conditions in the zipfile module.
...
Patch by Serhiy Storchaka.
2012-11-17 23:56:53 +01:00
Antoine Pitrou
e3ae321222
Issue #15379 : Fix passing of non-BMP characters as integers for the charmap decoder (already working as unicode strings).
...
Patch by Serhiy Storchaka.
2012-11-17 21:14:58 +01:00
Jesus Cea
f34e4de3f5
Closes #16461 : Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz.
2012-11-17 03:38:17 +01:00
Chris Jerdonek
080123119d
Backport from 3.2: update PyPI docs regarding listing versions (issue #16400 ).
2012-11-14 12:36:53 -08:00
Antoine Pitrou
b704eab599
Issue #16453 : Fix equality testing of dead weakref objects.
...
Also add tests for hashing.
2012-11-11 19:36:51 +01:00
Nadeem Vawda
04050b80b1
Issue #15677 : Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
...
Patch by Brian Brazil.
2012-11-11 13:52:10 +01:00
Gregory P. Smith
9d3b6e9822
Fixes issue #16327 : The subprocess module no longer leaks file descriptors
...
used for stdin/stdout/stderr pipes to the child when fork() fails.
2012-11-10 22:49:03 -08:00
Gregory P. Smith
f2705aebb0
Fixes issue #14396 : Handle the odd rare case of waitpid returning 0
...
when not expected in subprocess.Popen.wait().
2012-11-10 21:13:20 -08:00
Gregory P. Smith
c1ce93a4ab
Fixes issue #9535 : Fix pending signals that have been received but not yet
...
handled by Python to not persist after os.fork() in the child process.
2012-11-10 20:38:17 -08:00
Nadeem Vawda
3c30970d29
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
...
Patch by Serhiy Storchaka.
2012-11-11 03:14:56 +01:00
Nadeem Vawda
252f4dc6c9
Issue #16350 , part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().
...
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).
Patch by Serhiy Storchaka.
2012-11-11 02:14:15 +01:00
Chris Withers
2cc0b07a4c
Bug #16441 : avoid excessive memory usage working with large gzip files
2012-11-09 15:48:17 +00:00
Ezio Melotti
dc118790de
#13301 : use ast.literal_eval() instead of eval() in Tools/i18n/msgfmt.py. Patch by Serhiy Storchaka.
2012-11-09 11:46:19 +01:00
Hynek Schlawack
b271b3e188
Issue #15001 : fix segfault on "del sys.modules['__main__']"
...
Patch by Victor Stinner.
2012-11-07 09:41:28 +01:00
Nadeem Vawda
6cad3712b3
Issue #16350 : Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
...
Patch by Serhiy Storchaka.
2012-11-05 00:55:06 +01:00
Ezio Melotti
751a50fadc
Fix typo.
2012-11-05 00:06:50 +02:00
Ezio Melotti
c18cc0edff
#5057 : the peepholer no longer optimizes subscription on unicode literals (e.g. u"foo"[0]) in order to produce compatible pyc files between narrow and wide builds.
2012-11-05 00:03:21 +02:00
Ezio Melotti
50bc66a983
Fix a couple typos in Misc/NEWS.
2012-11-03 21:29:08 +02:00
Ezio Melotti
67dc4a87fc
#8401 : assigning an int to a bytearray slice (e.g. b[3:4] = 5) now raises an error.
2012-11-03 21:10:45 +02:00
Ezio Melotti
ef3173877c
#12759 : sre_parse now raises a proper error when the name of the group is missing. Initial patch by Serhiy Storchaka.
2012-11-03 20:31:12 +02:00
Ezio Melotti
7d24b1698a
#16152 : fix tokenize to ignore whitespace at the end of the code when no newline is found. Patch by Ned Batchelder.
2012-11-03 17:30:51 +02:00
Andrew Svetlov
5018db76aa
Issue #1207589 : Add Cut/Copy/Paste items to IDLE right click Context Menu
...
Patch by Todd Rovito.
2012-11-01 22:39:14 +02:00
Antoine Pitrou
0552fc2b8a
Issue #16230 : Fix a crash in select.select() when one the lists changes size while iterated on.
...
Patch by Serhiy Storchaka.
2012-11-01 20:13:54 +01:00
Antoine Pitrou
e9e35c3f6b
Issue #16228 : Fix a crash in the json module where a list changes size while it is being encoded.
...
Patch by Serhiy Storchaka.
2012-11-01 20:07:40 +01:00
Benjamin Peterson
c40ddae84c
fix spelling
2012-10-31 14:16:09 -04:00
Benjamin Peterson
0ec820fc5f
only fast-path fromkeys() when the constructor returns a empty dict ( closes #16345 )
2012-10-31 14:05:55 -04:00
Jesus Cea
bdf1b9e267
Closes #16369 : Global PyTypeObjects not initialized with PyType_Ready(...). DOCUMENT IT!
2012-10-31 17:00:19 +01:00
Petri Lehtinen
5c89c19eae
#14897 : Enhance error messages of struct.pack and struct.pack_into
...
Patch by Matti Mäki.
2012-10-29 21:20:19 +02:00
Mark Dickinson
75d3600466
Issue #14700 : Fix buggy overflow checks for large precision and width in new-style and old-style formatting.
2012-10-28 10:00:46 +00:00
Ezio Melotti
3d072066c7
#8040 : add a version switcher to the documentation. Patch by Yury Selivanov.
2012-10-27 22:04:56 +03:00
R David Murray
54eed2e36d
#12890 : don't emit <p> tags in text mode when logdir specified.
...
Patch by Jeff McNeil.
2012-10-27 14:42:36 -04:00
Trent Nelson
e9992292be
Issue #16274 : Fix test_asyncore on Solaris.
2012-10-26 22:21:46 -04:00
Petri Lehtinen
9ad6a563a7
#15040 : Close files in mailbox tests for PyPy compatibility
...
Original patch by Matti Picus.
2012-10-23 14:42:13 +03:00
Nadeem Vawda
45dba1da32
Issue #14398 : Fix size truncation and overflow bugs in bz2 module.
2012-10-21 23:09:08 +02:00
Nadeem Vawda
dd72b3f6b7
Issue #5148 : Ignore 'U' in mode given to gzip.open() and gzip.GzipFile().
2012-10-21 18:15:05 +02:00
Antoine Pitrou
e97a24d06a
Issue #16220 : wsgiref now always calls close() on an iterable response.
...
Patch by Brent Tubbs.
2012-10-21 14:09:05 +02:00
Nick Coghlan
b48c028ca7
Issue #6074 : Restore the long-broken support for running with read-only source files on Windows
2012-10-19 21:58:18 +10:00
Gregory P. Smith
99716166b1
Fixes Issue #12268 for the io module - File readline, readlines and
...
read or readall methods no longer lose data when an underlying read
system call is interrupted within an io module object. IOError is no
longer raised due to a read system call returning EINTR from within
these methods.
This is a backport of changeset 781b95159954 from 3.2.
The earlier 2.7 changeset 67dc99a989cd already fixed this for the
builtin python 2.x file object.
2012-10-12 13:02:06 -07:00
Brian Curtin
c1924ab729
Fix #16176 . Properly identify Windows 8 via platform.platform()
...
Add handling of the 6.2 release line, aka Windows 8 and Windows 2012 Server.
2012-10-11 16:16:50 -05:00
Chris Jerdonek
1906c0c992
Issue #16115 : Backport subprocess.Popen() documentation improvements from 3.2.
2012-10-08 23:18:17 -07:00
Chris Jerdonek
ad4b000179
Issue #14783 : Backport changes from 3.2.
2012-10-07 20:37:54 -07:00
Jesus Cea
3e94e14a68
Backed out changeset 5abacebec9d2
2012-10-04 15:06:57 +02:00
Jesus Cea
82a3924122
Backed out changeset c73b90b6dadd
2012-10-04 14:22:16 +02:00
Jesus Cea
95038fa526
Closes #16112 : platform.architecture does not correctly escape argument to /usr/bin/file
2012-10-04 13:46:33 +02:00
Jesus Cea
e884be67bd
Closes #15897 : zipimport.c doesn't check return value of fseek()
2012-10-03 02:13:05 +02:00
Ezio Melotti
31a9e83d7d
#15979 : improve timeit documentation.
2012-10-02 05:34:38 +03:00
Chris Jerdonek
71d74b0c4e
Close #16036 : Backport 3.x documentation improvement.
...
See changeset 6ccb04c4cbae for the corresponding 3.3 change.
2012-09-30 21:07:56 -07:00
Ezio Melotti
c820de5e60
#15923 : fix a mistake in asdl_c.py that resulted in a TypeError after 2801bf875a24 (see #15801 ).
2012-09-30 22:41:37 +03:00
Gregory P. Smith
0798cbc1df
Issue #15756 : subprocess.poll() now properly handles errno.ECHILD to
...
return a returncode of 0 when the child has already exited or cannot
be waited on.
2012-09-29 12:02:48 -07:00
Mark Dickinson
218a8ab5eb
Issues #16029 , #16030 : Fix pickling and repr of large xranges.
2012-09-28 20:36:36 +01:00
Michael Foord
bf2ad34650
Pass on parameters in unittest.TextTestResult.__init__ super call
2012-09-28 12:54:56 +01:00
Petri Lehtinen
a4fd0dc574
#15222 : Insert blank line after each message in mbox mailboxes
2012-09-25 22:01:23 +03:00
Barry Warsaw
0dea936e78
- Issue #15935 : Clarification of argparse docs, re: add_argument() type and
...
default arguments. Patch contributed by Chris Jerdonek.
2012-09-25 10:32:53 -04:00
Christian Heimes
671138f27d
Issue #16037 : Limit httplib's _read_status() function to work around broken
...
HTTP servers and reduce memory usage. It's actually a backport of a Python
3.2 fix. Thanks to Adrien Kunysz.
2012-09-25 13:29:30 +02:00
Senthil Kumaran
d41dc7ce46
2.7 : Issue #16013 : Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka.
2012-09-25 02:48:21 -07:00
Christian Heimes
8112ea2360
Issue #16012 : Fix a regression in pyexpat. The parser's UseForeignDTD()
...
method doesn't require an argument again.
2012-09-24 13:17:08 +02:00
Ezio Melotti
cadff70ba5
#15421 : fix an OverflowError in Calendar.itermonthdates() after datetime.MAXYEAR. Patch by Cédric Krier.
2012-09-21 17:26:35 +03:00
doko@ubuntu.com
3d2fc15f82
- Issue #11715 : Fix multiarch detection without having Debian development
...
tools (dpkg-dev) installed.
2012-09-21 13:51:40 +02:00
Ezio Melotti
6d6fb3aa9f
#15970 : xml.etree.ElementTree now serializes correctly the empty HTML elements "meta" and "param".
2012-09-19 08:11:03 +03:00
Barry Warsaw
03fcfbef0a
- Issue #15906 : Fix a regression in argparse caused by the preceding change,
...
when action='append', type='str' and default=[].
2012-09-11 21:06:29 -04:00
Jesus Cea
3fb774ec5f
Closes #15910 : MD5 and SHA1 crash when "updated" with strings bigger than 2**32 bytes
2012-09-10 21:39:07 +02:00
Jesus Cea
03a9d2a20b
Closes #15908 : SHA1 crashes in 64 bits when the string to hash is bigger than 2**32 bytes
2012-09-10 21:04:42 +02:00
Jesus Cea
8b54d6d733
Closes #15676 : mmap: add empty file check prior to offset check
2012-09-10 00:22:39 +02:00
Ned Deily
10fc104fed
Issue #15822 : Fix installation of lib2to3 grammar pickles to ensure
...
they are created in the install locations and with the proper timestamp.
(Solution suggested by MvL)
2012-09-08 18:47:27 -07:00
Antoine Pitrou
e299cae230
Issue #15340 : Fix importing the random module when /dev/urandom cannot be opened.
...
This was a regression caused by the hash randomization patch.
2012-09-07 23:49:07 +02:00
Antoine Pitrou
58098a77e6
Issue #13992 : The trashcan mechanism is now thread-safe. This eliminates
...
sporadic crashes in multi-thread programs when several long deallocator
chains ran concurrently and involved subclasses of built-in container
types.
Because of this change, a couple extension modules compiled for 2.7.4
(those which use the trashcan mechanism, despite it being undocumented)
will not be loadable by 2.7.3 and earlier. However, extension modules
compiled for 2.7.3 and earlier will be loadable by 2.7.4.
2012-09-06 00:59:49 +02:00
Antoine Pitrou
c5eec0e387
Issue #15841 : The readable(), writable() and seekable() methods of io.BytesIO
...
and io.StringIO objects now raise ValueError when the object has been closed.
Patch by Alessandro Moura.
2012-09-05 20:11:49 +02:00
Petri Lehtinen
80f4553d56
#15802 : Fix test logic in TestMaildir.test_create_tmp
2012-09-01 14:25:48 +03:00
Petri Lehtinen
f9e1f1128b
#13769 : Enhance docs for ensure_ascii semantics in JSON decoding functions
2012-09-01 07:29:06 +03:00
R David Murray
201018718f
#12776,#11839: call argparse type function only once.
...
Before, the type function was called twice in the case where the default
was specified and the argument was given as well. This was especially
problematic for the FileType type, as a default file would always be
opened, even if a file argument was specified on the command line.
Patch by Arnaud Fontaine, with additional test by Mike Meyer.
2012-08-31 23:15:28 -04:00
Trent Nelson
f6407a184d
Issue #15819 : Fix out-of-tree builds from a readonly source.
2012-08-30 14:56:13 +00:00
Trent Nelson
da4277a739
Issue #15765 : Fix quirky NetBSD getcwd() behaviour.
...
This is done by extending a previous fix for issue #9185 that was made for
Solaris and OpenBSD to NetBSD as well.
2012-08-29 09:20:41 -04:00
Benjamin Peterson
23d49d3e7e
use the stricter PyMapping_Check ( closes #15801 )
2012-08-28 17:55:35 -04:00
Hynek Schlawack
7d978902d0
#14880 : Fix kwargs notation in csv.reader, .writer & .register_dialect
...
Patch by Chris Rebert.
2012-08-28 12:33:46 +02:00
Ronald Oussoren
a00b100c9c
Fix issue 13370: Ensure that ctypes works on Mac OS X when Python is compiled using the clang compiler
2012-08-25 11:18:48 +02:00
Mark Dickinson
088cec3ab7
Issue #15544 : Fix Decimal.__float__ to work with payload-carrying NaNs.
2012-08-24 20:06:30 +01:00
Antoine Pitrou
f3e0a69d88
Issue #14674 : Add a discussion of the json module's standard compliance.
...
Patch by Chris Rebert.
2012-08-24 19:46:17 +02:00
Ned Deily
8622f09d98
Issue #15645 : Ensure 2to3 grammar pickles are properly installed.
...
(Patch by Ronald Oussoren)
2012-08-22 23:26:06 -07:00
Petri Lehtinen
4efdc09a8d
#15199 : Fix JavaScript's default MIME type to application/javascript
2012-08-20 21:28:46 +03:00
Antoine Pitrou
0e3a4c8058
Issue #15615 : Add some tests for the json module's handling of invalid input data.
...
Patch by Kushal Das.
2012-08-18 20:51:05 +02:00
Mark Dickinson
2de4be2efd
Add workaround for log1p(-0.0) on platforms where it's broken.
2012-08-18 12:31:34 +01:00
Antoine Pitrou
c5bef75c77
Issue #15604 : Update uses of PyObject_IsTrue() to check for and handle errors correctly.
...
Patch by Serhiy Storchaka.
2012-08-15 23:16:51 +02:00
Petri Lehtinen
2d44ceeada
#11062 : Fix adding a message from file to Babyl mailbox
2012-08-15 14:25:41 +03:00
Richard Oudkerk
faee75c33a
Issue #15646 : Prevent equivalent of a fork bomb when using multiprocessing
...
on Windows without the "if __name__ == '__main__'" idiom.
2012-08-14 11:41:19 +01:00
Brian Curtin
bc77d3690b
Fix #15496 . Add directory removal helpers to make Windows tests more reliable. Patch by Jeremy Kloth
2012-08-13 17:26:48 -05:00
Senthil Kumaran
2f76f73d73
Issue #15630 : Add an example for "continue" statement in the tutorial. Patch by
...
Daniel Ellis.
2012-08-12 11:58:53 -07:00
Meador Inge
2d639d5665
Issue #15424 : Add a __sizeof__ implementation for array objects.
...
Patch by Ludwig Hähne.
2012-08-10 22:05:45 -05:00
Brian Curtin
a939105a40
Fix #15567 . collections.deque wasn't imported
2012-08-09 23:04:42 -05:00
Ned Deily
670280470d
Issue #15560 : Fix building _sqlite3 extension on OS X with an SDK.
2012-08-05 14:42:45 -07:00
Andrew Svetlov
8ba844ac14
Issue #13052 : Fix IDLE crashing when replace string in Search/Replace dialog ended with '\'.
...
Patch by Roger Serwy.
2012-08-04 21:45:23 +03:00
Jesus Cea
d4e58dc966
Closes #15469 : Correct __sizeof__ support for deque
2012-08-03 14:48:23 +02:00
Jesus Cea
3e3192d8f7
Closes #15512 : Correct __sizeof__ support for parser
2012-08-03 14:25:53 +02:00
Antoine Pitrou
1fa9f7b3d1
Issue #15538 : Fix compilation of the getnameinfo() / getaddrinfo() emulation code.
...
Patch by Philipp Hagemeister.
2012-08-02 20:37:12 +02:00
Martin v. Löwis
33f8c3a901
Issue #8847 : Disable COMDAT folding in Windows PGO builds.
2012-08-01 10:05:27 +02:00
Andrew Svetlov
8a15c37df7
Issue #9803 : Don't close IDLE on saving if breakpoint is open.
...
Patch by Roger Serwy.
2012-07-31 19:51:27 +03:00
Andrew Svetlov
2d96848c7e
Issue #12288 : Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog.
2012-07-30 20:04:53 +03:00
Ned Deily
d8ec464dbb
Issue #14018 : Fix OS X Tcl/Tk framework checking when using OS X SDKs.
2012-07-30 04:07:49 -07:00
Antoine Pitrou
baee34c344
Issue #15489 : Add a __sizeof__ implementation for BytesIO objects.
...
Patch by Serhiy Storchaka.
2012-07-30 00:01:06 +02:00
Antoine Pitrou
bff5df0d1c
Issue #15487 : Add a __sizeof__ implementation for buffered I/O objects.
...
Patch by Serhiy Storchaka.
2012-07-29 19:02:46 +02:00
Martin v. Löwis
c02e1e65c4
Issue #15467 : Move helpers for __sizeof__ tests into test_support.
...
Patch by Serhiy Storchaka.
2012-07-29 16:30:50 +02:00
Richard Oudkerk
e4b9938d77
Issue #6056 : Make multiprocessing use setblocking(True) on the sockets it uses.
...
Original patch by J Derek Wilson.
2012-07-27 14:05:46 +01:00
Andrew Svetlov
15fc22011d
Issue #15041 : Update "see also" list in tkinter documentation.
2012-07-26 17:19:40 +03:00
R David Murray
7009845c62
#15232 : make NEWS entry more accurate.
2012-07-24 14:24:42 -04:00
Meador Inge
87c5b94c39
Issue #15402 : Add a __sizeof__ method to struct.Struct.
...
Initial patch by Serhiy Storchaka.
2012-07-23 09:27:00 -05:00
Senthil Kumaran
0c472c3271
Issue #15250 : Document that filecmp.dircmp compares files shallowly. Patch contributed by Chris Jerdonek.
2012-07-22 19:36:03 -07:00
R David Murray
0f111c13cd
#15232 : correctly mangle From lines in MIME preamble and epilogue
2012-07-22 21:55:12 -04:00
R David Murray
68f555c03a
#13922 : argparse no longer incorrectly strips '--' after the first one.
...
Patch by Jeff Knupp.
2012-07-21 22:54:34 -04:00
R David Murray
056c31f9cc
#12353 : argparse now correctly handles null argument values.
...
Patch by Torsten Landschoff.
2012-07-21 22:35:00 -04:00
Georg Brandl
d33a9beb8d
Fix typo introduced in 79d54fba49b3.
2012-07-21 16:48:16 +02:00
Antoine Pitrou
715a63b783
Issue #14579 : Fix error handling bug in the utf-16 decoder.
...
Patch by Serhiy Storchaka.
2012-07-21 00:52:06 +02:00
Meador Inge
25be3f68e0
Issue #6493 : Fix handling of c_uint32 bitfields with width of 32 on Windows.
2012-07-18 23:51:05 -05:00
Meador Inge
6642d1f97d
Issue #15368 : make bytecode generation deterministic.
2012-07-18 14:09:04 -05:00
Gregory P. Smith
e0c22206e4
Fixes Issue #14635 : telnetlib will use poll() rather than select() when possible
...
to avoid failing due to the select() file descriptor limit.
Contributed by Akintayo Holder and under the Google contributor agreement.
2012-07-15 22:16:06 -07:00
Terry Jan Reedy
45ed012433
Issue #13557 : Clarify effect of giving two different namespaces to exec or
...
execfile().
2012-07-08 17:35:26 -04:00
Senthil Kumaran
5d60e56a17
revert the changes done in d931a3b64fd6 - buildbot failure.
...
The fix for issue14826 might need to address toBytes and test_url_encoding in
test_cookielib.py before it is brought back in.
2012-07-08 02:20:27 -07:00
Senthil Kumaran
01fe5fa8ea
Fix issue14826 - make urllib.request.Request quoted url consistent with URLOpener open method.
...
Patch contributed by Stephen Thorne.
2012-07-07 17:37:53 -07:00
Antoine Pitrou
c2ec992698
Issue #15247 : FileIO now raises an error when given a file descriptor pointing to a directory.
2012-07-06 18:48:24 +02:00
Senthil Kumaran
3b30b19e0a
Fix closes issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp
2012-07-04 19:50:29 -07:00
Éric Araujo
e5567ccc86
Create ~/.pypirc securely ( #13512 ).
...
There was a window between the write and the chmod where the user’s
password would be exposed, depending on default permissions. Philip
Jenvey’s patch fixes it.
2012-07-03 01:23:46 -04:00
Éric Araujo
3cf202e957
Ignore .nfs* files in distutils ( #7719 ).
...
These files are created by some NFS clients a file is edited and removed
concurrently (see added link in doc for more info). If such a file is
removed between distutils calls listdir and copy, it will get confused.
Other special files are ignored in sdist (namely VCS directories), but
this has to be filtered out earlier.
2012-07-03 01:12:42 -04:00
Mark Dickinson
e0afb72402
Closes #14591 : Random.jumpahead could produce an invalid MT state on 64-bit machines.
2012-06-30 17:19:35 +01:00
Petri Lehtinen
d07de40490
#5346 : Preserve permissions of mbox, MMDF and Babyl mailbox files on flush()
2012-06-29 15:09:16 +03:00
Amaury Forgeot d'Arc
d958cc960f
Issue #15219 : Fix a reference leak when hashlib.new() is called with
...
invalid parameters.
2012-06-29 01:42:46 +02:00
Petri Lehtinen
45f0d9835c
#9559 : Append data to single-file mailbox files if messages are only added
...
If messages were only added, a new file is no longer created and
renamed over the old file when flush() is called on an mbox, MMDF or
Babyl mailbox.
2012-06-28 13:49:37 +03:00
Gregory P. Smith
b2ac4d693a
Fixes issue #12268 for file readline, readlines and read() and readinto methods.
...
They no longer lose data when an underlying read system call is interrupted.
IOError is no longer raised due to a read system call returning EINTR from
within these methods.
2012-06-25 20:57:36 -07:00
Alexander Belopolsky
e99d3a160c
Issue #14653 : email.utils.mktime_tz() no longer relies on system
...
mktime() when timezone offest is supplied.
2012-06-21 20:57:39 -04:00
Hynek Schlawack
9bd4bf2a3d
#10053 : Don't close FDs when FileIO.__init__ fails
...
Loosely based on the work by Hirokazu Yamamoto.
2012-06-21 19:45:19 +02:00
Richard Oudkerk
4215d2738a
Issue #15101 : Make pool finalizer avoid joining current thread
2012-06-18 15:37:31 +01:00
Petri Lehtinen
48ee6908bc
Fix NEWS entry for #15036
2012-06-18 10:42:08 +03:00
Nick Coghlan
a093312871
Issue #15043 : skip test_gdb if the custom hooks can't be loaded (backport from 3.x)
2012-06-17 19:03:39 +10:00
Meador Inge
43f42fc3cb
Issue #15054 : Fix incorrect tokenization of 'b' and 'br' string literals.
...
Patch by Serhiy Storchaka.
2012-06-16 21:05:50 -05:00
Petri Lehtinen
7cf6699699
#15036 : Make a repeated changes and flushes work with single-file mailboxes
2012-06-15 20:50:51 +03:00
Richard Oudkerk
926f58df57
Issue #10133 : Make multiprocessing deallocate buffer if socket read fails.
...
Patch by Hallvard B Furuseth.
2012-06-11 15:11:35 +01:00
Terry Jan Reedy
5525eb77fa
NEWS fixes
2012-06-07 19:50:30 -04:00
Richard Oudkerk
2182e0578c
Issue #13854 : Properly handle non-integer, non-string arg to SystemExit
...
Previously multiprocessing only expected int or str. It also wrongly
used an exit code of 1 when the argument was a string instead of zero.
2012-06-06 19:01:14 +01:00
Richard Oudkerk
d44a4a27a6
Issue #12157 : pool.map() does not handle empty iterable correctly
...
Initial patch by mouad
2012-06-06 17:52:18 +01:00
Ned Deily
5e247b705e
Issue #14962 : Update text coloring in IDLE shell window after changing
...
options. Patch by Roger Serwy.
2012-05-31 09:17:29 -07:00
Ned Deily
7148984d61
Issue #10997 : Prevent a duplicate entry in IDLE's "Recent Files" menu.
2012-05-29 10:42:34 -07:00
Antoine Pitrou
ff0e22b6ec
Issue #14775 : Fix a potential quadratic dict build-up due to the garbage collector repeatedly trying to untrack dicts.
...
Additional comments by Tim Silk.
2012-05-28 22:22:34 +02:00
Meador Inge
fe7aa49f24
Issue #9041 : raised exception is misleading
...
An issue in ctypes.c_longdouble, ctypes.c_double, and ctypes.c_float that
caused an incorrect exception to be returned in the case of overflow has been
fixed.
2012-05-28 13:52:59 -05:00
Terry Jan Reedy
d9d276b0dc
Issue12510: Attempting to get invalid tooltip no longer closes Idle.
...
Original patch by Roger Serwy.
2012-05-27 21:28:42 -04:00
Terry Jan Reedy
eaa7e7825e
Issue #10365 : File open dialog now works instead of crashing
...
even when parent window is closed. Patch by Roger Serwy.
2012-05-26 20:33:32 -04:00
Terry Jan Reedy
42f7b7ecb2
Issue #14876 : Use user-selected font for highlight configuration.
...
Patch by Roger Serwy.
2012-05-26 16:55:43 -04:00
Senthil Kumaran
37484dc324
Issue #14036 : return None when port in urlparse cross 65535
2012-05-24 21:54:34 +08:00
Antoine Pitrou
cd8799f077
Issue #14888 : Fix misbehaviour of the _md5 module when called on data larger than 2**32 bytes.
2012-05-23 23:16:14 +02:00
Ezio Melotti
ed8cf7a543
#14875 : Use float('inf') instead of float('1e66666') in the json module.
2012-05-21 17:46:55 -06:00
Martin v. Löwis
ed11a5d018
Issue #8767 : Restore building with --disable-unicode.
...
Original patch by Stefano Taschini.
2012-05-20 10:42:17 +02:00
Ned Deily
77e77a1273
Issue #14572 : Prevent build failures with pre-3.5.0 versions of
...
sqlite3, such as was shipped with Centos 5 and Mac OS X 10.4.
2012-05-19 23:35:05 -07:00
Senthil Kumaran
f439a36630
Issue #14426 : Correct the Date format in Expires attribute of Set-Cookie. Patch by Federico Reghenzani and Müte Invert
2012-05-20 12:02:44 +08:00
Petri Lehtinen
5f39706b07
#14494 : Document that absolute imports became default in 3.0 instead of 2.7.
2012-05-19 18:36:04 +03:00
Ezio Melotti
6d9c1b1617
#14072 : Fix parsing of tel URIs in urlparse by making the check for ports stricter.
2012-05-19 17:12:17 +03:00
Senthil Kumaran
618802d55e
Fix Issue14721: Send Content-length: 0 for empty body () in the http.request
2012-05-19 16:52:21 +08:00
Senthil Kumaran
ea24dda01f
Issue9374 - Generic parsing of query and fragment portion of urls for any scheme
2012-05-19 08:10:40 +08:00
Petri Lehtinen
280e9f7ce5
#14798 : pyclbr now raises ImportError instead of KeyError for missing packages
2012-05-18 21:54:25 +03:00
R David Murray
6949392b56
#14832 : 'first' now really refers to first arg in unittest assertItemsEqual
...
This appears to have been a mixup introduced when we switched from
'expected/actual' to 'first/second'. The problem doesn't exist
in the corresponding assertCountEqual method in Python3.
2012-05-16 14:01:03 -04:00
Antoine Pitrou
38fbd799d1
Issue #14829 : Fix bisect issues under 64-bit Windows.
2012-05-16 15:01:40 +02:00
Ned Deily
724a55c525
Issue #14777 : In an X11 windowing environment, tkinter may return
...
undecoded UTF-8 bytes as a string when accessing the Tk clipboard.
Modify clipboad_get() to first request type UTF8_STRING when no
specific type is requested in an X11 windowing environment, falling
back to the current default type STRING if that fails.
Original patch by Thomas Kluyver.
2012-05-15 18:05:57 -07:00
Martin v. Löwis
fd0afed503
Upgrade openssl to 0.9.8x.
2012-05-15 17:26:31 +02:00
Senthil Kumaran
6a2a6c2ee3
Issue #12541 : Be lenient with quotes around Realm field with HTTP Basic Authentation in urllib2.
2012-05-15 22:24:10 +08:00
Ned Deily
acdc56d0d0
Issue #14662 : Prevent shutil failures on OS X when destination does not
...
support chflag operations. (Patch by Hynek Schlawack)
2012-05-10 17:45:49 -07:00
Antoine Pitrou
c2b714ce21
Issue #14157 : Fix time.strptime failing without a year on February 29th.
...
Patch by Hynek Schlawack.
2012-05-10 20:17:46 +02:00
Jesus Cea
f2011e3e49
Closes #14768 : os.path.expanduser('~/a') doesn't works correctly when HOME is '/'
2012-05-10 05:01:11 +02:00
Antoine Pitrou
284fa08eb7
Issue #14761 : Fix potential leak on an error case in the import machinery.
2012-05-09 13:24:31 +02:00
Ezio Melotti
e48daea2a6
#14034 : added the argparse tutorial. Patch by Tshepang Lekhonkhobe.
2012-05-06 16:15:35 +03:00
Benjamin Peterson
042c47b2c7
fix calling the classmethod descriptor directly ( closes #14699 )
2012-05-01 09:51:09 -04:00
Senthil Kumaran
7f6d4e1926
issue13183 - Fix pdb skipping frames after hitting a breakpoint and running step. Patch by Xavier de Gaye
2012-05-01 10:36:28 +08:00
Antoine Pitrou
3815316714
Issue #14664 : It is now possible to use @unittest.skip{If,Unless} on a test class that doesn't inherit from TestCase (i.e. a mixin).
2012-04-25 17:31:12 +02:00
Lars Gustäbel
231d474a7b
Issue #14160 : TarFile.extractfile() failed to resolve symbolic links when
...
the links were not located in an archive subdirectory.
2012-04-24 22:42:08 +02:00
Benjamin Peterson
d157a4c3dd
don't use a slot wrapper from a different special method ( closes #14658 )
...
This also alters the fix to #11603 . Specifically, setting __repr__ to
object.__str__ now raises a recursion RuntimeError when str() or repr() is
called instead of silently bypassing the recursion. I believe this behavior is
more correct.
2012-04-24 11:06:25 -04:00
R David Murray
c313b1d9b0
#14638 : pydoc now treats non-str __name__ as None instead of raising
...
Original patch by Peter Otten.
2012-04-23 13:27:11 -04:00
Senthil Kumaran
4c20c4e198
news for issue13684
2012-04-23 23:52:40 +08:00
Antoine Pitrou
52849bfaa3
Issue #14308 : Fix an exception when a "dummy" thread is in the threading module's active list after a fork().
2012-04-19 23:55:01 +02:00
Ezio Melotti
c45868ec69
#14538 : HTMLParser can now parse correctly start tags that contain a bare /.
2012-04-18 19:08:41 -06:00
Benjamin Peterson
76605557ea
SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno ( closes #14612 )
2012-04-18 11:14:31 -04:00
Vinay Sajip
7e9c9d51b6
Issue #14452 : remove BOM insertion code.
2012-04-16 14:38:23 +01:00
Antoine Pitrou
9945a64a8b
Issue #14589 : Update certificate chain for sha256.tbs-internet.com, fixing a test failure in test_ssl.
2012-04-16 03:34:44 +02:00
Mark Dickinson
0407e96061
Issue 13496: Fix bisect.bisect overflow bug for large collections.
2012-04-15 16:43:19 +01:00
Mark Dickinson
9c0baf7202
Issue #13889 : On MSVC builds, set FPU control word at runtime for all string <-> float conversions. Patch by Samuel Iseli and Stefan Krah.
2012-04-15 15:19:06 +01:00
R David Murray
9955ad4eb7
#14399 : corrected news item
2012-04-13 21:27:00 -04:00
R David Murray
3f4ccbabaf
#14399 : zipfile now correctly handles comments added to empty zipfiles.
...
Patch by Serhiy Storchaka.
2012-04-12 18:42:47 -04:00
Charles-François Natali
0d3db3a815
Issue #14557 : Fix extensions build on HP-UX. Patch by Adi Roiban.
2012-04-12 19:11:54 +02:00
Barry Warsaw
cca96f09d3
Post release twiddle.
2012-04-10 14:50:39 -04:00
Barry Warsaw
a12d0ccfbe
Bump to 2.6.8
2012-04-10 10:59:35 -04:00
Antoine Pitrou
fa1d84107a
Issue #7978 : socketserver now restarts the select() call when EINTR is returned.
...
This avoids crashing the server loop when a signal is received.
Patch by Jerzy Kozera.
2012-04-09 00:47:24 +02:00
Antoine Pitrou
02a380105d
Issue #14505 : Fix file descriptor leak when deallocating file objects created with PyFile_FromString().
2012-04-05 14:07:52 +02:00
Benjamin Peterson
f73813a8bb
prevent writing to stderr from messing up the exception state ( closes #14474 )
2012-04-02 11:15:17 -04:00
Antoine Pitrou
fe9417726c
Issue #13019 : Fix potential reference leaks in bytearray.extend().
...
Patch by Suman Saha.
2012-04-01 16:05:46 +02:00
Antoine Pitrou
4b536d4771
Issue #14437 : Fix building the _io module under Cygwin.
2012-03-31 23:53:07 +02:00
Andrew Svetlov
8af872983f
update NEWS for 2.7 as Terry Reedy proposed
2012-03-31 14:34:16 +03:00
Andrew Svetlov
c37db10e03
Backport of Issue #14409 to 2.7
...
IDLE doesn't not execute commands from shell with default keybinding
for <Return>.
Patch by Roger Serwy.
2012-03-29 19:54:58 +03:00
krisvale
479c8f8c51
Issue #10538 - Update Misc/NEWS
2012-03-22 20:17:42 +00:00
Giampaolo Rodola'
96cb5d15c1
fix #10340 : properly handle EINVAL on OSX and also avoid to call handle_connect() in case of a disconnetected socket which is not meant to connect.
2012-03-22 16:06:43 +01:00
Benjamin Peterson
72c6227df8
merge heads
2012-03-22 08:57:56 -04:00
Benjamin Peterson
eff19a13ed
check by equality for __future__ not identity ( closes #14378 )
2012-03-22 08:19:04 -04:00
R David Murray
b3f95d7ff1
#12757 : Make doctest skipping in -OO mode work with unittest/regrtest -v
2012-03-21 15:02:30 -04:00
Andrew Svetlov
7c010ee00c
#3573 : idle now doesn't hungs if launched as: idle -e <directory>
...
Patch by Guilherme Polo.
2012-03-21 13:35:08 +02:00
Giampaolo Rodola'
3d3cf48e53
Fix issue #13694 : asynchronous connect in asyncore.dispatcher does not set addr.
2012-03-20 16:46:57 +01:00
Gregory P. Smith
fcdf04becc
Fixes Issue #14331 : Use significantly less stack space when importing modules by
...
allocating path buffers on the heap instead of the stack.
2012-03-18 16:07:10 -07:00
Barry Warsaw
2875b5b294
Update Docs and NEWS for 2.6.8rc2.
2012-03-17 18:16:58 -04:00
Benjamin Peterson
dbc52f8a0d
check for string attribute names in old-style classes ( closes #14334 )
2012-03-16 10:58:46 -05:00
Benjamin Peterson
6e7832b04c
check to make sure the attribute is a string ( #14334 )
2012-03-16 09:32:59 -05:00
Senthil Kumaran
51a65c9161
2.7 - Issue #10484 : Fix the CGIHTTPServer's PATH_INFO handling problem
2012-03-16 01:07:16 -07:00
Senthil Kumaran
4c59211bd5
Fix the urllib closing issue which hangs on particular ftp urls/ftp servers. closes issue11199
2012-03-15 13:24:40 -07:00
Benjamin Peterson
f1acd0ab38
merge from 2.7 release branch
2012-03-15 13:01:04 -05:00
Benjamin Peterson
ee933eccc9
bump to 2.7.3rc2
2012-03-15 12:25:54 -05:00
Barry Warsaw
e9bc2f773f
- Issue #14234 : CVE-2012-0876: Randomize hashes of xml attributes in the hash
...
table internal to the pyexpat module's copy of the expat library to avoid a
denial of service due to hash collisions. Patch by David Malcolm with some
modifications by the expat project.
2012-03-14 17:10:41 -07:00
Gregory P. Smith
d0e1a5b241
Fixes Issue #14234 : CVE-2012-0876: Randomize hashes of xml attributes
...
in the hash table internal to the pyexpat module's copy of the expat
library to avoid a denial of service due to hash collisions.
Patch by David Malcolm with some modifications by the expat project.
2012-03-14 15:28:10 -07:00
Gregory P. Smith
c8ff46032f
Fixes Issue #14234 : CVE-2012-0876: Randomize hashes of xml attributes
...
in the hash table internal to the pyexpat module's copy of the expat
library to avoid a denial of service due to hash collisions.
Patch by David Malcolm with some modifications by the expat project.
2012-03-14 15:28:10 -07:00
Martin v. Löwis
f163efd736
Issue #5219 : Prevent event handler cascade in IDLE.
...
Patch by Roger Serwy.
2012-03-13 14:46:22 -07:00
Ezio Melotti
11f8b6872a
#14161 : fix the __repr__ of file objects to escape the file name.
2012-03-12 01:17:02 +02:00
Antoine Pitrou
f60845b70a
Issue #14252 : Fix subprocess.Popen.terminate() to not raise an error under Windows when the child process has already exited.
2012-03-11 19:29:12 +01:00
Barry Warsaw
1fbc16d050
Bump to version 2.6.8rc1.
2012-02-23 10:55:57 -05:00
Benjamin Peterson
a2aa2ef313
bump to 2.7.3rc1
2012-02-23 10:52:17 -05:00
Nadeem Vawda
f00011aff4
Issue #14053 : Fix "make patchcheck" to work with MQ.
...
Patch by Francisco Martín Brugué
2012-02-22 11:40:09 +02:00
Martin v. Löwis
a1b2af8034
Issue #6807 : Run msisupport.mak earlier.
2012-02-21 18:12:02 +01:00
Martin v. Löwis
ef281bdddb
Issue #10580 : Minor grammar change in Windows installer.
2012-02-21 17:07:32 +01:00
Petri Lehtinen
4ab701b2d3
sqlite3: Fix 64-bit integer handling in user functions on 32-bit architectures
...
Closes #8033 .
2012-02-21 14:04:46 +02:00
Ezio Melotti
36b7361fe7
HTMLParser is now able to handle slashes in the start tag.
2012-02-21 09:22:16 +02:00
Benjamin Peterson
aee9dfba4a
merge 2.6 with hash randomization fix
2012-02-20 21:44:56 -05:00
Barry Warsaw
1e13eb084f
- Issue #13703 : oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
...
environment variable, to provide an opt-in way to protect against denial of
service attacks due to hash collisions within the dict and set types. Patch
by David Malcolm, based on work by Victor Stinner.
2012-02-20 20:42:21 -05:00
Ned Deily
c5df563041
Issue #12627 : Implement PEP 394 for OS X framework builds.
...
OS X framework builds already created versioned symlinks for all
executables and scripts installed in the framework bin directory,
of the general form ${cmd} - ${cmd}2.7. The changes here add a
hierarchy of ${cmd} -> ${cmd}2 -> ${cmd}2.7. Per previous
practice, all of the links are created in the framework bin
directory for both the install and altinstall targets. This is
consistent with the long-standing recommendation to manage multiple
framework versions by adding and ordering framework bin directories
on $PATH. Also, per past practice, symlinks to all framework bin
entries are created in $prefix/bin (by default, /usr/local/bin)
for the install target and only versioned links are created for
altinstall, although the use of these links is not recommended
for framework builds and their installation is optional with
the standard OS X installers.
2012-02-19 02:19:12 +01:00
Charles-François Natali
e062466480
Issue #14001 : CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
...
upon malformed POST request.
2012-02-18 14:30:34 +01:00
Charles-François Natali
66f3cc6f8d
Issue #14001 : CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
...
upon malformed POST request.
2012-02-18 14:15:38 +01:00
Petri Lehtinen
437b149b0c
Fix a variable scoping error in an sqlite3 test
...
Initial patch by Torsten Landschoff.
Closes #11689 .
2012-02-17 21:34:45 +02:00
Petri Lehtinen
002b202009
Fix errors in sqlite3's Cursor.rowcount documentation
...
Closes #13995 .
2012-02-16 21:42:34 +02:00
Gregory P. Smith
14dc510395
news entry for previous commit
2012-02-16 00:44:50 -08:00
Antoine Pitrou
dd7e071b23
Issue #13014 : Fix a possible reference leak in SSLSocket.getpeercert().
2012-02-15 22:25:27 +01:00
Éric Araujo
e897a7472d
Fix parsing of build_ext --libraries option ( #1326113 )
2012-02-15 16:28:20 +01:00
Ezio Melotti
65d36dab4d
#13987 : HTMLParser is now able to handle malformed start tags.
2012-02-15 13:19:10 +02:00
Ezio Melotti
d2307cb48a
#13987 : HTMLParser is now able to handle EOFs in the middle of a construct.
2012-02-15 12:44:23 +02:00
Antoine Pitrou
c66ed457ef
Issue #13020 : Fix a reference leak when allocating a structsequence object fails.
...
Patch by Suman Saha.
2012-02-15 02:51:43 +01:00
Antoine Pitrou
c39cd783fb
Issue #13015 : Fix a possible reference leak in defaultdict.__repr__.
...
Patch by Suman Saha.
2012-02-15 02:42:46 +01:00
Meador Inge
ff337ccd4b
Issue #13979 : Fix ctypes.util.find_library ldconfig regex
2012-02-13 22:22:06 -06:00
Ezio Melotti
f117443cb8
#13993 : HTMLParser is now able to handle broken end tags.
2012-02-13 16:28:54 +02:00