Commit Graph

6720 Commits

Author SHA1 Message Date
Zachary Ware 47ff6fa600 Fix badly merged NEWS item. 2014-10-17 11:09:13 -05:00
Benjamin Peterson 9d780a22ea add back NEWS entries removed by 1c2c44313408 2014-10-17 11:30:45 -04:00
Charles-François Natali 977c424ef6 Issue #22435: Fix a file descriptor leak when SocketServer bind fails. 2014-10-13 18:39:34 +01:00
Serhiy Storchaka 04fa704161 Issue #21580: Now Tkinter correctly handles binary "data" and "maskdata"
configure options of tkinter.PhotoImage.

Added private Tkapp method _createbytearray().
2014-07-31 07:48:14 +03:00
Victor Stinner 2af8d2f698 Issue #22023: Fix %S, %R and %V formats of PyUnicode_FromFormat(). 2014-07-30 00:39:05 +02:00
Dirkjan Ochtman 9b1d670361 Issue #21591: Handle exec backwards compatibility in the AST builder.
Instead of deferring until runtime. This makes sure we hit the right
conditions in dealing with unqualified exec statements.

Reviewed by Victor Stinner. Test follows in a later commit.
2014-07-29 17:21:39 +02:00
Victor Stinner c382807559 Issue #19612: subprocess.communicate() now also ignores EINVAL when using at
least two pipes.
2014-07-29 00:04:54 +02:00
Victor Stinner 0a649c7bb1 Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError
on closed socket.
2014-07-26 14:52:55 +02:00
Zachary Ware 6d8f29a623 Issue #21958: Define HAVE_ROUND when building with VS 2013 and above.
Patch by Zachary Turner.
2014-07-25 14:34:19 -05:00
Raymond Hettinger 1b5f58d167 Issue #21990: Cleanup unnecessary inner class definition in saxutils. 2014-07-25 10:26:36 -07:00
Victor Stinner fe9ebe4f4f Issue #16133: The asynchat.async_chat.handle_read() method now ignores
socket.error() exceptions with blocking I/O errors: EAGAIN, EALREADY,
EINPROGRESS, or EWOULDBLOCK. Initial patch written by Xavier de Gaye.
2014-07-24 19:15:00 +02:00
Serhiy Storchaka 186f66540d Issue #1730136: Fix comparison between a tk Font object and an object of a
different type.
2014-07-24 17:48:28 +03:00
Victor Stinner 63a474788a Issue #19884: readline: Disable the meta modifier key if stdout is not a
terminal to not write the ANSI sequence "\033[1034h" into stdout. This sequence
is used on some terminal (ex: TERM=xterm-256color") to enable support of 8 bit
characters.
2014-07-24 12:22:24 +02:00
Serhiy Storchaka 7cc3b0aefb Backout 308f3c1e36d3. This change (issue21044) does not need to be merged on
2.7, as the os.fdopen sets the name attribute to '<fdopen>' and not to the fd.
2014-07-22 10:39:59 +03:00
Serhiy Storchaka 7f7d99c279 Issue #15759: "make suspicious", "make linkcheck" and "make doctest" in Doc/
now display special message when and only when there are failures.
2014-07-22 10:28:36 +03:00
Antoine Pitrou 4e64d8768f Issue #21976: Fix test_ssl to accept LibreSSL version strings.
Thanks to William Orr.
2014-07-21 18:35:01 -04:00
Raymond Hettinger b606d45fb2 Issue #21868: Prevent turtle crash due to invalid undo buffer size. 2014-07-20 21:26:04 -07:00
Benjamin Peterson e2d1e64a1f add # 2014-07-20 13:05:01 -07:00
Benjamin Peterson 0fb88f7c51 correct ref counting of default_action (closes #22017) 2014-07-20 13:04:11 -07:00
Serhiy Storchaka e7829bdf12 Issue 21044: tarfile.open() now handles fileobj with an integer 'name'
attribute.  Based on patch by Martin Panter.
2014-07-16 23:58:12 +03:00
Terry Jan Reedy 6e9a3ac881 Issue #17506: Synchronize Misc/NEWS and idlelib/NEWS.txt for 2.7. 2014-07-14 02:07:26 -04:00
Ned Deily c89376292e Issue #21323: Fix CGIHTTPServer to again handle scripts in CGI subdirectories,
broken by the fix for security issue #19435.  Patch by Zach Byrne.
2014-07-12 22:01:15 -07:00
Terry Jan Reedy 4761934523 Idle News entries. 2014-07-11 00:24:22 -04:00
Ned Deily 9be578990e Issue #21923: Prevent AttributeError in distutils.sysconfig.customize_compiler
due to possible uninitialized _config_vars.  Original patch by Alex Gaynor.
2014-07-06 16:11:44 -07:00
Zachary Ware 6690eed48b Issue #21151: Fixed a segfault in the _winreg module.
When ``None`` was passed as a ``REG_BINARY`` value to SetValueEx,
PyMem_DEL was called on an uninitialized buffer.  Patch by John Ehresman.

(Also an incidental typo fix in a comment in test_winreg)
2014-07-03 10:57:44 -05:00
Victor Stinner f6b3c84a4a Issue #21090: io.FileIO.readall() does not ignore I/O errors anymore. Before,
it ignored I/O errors if at least the first C call read() succeed.
2014-07-02 23:12:48 +02:00
Berker Peksag cf0a706c15 Issue #19870: BaseCookie now parses 'secure' and 'httponly' flags.
Backport of issue #16611.
2014-07-02 10:48:27 +03:00
Ned Deily 04a37be9e5 Issue #21811: Add Misc/NEWS entry. 2014-06-29 23:38:55 -07:00
Benjamin Peterson 7ce6a96469 after 2.7.8 2014-06-29 18:59:07 -07:00
Benjamin Peterson fdbdcfe020 bump to 2.7.8 2014-06-29 18:58:16 -07:00
Benjamin Peterson 4becf85d54 don't allow unicode into type_map on Windows (closes #21652)
Patch from Vladimir Iofik.
2014-06-29 12:58:16 -07:00
Benjamin Peterson df71dcbef2 don't overwrite the error from PyObject_GetAttrString (closes #4346) 2014-06-26 23:27:41 -07:00
Serhiy Storchaka 33ad0968eb Issue #21729: Used the "with" statement in the dbm.dumb module to ensure
files closing.  Patch by Claudiu Popa.
2014-06-25 20:37:49 +03:00
Raymond Hettinger 58ad24512a Issue #19145: Fix handling of negative values for a "times" keyword argument to itertools.repeat()>
(Patch contributed by Vajrasky Kok.)
2014-06-24 21:53:45 -07:00
Raymond Hettinger 53296810f8 Add news entry for 21832 2014-06-24 18:14:53 -07:00
R David Murray 3eb76fc10b #20155: use fake HTTP method names so windows doesn't hang the tests.
Windows was seeing the 'GET' generated by these tests as invalid and forcibly
closing the socket, causing the test to fail.

Patch by Jeff Allen.
2014-06-24 16:49:24 -04:00
Benjamin Peterson 550b945fd6 avoid overflow with large buffer sizes and/or offsets (closes #21831) 2014-06-23 20:12:27 -07:00
Raymond Hettinger f595a127b8 Issue #8343: Named group error msgs did not show the group name. 2014-06-22 19:33:19 -07:00
Benjamin Peterson 3bef935512 fix ntpath.join on UNC-style paths by backporting py3k's splitdrive (closes #21672) 2014-06-22 19:07:38 -07:00
Raymond Hettinger 4575010943 Issue 21635: Fix caching in difflib.SequenceMatcher.get_matching_blocks(). 2014-06-21 11:27:36 -07:00
Charles-François Natali 98fbdd6829 Issue #21491: SocketServer: Fix a race condition in child processes reaping. 2014-06-20 22:03:08 +01:00
Antoine Pitrou 077c9564b7 Issue #21722: The distutils "upload" command now exits with a non-zero return code when uploading fails.
Patch by Martin Dengler.
2014-06-18 23:07:46 -04:00
Benjamin Peterson c0bc4eff50 avoid crashes and lockups from daemon threads during interpreter shutdown (#1856) 2014-06-16 19:39:18 -07:00
Terry Jan Reedy 1a6561e2f5 Add Idle news entries (plus whitespace fix from other entries). 2014-06-16 19:24:22 -04:00
Benjamin Peterson 8d24d77c63 url unquote the path before checking if it refers to a CGI script (closes #21766) 2014-06-14 18:36:29 -07:00
Zachary Ware 04349c602c Issue #19493: Backport 6f63fff5c120 2014-06-13 14:40:16 -05:00
Serhiy Storchaka 05b0a1be37 Issue #21310: Fixed possible resource leak in failed open(). 2014-06-09 13:32:08 +03:00
Benjamin Peterson 75a55c3275 make sure the builtin help function doesn't fail when sys.stdin is not a valid file (closes #11709)
Original patch by Amaury Forgeot d'Arc with a test by bdettmer.
2014-06-07 20:14:26 -07:00
Benjamin Peterson c3e1e90221 don't remove self from example code in the HTML output (closes #13223)
Patch by Víctor Terrón.
2014-06-07 16:44:00 -07:00
Benjamin Peterson 93e51aac54 allow the keyword else immediately after (no space) an integer (closes #21642) 2014-06-07 12:36:39 -07:00
Zachary Ware 6b8626628d Issue #21671, CVE-2014-0224: Update the Windows build to openssl-1.0.1h 2014-06-06 01:13:37 -05:00
Terry Jan Reedy 562495ab61 Issue #18910: Add unittest for textView. Patch by Phil Webster. 2014-06-05 03:38:28 -04:00
Terry Jan Reedy 6e66cb03b7 Issue #18292: Idle - test AutoExpand. Patch by Saihadhav Heblikar. 2014-06-04 20:50:49 -04:00
Terry Jan Reedy 8ba9e450c9 Issue #18409: Idle: add unittest for AutoComplete. Patch by Phil Webster. 2014-06-03 20:54:15 -04:00
Zachary Ware 9ce635f7bd Issue #18492: Allow all resources when tests are not run by regrtest.py.
This changeset also includes cleanup allowed by this behavior change.
2014-06-02 16:01:16 -05:00
Serhiy Storchaka 79fa98af9e Issue #19656: Running Python with the -3 option now also warns about
non-ascii bytes literals.
2014-06-01 22:13:39 +03:00
Serhiy Storchaka e75a555073 Issue #21605: Added tests for Tkinter images. 2014-06-01 12:34:42 +03:00
Benjamin Peterson 48f2e99808 backport hashlib.pbkdf2_hmac per PEP 466 (closes #21304)
Backport by Alex Gaynor.
2014-05-31 13:26:22 -07:00
Benjamin Peterson 15e5a165d0 merge 2.7.7 release branch 2014-05-31 11:24:25 -07:00
Benjamin Peterson de50cdfcf9 fix news header 2014-05-31 11:22:47 -07:00
Benjamin Peterson 9c70397ea3 bump to 2.7.7 final 2014-05-31 11:17:34 -07:00
Serhiy Storchaka 2a0220b18a Issue #21552: Fixed possible integer overflow of too long string lengths in
the Tkinter module on 64-bit platforms.
2014-05-30 14:23:52 +03:00
Gregory P. Smith 0344a0643d Fix issue #14315: The zipfile module now ignores extra fields in the central
directory that are too short to be parsed instead of letting a struct.unpack
error bubble up as this "bad data" appears in many real world zip files in the
wild and is ignored by other zip tools.
2014-05-29 23:41:52 -07:00
Serhiy Storchaka edb6428e43 Issue #21402: tkinter.ttk now works when default root window is not set. 2014-05-28 18:38:15 +03:00
Serhiy Storchaka 49b2086a2e Issue #21493: Added test for ntpath.expanduser(). Original patch by
Claudiu Popa.
2014-05-28 18:11:08 +03:00
Serhiy Storchaka 30080fd63d Issue #10203: sqlite3.Row now truly supports sequence protocol. In particular
it supports reverse() and negative indices.  Original patch by Claudiu Popa.
2014-05-28 12:57:38 +03:00
Raymond Hettinger fb8899a597 Issue #21481: Teach argparse equality tests to return NotImplemented when comparing to unknown types. 2014-05-26 00:40:09 -07:00
Raymond Hettinger f643b9a9c7 Issue 8743: Improve interoperability between sets and the collections.Set abstract base class. 2014-05-25 22:13:41 -07:00
Raymond Hettinger 92df7529cb Issue 13355: Make random.triangular degrade gracefully when low == high. 2014-05-25 17:40:25 -07:00
Serhiy Storchaka 1f94efc626 Issue #19925: Added tests for the spwd module. Original patch by Vajrasky Kok. 2014-05-25 16:21:32 +03:00
Serhiy Storchaka 4f0e167414 Issue #21522: Added Tkinter tests for Listbox.itemconfigure(),
PanedWindow.paneconfigure(), and Menu.entryconfigure().
2014-05-23 14:08:31 +03:00
Serhiy Storchaka f19771f831 Issue #20635: Added tests for Tk geometry managers. 2014-05-23 13:54:35 +03:00
Antoine Pitrou ab4a69158b Issue #21523: Fix over-pessimistic computation of the stack effect of some opcodes in the compiler.
This also fixes a quadratic compilation time issue noticeable when compiling
code with a large number of "and" and "or" operators.
2014-05-23 11:46:03 +02:00
Benjamin Peterson 56032ce373 2.7.8 news section 2014-05-22 14:08:14 -07:00
Benjamin Peterson 996bf4828d bump to 2.7.7rc1 2014-05-17 17:31:50 -07:00
Benjamin Peterson d3d23636cb support pep 3118 format strings for ctypes objects with nontrivial shapes (closes #10744)
Patch from Matti Picus.
2014-05-17 14:57:10 -07:00
Benjamin Peterson c2a66f20ea reindent for consistency 2014-05-17 14:53:04 -07:00
Ned Deily 78cceec1c0 Document changes to OS X installer configurations for 2.7.7.
As of 2.7.8, the 32-bit-only installer will support OS X 10.5
and later systems as is currently done for Python 3.x installers.

For 2.7.7 only, we will provide three installers:
the legacy deprecated 10.3+ 32-bit-only format;
the newer 10.5+ 32-bit-only format;
and the unchanged 10.6+ 64-/32-bit format.

Although binary installers will no longer be available from
python.org as of 2.7.8, it will still be possible to build from
source on 10.3.9 and 10.4 systems if necessary.
2014-05-17 14:29:22 -07:00
Senthil Kumaran 36f28f7ae8 Backport Fix for Issue #7776: Fix ``Host:'' header and reconnection when using http.client.HTTPConnection.set_tunnel().
Patch by Nikolaus Rath.
2014-05-16 18:51:46 -07:00
Raymond Hettinger ddb39e799d Issue #21470: Do a better job seeding the random number generator
to fully cover its state space.
2014-05-13 22:09:23 -07:00
Raymond Hettinger a5413c4997 Issue 21469: Mitigate risk of false positives with robotparser.
* Repair the broken link to norobots-rfc.txt.

* HTTP response codes >= 500 treated as a failed read rather than as a not
found.  Not found means that we can assume the entire site is allowed.  A 5xx
server error tells us nothing.

* A successful read() or parse() updates the mtime (which is defined to be "the
  time the robots.txt file was last fetched").

* The can_fetch() method returns False unless we've had a read() with a 2xx or
4xx response.  This avoids false positives in the case where a user calls
can_fetch() before calling read().

* I don't see any easy way to test this patch without hitting internet
resources that might change or without use of mock objects that wouldn't
provide must reassurance.
2014-05-12 22:18:50 -07:00
Terry Jan Reedy 00b0bd55b4 Issue #18104: Add idlelib/idle_test/htest.py with a few sample tests to begin
consolidating and improving human-validated tests of Idle. Change other files
as needed to work with htest.  Running the module as __main__ runs all tests.
2014-05-11 23:32:20 -04:00
Benjamin Peterson 629026aecc backport hmac.compare_digest to partially implement PEP 466 (closes #21306)
Backport from Alex Gaynor.
2014-05-11 16:11:44 -07:00
Brian Curtin d67c0b88ef Backport 4e9f1017355f from #3561.
This brings the option to install Python on the Windows Path.
Committed per Benjamin Peterson's approval on python-dev.
2014-05-10 12:52:59 -05:00
Antoine Pitrou b0acc1b0a3 Issue #21350: Fix file.writelines() to accept arbitrary buffer objects, as advertised.
Patch by Brian Kearns.
2014-05-08 19:26:04 +02:00
doko@ubuntu.com 9ba90c9f06 - Issue #17752: Fix distutils tests when run from the installed location. 2014-05-07 04:41:26 +02:00
Zachary Ware 2460dc880f Issue #18604: Consolidated checks for GUI availability.
test_support._is_gui_available is now defined the same way on every
platform, and now includes the Windows-specific check that had been in the
Windows version of _is_gui_available and the OSX-specific check that was
in runtktests.check_tk_availability.  Also, every platform checks whether
Tk can be instantiated (if the platform-specific checks passed).
2014-05-02 10:33:49 -05:00
Antoine Pitrou 3ec903fce4 Issue #21321: itertools.islice() now releases the reference to the source iterator when the slice is exhausted.
Patch by Anton Afanasyev.
2014-04-29 12:13:46 +02:00
Tim Golden 700c8fe2ba Issue #9291 Add ACKS & NEWS 2014-04-27 16:39:33 +01:00
Tim Golden d6a1b2ba95 Add NEWS entry for issue21349 2014-04-26 16:02:38 +01:00
Zachary Ware c6606edc86 Issue #21303, #20565: Updated the version of Tcl/Tk used on Windows
from 8.5.2 to 8.5.15.
2014-04-22 15:36:11 -05:00
Terry Jan Reedy 46b6c086d3 Issue #21138: Change default reformat paragraph width to PEP 8's 72. 2014-04-22 01:26:35 -04:00
Terry Jan Reedy 0edf52a2c2 Issue 21284: Idle: make test_formatparagraph pass even when a user changes the
reformat width in the configuration menu.
2014-04-22 01:10:57 -04:00
Ned Deily 8488901282 Issue #21311: Avoid exception in _osx_support with non-standard compiler
configurations.  Patch by John Szakmeister.
2014-04-19 13:24:03 -07:00
doko@ubuntu.com f27ec3e551 - Issue #21285: Refactor and fix curses configure check to always search
in a ncursesw directory.
2014-04-17 20:11:19 +02:00
Benjamin Peterson 5c863bf938 when an exception is raised in fdopen, never close the fd (changing on my mind on #21191) 2014-04-14 19:45:46 -04:00
Eric V. Smith 9a55cd8857 Issue #12546: Allow \x00 as a fill character for builtin type __format__ methods. 2014-04-14 11:22:33 -04:00
Benjamin Peterson 6c939cb6f6 in scan_once, prevent the reading of arbitrary memory when passed a negative index
Bug reported by Guido Vranken.
2014-04-13 22:10:38 -04:00
Vinay Sajip 5aad46e5c3 Issue #21172: isinstance check relaxed from dict to collections.Mapping. 2014-04-10 07:07:59 +01:00
Benjamin Peterson 00109c9bd3 teach 2to3 about 'yield from' 2014-04-10 00:23:18 -04:00
Benjamin Peterson da952f3ff4 add matrix multiplication operator support to 2to3 2014-04-10 00:12:47 -04:00
Benjamin Peterson 02ab7a84ef make sure fdopen always closes the fd in error cases (closes #21191) 2014-04-09 15:40:18 -04:00
Vinay Sajip 66d8dbeacf Issue #21149: Improved thread-safety in logging cleanup during interpreter shutdown. 2014-04-04 10:47:53 +01:00
Benjamin Peterson c4e6e0a279 bail in unicode error's __str__ methods if the objects are not properly initialized (closes #21134) 2014-04-02 12:15:06 -04:00
Benjamin Peterson d42f60ed81 fix overflow detection of strop.expandtabs 2014-03-30 20:09:44 -04:00
Raymond Hettinger 40e95dfcaa Issue #21029: IDLE now colors print consistently as a keyword. 2014-03-29 21:01:50 -07:00
Ned Deily 3ac866539f Issue #21093: Prevent failures of ctypes test_macholib on OS X if a
copy of libz exists in $HOME/lib or /usr/local/lib.
2014-03-29 00:07:42 -07:00
Ned Deily 57847df4e5 Issue #17654: Ensure IDLE menus are customized properly on OS X for
non-framework builds and for all variants of Tk.
2014-03-27 20:47:04 -07:00
Ned Deily b693e9fc5b Issue #6676: Ensure a meaningful exception is raised when attempting
to parse more than one XML document per pyexpat xmlparser instance.
(Original patches by Hirokazu Yamamoto and Amaury Forgeot d'Arc, with
suggested wording by David Gutteridge)
2014-03-27 16:38:32 -07:00
Ned Deily c727533cf5 Issue #20939: Use www.example.com instead of www.python.org to avoid test
failures when ssl is not present.
2014-03-26 23:25:02 -07:00
R David Murray 6d9117604f backport: #20145: assertRaisesRegexp now raises a TypeError on bad regex.
Previously a non-string, non-regex second argument and no callable
argument could cause the test to appear to always pass.
2014-03-25 15:29:42 -04:00
Victor Stinner 367f5d379c Issue #21058: Fix a leak of file descriptor in tempfile.NamedTemporaryFile(),
close the file descriptor if os.fdopen() fails
2014-03-25 09:08:16 +01:00
Benjamin Peterson e3af6f0a88 fix ctypes test alignment assumptions (closes #20946)
Patch by Andreas Schwab.
2014-03-16 10:07:26 +01:00
Ned Deily a146df8dd6 Issue #20939: Fix test_geturl failure in test_urllibnet due to
new redirect of http://www.python.org/ to https://www.python.org.
2014-03-15 13:14:15 -07:00
Éric Araujo 31fe52dc9e Make distutils error messages more helpful (#11599).
When running external programs such as a C compiler and getting an
error code, distutils only prints the program name.  With this change,
one can get the full command line by setting the DISTUTILS_DEBUG
environment variable.

This should have no compatibility issues, unless there are tools
that depend on the exact format of distutils debug messages.
2014-03-12 22:19:39 -04:00
Éric Araujo 3d1134e395 Avoid “error: None” messages from distutils (#4931).
Thanks to Amaury Forgeot d’Arc and Philip J. Eby.
2014-03-12 03:14:48 -04:00
Raymond Hettinger 4c150e0bd2 Improve the default seeding in random module to use 32 bytes of entropy when available. 2014-03-08 09:56:08 -08:00
Serhiy Storchaka e50fe4c9eb Issue #20283: RE pattern methods now accept the string keyword parameters
as documented.  The pattern and source keyword parameters are left as
deprecated aliases.
2014-03-06 12:24:29 +02:00
Terry Jan Reedy 09f4f253b5 Issue #15618: Make turtle.py itself work when run from a module with
from __future__ import unicode_literals.  Initial patch by Juancarlo Añez.

The demos at the end of turtle.py appear to be the only test, so I changed
some of the strings to unicode with a u prefix.  If os.path.isfile or the Tk
image function have problems with Unicode input, that would be different issue.
2014-03-05 23:15:57 -05:00
Serhiy Storchaka 68b8a94c91 Issue #20501: fileinput module no longer reads whole file into memory when using
fileinput.hook_encoded.
2014-02-26 20:59:08 +02:00
Antoine Pitrou e0a03d6e2e Restore title style 2014-02-24 00:41:14 +01:00
Antoine Pitrou aa73ea0408 Issue #20743: Fix a reference leak in test_tcl. 2014-02-23 19:39:06 +01:00
Serhiy Storchaka 2ac9d31108 Issue #6815: os.path.expandvars() now supports non-ASCII Unicode environment
variables names and values.
2014-02-19 23:27:37 +02:00
Serhiy Storchaka 3e0cb09e33 Fixed grid_columnconfigure() and grid_rowconfigure() methods of
Tkinter widgets to work in wantobjects=True mode.
2014-02-19 18:33:30 +02:00
Zachary Ware dd091d7531 Issue #20510: Rewrote test_exit in test_sys to match existing comments
and to modernize.  Initial patch by Gareth Rees.
2014-02-18 08:36:14 -06:00
Terry Jan Reedy 6858f00dab Issue #8478: Untokenizer.compat now processes first token from iterator input.
Patch based on lines from Georg Brandl, Eric Snow, and Gareth Rees.
2014-02-17 23:12:07 -05:00
Benjamin Peterson e9aab0fb98 backout #19081 to fix #20621 2014-02-16 14:20:14 -05:00
Ned Deily e789a1d866 Issue #20605: Make test_socket getaddrinfo OS X segfault test more robust. 2014-02-13 22:49:30 -08:00
Serhiy Storchaka 1d19f97eed Issue #17671: Fixed a crash when use non-initialized io.BufferedRWPair.
Based on patch by Stephen Tu.
2014-02-12 10:52:07 +02:00
Benjamin Peterson 2748c5c106 avoid name clash with posix_close (closes #20594) 2014-02-11 10:16:16 -05:00
Serhiy Storchaka a4b9c878e4 Issue #19856: shutil.move() failed to move a directory to other directory
on Windows if source name ends with os.altsep.
2014-02-11 10:30:06 +02:00
Serhiy Storchaka 98a9722e4a Issue #20437: Fixed 43 potential bugs when deleting objects references. 2014-02-09 13:14:04 +02:00
R David Murray 2cfae9b03f #14983: always add a line end after a MIME boundary marker.
This is more RFC compliant (see issue) and fixes a problem with
signature verifiers rejecting the part when signed.  There is some
amount of backward compatibility concern here since it changes
the output, but the RFC issue coupled with fixing the problem
with signature verifiers seems worth the small risk of breaking
code that depends on the current incorrect output.
2014-02-08 17:54:12 -05:00
Terry Jan Reedy 4ade2d25fc Issue #20406: Use Python application icons for Idle window title bars.
Patch mostly by Serhiy Storchaka.
2014-02-08 09:39:51 -05:00
R David Murray ca00c6ea65 #20013: don't raise socket error when selected mailbox deleted.
I'm checking this in without a test because not much of this code
is tested and I don't have time to work up the necessary extensions
to the existing test framework.

The patch itself was tested by the person who reported the bug.
2014-02-07 13:51:22 -05:00
Serhiy Storchaka 76249ea4a7 Issue #20532: Tests which use _testcapi now are marked as CPython only. 2014-02-07 10:06:05 +02:00
Serhiy Storchaka cfc2c7bb86 Issue #19920: Added tests for TarFile.list(). Based on patch by Vajrasky Kok. 2014-02-05 20:55:13 +02:00
Benjamin Peterson d16e01cf75 mmap obmalloc arenas so that they may be immediately returned to the system when unused (closes #20494) 2014-02-04 10:20:26 -05:00
Antoine Pitrou f581411255 Issue #20426: When passing the re.DEBUG flag, re.compile() displays the debug output every time it is called, regardless of the compilation cache. 2014-02-03 20:59:59 +01:00
Serhiy Storchaka ccffb25c54 Issue #20368: The null character now correctly passed from Tcl to Python (in
unicode strings only).  Improved error handling in variables-related commands.
2014-02-03 21:23:46 +02:00
Antoine Pitrou c06634acfc Issue #20435: Fix _pyio.StringIO.getvalue() to take into account newline translation settings. 2014-02-02 23:37:29 +01:00
Ezio Melotti 5a88853bdc #20288: fix handling of invalid numeric charrefs in HTMLParser. 2014-02-01 21:20:22 +02:00
Serhiy Storchaka 31f5121275 Issue #19456: ntpath.join() now joins relative paths correctly when a drive
is present.
2014-01-27 23:14:51 +02:00
Terry Jan Reedy 1d9b9215f0 Issue #17721: Remove non-functional configuration dialog help button until we
make it actually gives some help when clicked. Patch by Guilherme Simões.
2014-01-26 22:24:17 -05:00
Serhiy Storchaka 30d68c66e3 Issue #19990: Added tests for the imghdr module.
Based on patch by Claudiu Popa.
2014-01-26 23:48:20 +02:00
Serhiy Storchaka 2403a787b9 Issue #8260: The read(), readline() and readlines() methods of
codecs.StreamReader returned incomplete data when were called after
readline() or read(size).  Based on patch by Amaury Forgeot d'Arc.
2014-01-26 19:20:24 +02:00
Benjamin Peterson ce75105e10 use new readline function types (closes #20374) 2014-01-24 00:32:12 -05:00
Terry Jan Reedy 5924365528 Issue #17390: Add Python version to Idle editor window title bar.
Original patches by Edmond Burnett and Kent Johnson.
2014-01-23 00:36:37 -05:00
Richard Oudkerk e8a57b98ec Issue #14548: Make multiprocessing finalizers check pid before
running to cope with possibility of gc running just after fork.
(Backport from 3.x.)
2014-01-23 00:11:04 +00:00
Florent Xicluna edfd9addf6 Issue #17825: Cursor ^ is correctly positioned for SyntaxError and IndentationError. 2014-01-22 01:33:59 +01:00
Serhiy Storchaka 49259359ee Issue #20262: Warnings are raised now when duplicate names are added in the
ZIP file or too long ZIP file comment is truncated.
2014-01-20 21:57:09 +02:00
Serhiy Storchaka 326b5ab05a Issue #20270: urllib and urlparse now support empty ports. 2014-01-18 18:30:09 +02:00
Serhiy Storchaka 7a278da4ee Issue #20243: TarFile no longer raise ReadError when opened in write mode. 2014-01-18 16:14:00 +02:00
Serhiy Storchaka 75ba21a77d Issue #20245: The open functions in the tarfile module now correctly handle empty mode. 2014-01-18 15:35:19 +02:00
Zachary Ware ce46aed13e Fix some typos/grammar in current sections of NEWS. 2014-01-17 09:29:24 -06:00
Serhiy Storchaka af080876dc Issue #20086: Restored the use of locale-independing mapping instead of
locale-depending str.lower() in locale.normalize().
2014-01-17 09:27:56 +02:00
Serhiy Storchaka e0ed2d75c8 Issue #19936: Added executable bits or shebang lines to Python scripts which
requires them.  Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface.
2014-01-16 18:59:17 +02:00
Zachary Ware f583f41440 Issue #20255: Update the about and bugs pages. 2014-01-14 16:01:32 -06:00
Benjamin Peterson 28cf368c1b complain when nbytes > buflen to fix possible buffer overflow (closes #20246) 2014-01-13 22:59:38 -05:00
Senthil Kumaran 011097395b Issue #19082: Working SimpleXMLRPCServer and xmlrpclib examples, both in modules and documentation. 2014-01-12 16:04:08 -08:00
Serhiy Storchaka 0f11d0f778 Issue #19804: The test_find_mac test in test_uuid is now skipped if the
ifconfig executable is not available.
2014-01-10 15:05:27 +02:00
Serhiy Storchaka c9da0893d3 Issue #19886: Use better estimated memory requirements for bigmem tests.
Incorrect requirements can cause memory swapping.
2014-01-10 13:36:56 +02:00
Serhiy Storchaka 9f8621fa7d Issue #13107: argparse and optparse no longer raises an exception when output
a help on environment with too small COLUMNS.  Based on patch by
Elazar Gershuni.
2014-01-09 23:13:48 +02:00
Antoine Pitrou 3b2afbbf88 Issue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked for. 2014-01-09 19:52:12 +01:00
Serhiy Storchaka 9be238d313 Issue #20072: Fixed multiple errors in tkinter with wantobjects is False.
* Misc.image_names(), Misc.image_types(), Wm.wm_colormapwindows(), and
  LabelFrame.panes() now always return a tuple.
* Fixed _stringify() for non-ASCII strings.
* Fixed error of comparing str and int in tt.LabeledScale._adjust().
* ttk.Notebook.index() now always returns int.
* ttk.Notebook.tabs() now always returns a tuple.
* ttk.Entry.bbox() now always returns a tuple of ints.
* ttk.Entry.validate() now always correctly works.
* ttk.Combobox.current() now always returns int.
* ttk.Panedwindow.sashpos() now always returns int.
* ttk.Treeview.bbox() now always returns a tuple of ints.
* ttk.Treeview.get_children() now always returns a tuple.
* ttk.Treeview.exists() now always correctly works.
* ttk.Treeview.index() now always returns int.
* ttk.Treeview.tag_has() now always returns 0 or 1.
* And numerous other errors in methods which returns a tuple, list or dict.
* Fixed ttk tests for wantobjects is False.
2014-01-07 19:32:58 +02:00
Gregory P. Smith 7902f8ddac news entry for issue19081 fix. 2014-01-06 09:50:19 -08:00
R David Murray 984f630f0a #1065986: Make pydoc handle unicode strings.
Patch by Akira Kitada.
2014-01-05 12:35:59 -05:00
R David Murray 020d7c379a closes 16039: CVE-2013-1752: limit line length in imaplib readline calls. 2014-01-03 13:59:22 -05:00
Benjamin Peterson 22d9ee7e17 complain if the codec doesn't return unicode 2013-12-28 10:33:58 -06:00
Antoine Pitrou 63cc99d9a6 Issue #19422: Explicitly disallow non-SOCK_STREAM sockets in the ssl module, rather than silently let them emit clear text data. 2013-12-28 17:26:33 +01:00
Serhiy Storchaka d551b28571 Issue #20027: Fixed locale aliases for devanagari locales. 2013-12-26 21:20:46 +02:00
Serhiy Storchaka dbb9630c53 Backported tests for Tkinter variables. 2013-12-26 20:08:34 +02:00
Serhiy Storchaka 5e11655156 Issue #20067: Tkinter variables now work when wantobjects is false. 2013-12-26 20:05:53 +02:00
Serhiy Storchaka 5542b15d25 Issue #19320: test_tcl no longer fails when wantobjects is false. 2013-12-25 17:28:50 +02:00
Serhiy Storchaka ec773cc9c3 Issue #19020: Tkinter now uses splitlist() instead of split() in configure
methods.
2013-12-25 16:35:20 +02:00
Serhiy Storchaka 0b6b335253 Issue #20058: sys.stdin.readline() in IDLE now always returns only one line. 2013-12-25 14:24:17 +02:00
Antoine Pitrou 6200324701 Issue #12226: HTTPS is now used by default when connecting to PyPI. 2013-12-22 01:35:53 +01:00
Serhiy Storchaka d105196c72 Issue #20048: Fixed ZipExtFile.peek() when it is called on the boundary of
the uncompress buffer and read() goes through more than one readbuffer.

This is partial backport of changeset 028e8e0b03e8.
2013-12-21 23:51:15 +02:00
Serhiy Storchaka 0e4d852abf Issue #20034: Updated alias mapping to most recent locale.alias file
from X.org distribution using makelocalealias.py.
2013-12-20 18:22:38 +02:00
Zachary Ware 1875536480 Issue #19683: Removed empty tests from test_minidom.
Initial patch by Ajitesh Gupta.
2013-12-19 13:44:19 -06:00
Serhiy Storchaka bd78986279 Issue #5815: Fixed support for locales with modifiers. Fixed support for
locale encodings with hyphens.
2013-12-19 21:21:06 +02:00
Victor Stinner 9450219b06 Issue #20026: Fix the sqlite module to handle correctly invalid isolation level
(wrong type).
2013-12-19 16:44:48 +01:00
Serhiy Storchaka 0c221beed4 Issue #18829: csv.Dialect() now checks type for delimiter, escapechar and
quotechar fields.  Original patch by Vajrasky Kok.
2013-12-19 16:26:56 +02:00
R David Murray 15160399f5 #19855: uuid.get_node now looks on the PATH for executables on unix.
Patch by Serhiy Storchaka.
2013-12-17 21:27:56 -05:00
Serhiy Storchaka c97f5ede8f Issue #20007: HTTPResponse.read(0) no more prematurely closes connection.
Original patch by Simon Sapin.
2013-12-17 21:49:48 +02:00
Serhiy Storchaka 6d562319d2 Issue #17976: Fixed potential problem with file.write() not detecting IO error
by inspecting the return value of fwrite().  Based on patches by Jaakko Moisio
and test by Victor Stinner.
2013-12-17 14:40:06 +02:00
Zachary Ware 51e90bcee5 Issue #19987: Re-write test_alias_fallback in test_winsound to have two
acceptable outcomes: success or RuntimeError.  Without being able to
actually hear whether a sound was played, either one could be right, but
any other error would be a failure.
2013-12-16 08:58:10 -06:00
Serhiy Storchaka dd5a46c696 Issue #19912: Fixed numerous bugs in ntpath.splitunc().
* splitunc() no more returns illegal result for paths with redundant slashes.
* splitunc() now correctly processes the u'İ' character
  (U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* Added new tests for splitunc().
2013-12-16 15:15:29 +02:00
Serhiy Storchaka d1a61dcc65 Issue #19623: Fixed writing to unseekable files in the aifc module.
Fixed writing 'ulaw' (lower case) compressed AIFC files.
2013-12-14 20:34:33 +02:00
Serhiy Storchaka a92cc91ee6 Issue #17919: Fixed integer overflow in the eventmask parameter. 2013-12-14 19:11:04 +02:00
Serhiy Storchaka 17f22c9281 Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX. 2013-12-13 12:09:05 +02:00
Victor Stinner 66c6e9dcb4 Issue #14432: Generator now clears the borrowed reference to the thread state
Fix a crash when a generator is created in a C thread that is destroyed while
the generator is still used. The issue was that a generator contains a frame,
and the frame kept a reference to the Python state of the destroyed C thread.
The crash occurs when a trace function is setup.
2013-12-13 02:37:09 +01:00
Gregory P. Smith 9ffb1481d8 Fixes Issue #17200: telnetlib's read_until and expect timeout was broken by the
fix to Issue #14635 in Python 2.7.4 to be interpreted as milliseconds
instead of seconds when the platform supports select.poll (ie: everywhere).
It is now treated as seconds once again.
2013-12-10 18:22:03 -08:00
Ned Deily 278543d539 Issue #18270: Prevent possible IDLE AttributeError on OS X when no initial
shell window is present. (Original patch by Terry Reedy)
2013-12-10 16:21:58 -08:00
Zachary Ware 1f70221b86 Issue #19572: More silently skipped tests explicitly skipped. 2013-12-10 14:09:20 -06:00
Serhiy Storchaka 95d721927a Issue #19928: Implemented a test for repr() of cell objects. 2013-12-10 10:20:11 +02:00
Serhiy Storchaka 7057f3fa4d Issue #19481: print() of unicode, str or bytearray subclass instance in IDLE
no more hangs.
2013-12-10 10:04:41 +02:00
Victor Stinner 7821ff3789 Issue #19932: Fix typo in import.h, missing whitespaces in function prototypes. 2013-12-10 01:23:22 +01:00
Serhiy Storchaka 5493d5ea2a Issue #19099: The struct module now supports Unicode format strings. 2013-12-08 17:44:50 +02:00
Nadeem Vawda 337c50b8cb Closes #19878: Fix segfault in bz2 module.
Initial patch by Vajrasky Kok.
2013-12-08 15:31:50 +01:00
Serhiy Storchaka 7c573857c7 Issue #16373: Prevent infinite recursion for ABC Set class comparisons. 2013-12-06 23:23:15 +02:00
Antoine Pitrou 197e71bce1 Issue #18840: Introduce the json module in the tutorial, and deemphasize the pickle module. 2013-12-05 23:46:32 +01:00
Tim Peters 0ee9baa8d4 Issue #19138: doctest's IGNORE_EXCEPTION_DETAIL now allows no detail at all.
Grafted from c80083ad142d.
2013-12-03 21:02:05 -06:00
Alexandre Vassalotti df9460f8dc Issue #6477: Revert fbb97f6eb3b3 as it broke test_xpickle. 2013-11-30 17:43:42 -08:00
Alexandre Vassalotti a2934280e5 Issue #6477: Added pickling support for singletons and their types. 2013-11-30 16:52:03 -08:00
Alexandre Vassalotti 34ca066d1c Fix typo in Misc/NEWS. 2013-11-30 14:02:47 -08:00
Alexandre Vassalotti 1d3a173326 Issue #16231: Allow false values other than None to be used as persistent IDs. 2013-11-30 13:24:13 -08:00
Zachary Ware 72a01b29bf Issue #19595: Re-enable a long-disabled test in test_winsound 2013-11-27 23:56:04 -06:00
Serhiy Storchaka 26d936a71e Issue #19795: Improved markup of True/False constants. 2013-11-29 12:16:53 +02:00
Zachary Ware 2a57009b04 Merge heads 2013-11-26 14:55:46 -06:00
Zachary Ware c0aa2457d8 Issue #19588: Fixed tests in test_random that were silently skipped most
of the time.  Patch by Julian Gindi.
2013-11-26 14:49:42 -06:00
Serhiy Storchaka 6d9d30da6a Issue #11508: Fixed uuid.getnode() and uuid.uuid1() on environment with
virtual interface.  Original patch by Kent Frazier.
2013-11-26 22:47:05 +02:00
Serhiy Storchaka dafda9b042 Issue #11489: JSON decoder now accepts lone surrogates. 2013-11-26 21:25:15 +02:00
Mark Dickinson c2f8c81af0 Issue #19638: Raise ValueError instead of crashing when converting billion character strings to float. 2013-11-26 16:38:25 +00:00
Gregory P. Smith d82634d606 Fix test.test_support.bind_port() to not cause an error when Python was
compiled on a system with SO_REUSEPORT defined in the headers but run on
a system with an OS kernel that does not support that new socket option.
2013-11-24 19:42:15 -08:00
Serhiy Storchaka 5397c97451 Issue #19633: Fixed writing not compressed 16- and 32-bit wave files on
big-endian platforms.

Temporary forbidden test_unseekable_incompleted_write fornot compressed 16-
and 32-bit wave file  on big-endian platforms.
2013-11-21 11:04:37 +02:00
R David Murray eccf9c2e2f #19449: Handle non-string keys when generating 'fieldnames' error.
Backport from 3.3 6e5afeada7ca.
2013-11-19 13:25:24 -05:00
Jason R. Coombs 91bf058c98 Issue #12853: Correct NameError in distutils upload command. 2013-11-15 20:08:22 -05:00
Vinay Sajip 47fe4684ff Issue #19523: Closed FileHandler leak which occurred when delay was set. 2013-11-15 20:39:33 +00:00
Benjamin Peterson 086840ae82 merge 2.7.6 release branch 2013-11-10 02:46:48 -05:00
Benjamin Peterson 278519500f 2.7.6 final 2013-11-10 02:36:30 -05:00
Serhiy Storchaka c47d723eb0 Issue #1575020: Fixed support of 24-bit wave files on big-endian platforms. 2013-11-09 23:09:44 +02:00
Ezio Melotti b814745226 #19480: HTMLParser now accepts all valid start-tag names as defined by the HTML5 standard. 2013-11-07 18:31:36 +02:00
Ned Deily 11852734a5 Issue #15663: Revert OS X installer built-in Tcl/Tk support for 2.7.6.
Some third-party projects, such as matplotlib and PIL/Pillow,
depended on being able to build with Tcl and Tk frameworks in
/Library/Frameworks.  They were unable to build with the built-in
Tcl/Tk and/or execute correctly.
2013-11-05 02:40:03 -08:00
Ned Deily 52c48fdf30 Issue #15663: Revert OS X installer built-in Tcl/Tk support for 2.7.6.
Some third-party projects, such as matplotlib and PIL/Pillow,
depended on being able to build with Tcl and Tk frameworks in
/Library/Frameworks.  They were unable to build with the built-in
Tcl/Tk and/or execute correctly.
2013-11-05 02:40:03 -08:00
Nick Coghlan 768e8475b1 Remove merge artifact from Misc/NEWS 2013-11-05 00:24:05 +10:00
Nick Coghlan 6a98749e9c Close #17827: Document codecs.encode & codecs.decode 2013-11-04 20:05:16 +10:00
Zachary Ware 57d35c6494 Issue #17883: Tweak test_tcl testLoadWithUNC to skip the test in the
event of a permission error on Windows and to properly report other
skip conditions.
2013-11-03 22:51:25 -06:00
Zachary Ware 14b38f58c2 Issue #17883: Backport test.test_support._is_gui_available()
This should stop the Windows buildbots from hanging on test_ttk_guionly.
2013-11-03 22:27:04 -06:00
Serhiy Storchaka 32e23e739f Issue #18702: All skipped tests now reported as skipped. 2013-11-03 23:15:46 +02:00
Serhiy Storchaka 31b9c845d3 Issue #6157: Fixed Tkinter.Text.debug(). Original patch by Guilherme Polo. 2013-11-03 14:28:29 +02:00
Serhiy Storchaka 8630f16eb7 Issue #6160: The bbox() method of Tkinter.Spinbox now returns a tuple of
integers instead of a string.  Based on patch by Guilherme Polo.
2013-11-03 14:13:08 +02:00
Jason R. Coombs 42fa9ec050 Update NEWS 2013-11-02 11:43:40 -04:00
Serhiy Storchaka dd80816973 Issue #19085: Added basic tests for all tkinter widget options. 2013-11-02 10:46:21 +02:00
Benjamin Peterson a40f5b513d merge 2.7.6 release branch 2013-10-31 20:23:57 -04:00
Benjamin Peterson 9fa6a8ba63 fix xmlcharrefreplace tests on wide build when tests are loaded from .py[co] files. 2013-10-31 20:22:41 -04:00
Serhiy Storchaka 1fdc702861 Issue #19457: Fixed xmlcharrefreplace tests on wide build when tests are
loaded from .py[co] files.
2013-10-31 17:06:03 +02:00
Benjamin Peterson ae7894c953 merge 2.7.6 release branch 2013-10-30 12:43:44 -04:00
Benjamin Peterson 1ef959ac3d use the collapsed path in the run_cgi method (closes #19435) 2013-10-30 12:43:09 -04:00
Benjamin Peterson 5dba9f6573 merge 2.7.6 release branch 2013-10-29 15:28:41 -04:00
Benjamin Peterson e18b82d996 backport #19426 2013-10-29 15:27:14 -04:00
Serhiy Storchaka 1c760cab1d Issue #19426: Fixed the opening of Python source file with specified encoding. 2013-10-29 10:15:09 +02:00
Benjamin Peterson 8f8ca765d0 add 2.7.7 news header 2013-10-26 15:11:27 -04:00
Benjamin Peterson 07ffc78c9a 2.7.6rc1 2013-10-26 14:57:21 -04:00
Benjamin Peterson 657d06b13e just return toplevel symbol table rather than all blocks (closes #19393) 2013-10-26 13:13:51 -04:00
Ned Deily 7c5ba45fd8 Issue #19400: Prevent extension module build failures with Xcode 5 on OS X
10.8+ when using a universal Python that included a PPC architecture,
such as with a python.org 32-bit-only binary installer.
2013-10-25 16:01:42 -07:00
Ned Deily f84b531a12 Issue #19019: Change the OS X installer build script to use CFLAGS instead
of OPT for special build options.  By setting OPT, some compiler-specific
options like -fwrapv were overridden and thus not used, which could result
in broken interpreters when building with clang.
2013-10-25 00:44:46 -07:00
Ned Deily 0203a80e1c Issue #15663: Tcl/Tk 8.5.15 is now included with the OS X 10.6+
64-bit/32-bit installer for 10.6+.  It is no longer necessary
to install a third-party version of Tcl/Tk 8.5 to work around the
problems in the Apple-supplied Tcl/Tk 8.5 shipped in OS X 10.6
and later releases.
2013-10-25 00:40:07 -07:00
Ned Deily a2a9f571a5 Issue #1584: Provide options to override default search paths for Tcl and Tk
when building _tkinter.  configure has two new options; if used, both must
be specified:

  ./configure \
      --with-tcltk-includes="-I/opt/local/include" \
      --with-tcltk-libs="-L/opt/local/lib -ltcl8.5 -ltk8.5"

In addition, the options can be overridden with make:

   make \
       TCLTK_INCLUDES="-I/opt/local/include" \
       TCLTK_LIBS="-L/opt/local/lib -ltcl8.6 -ltk8.6"
2013-10-25 00:30:10 -07:00
Serhiy Storchaka 22fb0dec30 Issue #19327: Fixed the working of regular expressions with too big charset. 2013-10-24 22:02:42 +03:00
Senthil Kumaran 2147857db3 Increase macurl2path test coverage 2013-10-23 21:45:58 -07:00
Antoine Pitrou 5d791802c9 Issue #19352: Fix unittest discovery when a module can be reached through several paths (e.g. under Debian/Ubuntu with virtualenv). 2013-10-23 19:11:29 +02:00
Tim Golden 17934856dc Issue #15207: Fix mimetypes to read from correct area in Windows registry (Original patch by Dave Chambers) 2013-10-22 20:45:13 +01:00
Christian Heimes 51c4d72d43 Issue #18603: Ensure that PyOS_mystricmp and PyOS_mystrnicmp are in the
Python executable and not removed by the linker's optimizer.
2013-10-22 10:22:29 +02:00
Ezio Melotti bc38548145 #8964: fix platform._sys_version to handle IronPython 2.6+. 2013-10-21 03:03:32 +03:00
Serhiy Storchaka 2585e1e48a Issue #16038: CVE-2013-1752: ftplib: Limit amount of data read by
limiting the call to readline().  Original patch by Michał
Jastrzębski and Giampaolo Rodola.
2013-10-20 16:57:07 +03:00
Serhiy Storchaka f105672332 Issue #19279: UTF-7 decoder no more produces illegal unicode strings. 2013-10-19 20:37:49 +03:00
Serhiy Storchaka 2f4e7648b4 Remove redundant empty lines. 2013-10-18 17:16:04 +03:00
Serhiy Storchaka 7137803238 Issue #19276: Fixed the wave module on 64-bit big-endian platforms. 2013-10-17 23:03:48 +03:00
Victor Stinner a5cd255a7c Close #19267: Fix support of multibyte encoding (ex: UTF-16) in the logging
module.
2013-10-15 23:36:56 +02:00
Serhiy Storchaka b33336f650 Issue #18758: Fixed and improved cross-references. 2013-10-13 23:09:00 +03:00
Serhiy Storchaka 0fa0173893 Issue #18919: Added tests for the sunau module. Unified and extended tests
for audio modules: aifc, sunau and wave.
2013-10-13 17:47:22 +03:00
Mark Dickinson 36f6e2c9e0 Issue #18739: Fix inconsistent results from math.log(n) and math.log(long(n)) 2013-10-13 10:55:15 +01:00
Ned Deily 62a192931b Issue #18458: Prevent crashes with newer versions of libedit. Its readline
emulation has changed from 0-based indexing to 1-based like gnu readline.
Original patch by Ronald Oussoren.
2013-10-12 15:45:25 -07:00
Serhiy Storchaka 499d82136d Issue #18919: If the close() method of a writer in the sunau or wave module
failed, second invocation of close() and destructor no more raise an
exception.  Second invocation of close() on sunau writer now has no effects.
The aifc module now accepts lower case of names of the 'ulaw' and 'alaw'
codecs.
2013-10-12 21:35:33 +03:00
Serhiy Storchaka 986b5ee4d9 Issue #19131: The aifc module now correctly reads and writes sampwidth of
compressed streams.
2013-10-12 18:21:12 +03:00
Tim Peters b82300b02d Issue 19158: a rare race in BoundedSemaphore could allow .release() too often. 2013-10-09 13:25:11 -05:00
Serhiy Storchaka 0189a46ec5 Issue #18037: 2to3 now escapes '\u' and '\U' in native strings. 2013-10-03 12:08:22 +03:00
Serhiy Storchaka fdda200195 Issue #19137: The pprint module now correctly formats empty set and frozenset
and instances of set and frozenset subclasses.
2013-10-02 11:40:26 +03:00
Barry Warsaw d5849f545e - Issue #16040: CVE-2013-1752: nntplib: Limit maximum line lengths to 2048 to
prevent readline() calls from consuming too much memory.  Patch by Jyrki
  Pulliainen.
2013-09-30 19:09:29 -04:00
Barry Warsaw 42faa55124 - Issue #16040: CVE-2013-1752: nntplib: Limit maximum line lengths to 2048 to
prevent readline() calls from consuming too much memory.  Patch by Jyrki
  Pulliainen.
2013-09-30 18:35:15 -04:00
Barry Warsaw e763a91f6a Fix typo in NEWS file. 2013-09-30 16:45:40 -04:00
Antoine Pitrou 923852857d Issue #12641: Avoid passing "-mno-cygwin" to the mingw32 compiler, except when necessary.
Patch by Oscar Benjamin.
2013-09-30 22:13:17 +02:00
Barry Warsaw c545a5ebd6 - Issue #16041: CVE-2013-1752: poplib: Limit maximum line lengths to 2048 to
prevent readline() calls from consuming too much member.  Patch by Jyrki
  Pulliainen.
2013-09-30 15:56:29 -04:00
Barry Warsaw 6c1bb7b4e3 - Issue #16037: HTTPMessage.readheaders() raises an HTTPException when more
than 100 headers are read.  Adapted from patch by Jyrki Pulliainen.
2013-09-29 13:59:06 -04:00
Antoine Pitrou 87c99a0d37 Properly initialize all fields of a SSL object after allocation. 2013-09-29 19:52:45 +02:00
Antoine Pitrou 0879b168bf Issue #4366: Fix building extensions on all platforms when --enable-shared is used. 2013-09-29 01:48:40 +02:00
Serhiy Storchaka cfa5574405 Issue #18950: Fix miscellaneous bugs in the sunau module.
Au_read.readframes() now updates current file position and reads correct
number of frames from multichannel stream.  Au_write.writeframesraw() now
correctly updates current file position.  Au_read and Au_write now correctly
work with file object if start file position is not a zero.
2013-09-28 21:31:36 +03:00
Barry Warsaw d6fddf3d15 - Issue #16038: CVE-2013-1752: ftplib: Limit amount of data read by
limiting the call to readline().  Original patch by Michał
  Jastrzębski and Giampaolo Rodola.

with test fixes by Serhiy Storchaka.
2013-09-25 09:36:58 -04:00
Barry Warsaw 4e95d60191 - Issue #16039: CVE-2013-1752: Change use of readline in imaplib module to
limit line length.  Patch by Emil Lind.
2013-09-22 16:07:09 -04:00
Serhiy Storchaka 60bf0e4daa Issue #18050: Fixed an incompatibility of the re module with Python 2.7.3
and older binaries.
2013-09-20 21:25:53 +03:00
R David Murray c64566e30f #19037: adjust file times *before* moving maildir files into place.
This avoids race conditions when other programs are monitoring
the maildir directory.  Patch by janzert.
2013-09-18 08:35:45 -04:00
Serhiy Storchaka e787bce79c Issue #18873: IDLE, 2to3, and the findnocoding.py script now detect Python
source code encoding only in comment lines.
2013-09-17 00:00:46 +03:00
R David Murray 74213e4ee9 Merge #14984: On POSIX, enforce permissions when reading default .netrc. 2013-09-16 14:32:54 -04:00
R David Murray 4189b67a66 #14984: On POSIX, enforce permissions when reading default .netrc.
Initial patch by Bruno Piguet.

This is implemented as if a useful .netrc file could exist without passwords,
which is possible in the general case; but in fact our netrc implementation
does not support it.  Fixing that issue will be an enhancement.
2013-09-16 13:48:44 -04:00
Andrew Kuchling 503baf9ecd #16042: CVE-2013-1752: Limit amount of data read by limiting the call to readline().
The SSLFakeFile.readline() method needs to support limiting readline() as
well.  It's not a full emulation of readline()'s signature, but this class
is only used by smtplib's code, so it doesn't have to be.

Modified version of original patch by Christian Heimes.
2013-09-15 13:11:47 -04:00
Raymond Hettinger 39659f22fa Issue #19018: The heapq.merge() function no longer suppresses IndexError 2013-09-14 22:17:39 -07:00
Senthil Kumaran d4fac04fde Fix SimpleHTTPServer's request handling case on trailing '/'.
Patch contributed by Vajrasky Kok. Addresses Issue #17324
2013-09-13 00:18:55 -07:00
Serhiy Storchaka b06f536cb7 Issue #18784: The uuid module no more attempts to load libc via ctypes.CDLL,
if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
2013-09-13 07:52:00 +03:00
Serhiy Storchaka e03c74a1b6 Issue #18988: The "Tab" key now works when a word is already autocompleted. 2013-09-11 22:49:06 +03:00
Serhiy Storchaka 7d12ca5fd4 Fix a typo. (closes #18953) 2013-09-08 20:43:16 +03:00
Michael Foord 050e9e5c59 Closes issue 14971.
unittest test discovery no longer gets confused when a function
has a different __name__ than its name in the TestCase class dictionary.
2013-09-08 15:34:27 +12:00
Eli Bendersky 8c7e925f6e Close #18849: Fixed a Windows-specific tempfile bug where collision with an
existing directory caused mkstemp and related APIs to fail instead of
retrying. Report and fix by Vlad Shcherbina.
2013-09-06 06:17:15 -07:00
Serhiy Storchaka cf29ba8cf0 Issue #18672: Fixed format specifiers for Py_ssize_t in debugging output in
the _sre moduel.
2013-09-05 18:02:57 +03:00
Serhiy Storchaka 6db9e88eff Issue #18830: inspect.getclasstree() no more produces duplicated entries even
when input list contains duplicates.
2013-09-05 17:28:10 +03:00
Victor Stinner 930c3c9e43 Issue #18909: Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't cast
64-bit pointer to long (32 bits).
2013-09-05 00:26:15 +02:00
Antoine Pitrou 213fec4bff Issue #18876: The FileIO.mode attribute now better reflects the actual mode under which the file was opened.
Patch by Erik Bray.
2013-09-04 20:46:33 +02:00
Terry Jan Reedy 4c42735a99 Issue #18489: Add complete, gui-free tests for idlelib.SearchEngine.
Patch import and initialization in SearchEngine to make testing easier.
Improve docstrings, especially to clarify the double role of 'ok' parameters.
Original patch by Phil Webster.
2013-08-31 16:27:08 -04:00
Antoine Pitrou 33fc744ea3 Issue #18851: Avoid a double close of subprocess pipes when the child process fails starting. 2013-08-30 23:38:13 +02:00
Charles-François Natali 30a5445b30 Issue #18418: After fork(), reinit all threads states, not only active ones.
Patch by A. Jesse Jiryu Davis.
2013-08-30 23:30:50 +02:00
Serhiy Storchaka 879a213736 Issue #18817: Fix a resource warning in Lib/aifc.py demo. 2013-08-25 19:12:33 +03:00
Christian Heimes 42831fefa7 Issue #11973: Fix a problem in kevent. The flags and fflags fields are now
properly handled as unsigned.
2013-08-25 14:57:00 +02:00
Christian Heimes 8ee5ffddf5 Issue #18747: Fix spelling errors in my commit message and comments,
thanks to Vajrasky Kok for proof-reading.
2013-08-25 14:19:16 +02:00
Barry Warsaw 82f8828317 - Issue #18709: Fix CVE-2013-4238. The SSL module now handles NULL bytes
inside subjectAltName correctly. Formerly the module has used OpenSSL's
  GENERAL_NAME_print() function to get the string represention of ASN.1
  strings for `rfc822Name` (email), `dNSName` (DNS) and
  `uniformResourceIdentifier` (URI).
2013-08-23 13:26:49 -04:00
Serhiy Storchaka b445558d84 Issue #16809: Fixed some tkinter incompabilities with Tcl/Tk 8.6. 2013-08-22 17:53:16 +03:00
Serhiy Storchaka 2ac1c1a31d Issue #16809: Tkinter's splitlist() and split() methods now accept Tcl_Obj
argument.

This is needed for support Tcl/Tk 8.6.
2013-08-22 17:42:45 +03:00
Christian Heimes ac6416424b Issue #18747: Update Misc/NEWS to reflect the latest changeset. 2013-08-22 13:22:37 +02:00
Antoine Pitrou 78254dc6fc Issue #18792: Use "127.0.0.1" or "::1" instead of "localhost" as much as possible, since "localhost" goes through a DNS lookup under recent Windows versions. 2013-08-22 00:39:46 +02:00
Serhiy Storchaka 4203570d01 Issue #17119: Fixed integer overflows when processing large Unicode strings
and tuples in the tkinter module.
2013-08-21 21:46:12 +03:00
Charles-François Natali b817faa4ce Issue #15233: Python now guarantees that callables registered with the atexit
module will be called in a deterministic order.
2013-08-21 18:25:00 +02:00
Christian Heimes 0d604cf65e Issue #18747: Re-seed OpenSSL's pseudo-random number generator after fork.
A pthread_atfork() child handler is used to seeded the PRNG with pid, time
and some stack data.
2013-08-21 13:26:05 +02:00
Serhiy Storchaka c360389453 Issue #8865: Concurrent invocation of select.poll.poll() now raises a
RuntimeError exception.  Patch by Christian Schubert.
2013-08-20 20:38:21 +03:00
Serhiy Storchaka a9885e93ee Issue #13461: Fix a crash in the TextIOWrapper.tell method and in the "replace"
error handler on 64-bit platforms.  Patch by Yogesh Chaudhari.
2013-08-20 20:08:53 +03:00
Christian Heimes 10107813ac Issue #18777: The ssl module now uses the new CRYPTO_THREADID API of
OpenSSL 1.0.0+ instead of the deprecated CRYPTO id callback function.
2013-08-19 17:36:29 +02:00
Christian Heimes ec8c2198bd add missing # 2013-08-18 03:11:11 +02:00
Christian Heimes b4ec842f39 Issue 18768: Correct doc string of RAND_edg(). Patch by Vajrasky Kok. 2013-08-17 17:25:18 +02:00
Ezio Melotti 419e23cbb0 #18466: fix more typos. Patch by Févry Thibault. 2013-08-17 16:56:09 +03:00
Christian Heimes 6e0be01bfb Issue #18178: Fix ctypes on BSD. dlmalloc.c was compiled twice which broke malloc weak symbols. 2013-08-17 15:01:54 +02:00
Christian Heimes 88b174c977 Issue #18709: Fix CVE-2013-4238. The SSL module now handles NULL bytes
inside subjectAltName correctly. Formerly the module has used OpenSSL's
GENERAL_NAME_print() function to get the string represention of ASN.1
strings for rfc822Name (email), dNSName (DNS) and
uniformResourceIdentifier (URI).
2013-08-17 00:54:47 +02:00
Antoine Pitrou f48a67b317 Issue #18756: Improve error reporting in os.urandom() when the failure is due to something else than /dev/urandom not existing. 2013-08-16 20:44:38 +02:00
David Wolever a80d3a09fd Issue #18718: datetime documentation contradictory on leap second support 2013-08-14 14:33:54 -04:00
Antoine Pitrou 4221b7c764 Add NEWS entry for 0f17aed78168 (issue #16248) 2013-08-13 20:23:56 +02:00
David Wolever 452dd38150 Issue #17701: Improving strftime documentation 2013-08-12 15:50:10 -04:00
Terry Jan Reedy bb8114cbe6 Issue #18676: Change 'positive' to 'non-negative' in queue.py put and get
docstrings and ValueError messages. Patch by Zhongyue Luo
2013-08-10 18:17:01 -04:00
Terry Jan Reedy 0fd115650a Issue #18429: Add user-oriented News entry about Format / Format Paragraph
now working with comment block selections. Patch was part of 18226 patch.
2013-08-10 17:46:16 -04:00
Terry Jan Reedy 3d35489169 Issue #18226: Add docstrings and unittests for idlelib/FormatParagraph.py.
Move comment code to a separate function so it can be separately tested.
Original patches by Todd Rovito and Phil Webster.
2013-08-10 16:56:20 -04:00
Ezio Melotti 7921b30be6 #18357: add tests for dictview set difference. Patch by Fraser Tweedale. 2013-08-08 20:09:19 +03:00
Serhiy Storchaka e822b034e7 Issue #15866: The xmlcharrefreplace error handler no more produces two XML
entities for a non-BMP character on narrow build.
2013-08-06 16:56:26 +03:00
Martin v. Löwis d5375dfb15 Issue #16067: Add description into MSI file to replace installer's temporary name. 2013-08-03 20:24:00 +02:00
Serhiy Storchaka 3ade66c203 Issue #17998: Fix an internal error in regular expression engine. 2013-08-03 19:26:33 +03:00
Ned Deily 8074364f7a Issue #17557: Fix os.getgroups() to work with the modified behavior of
getgroups(2) on OS X 10.8.  Original patch by Mateusz Lenik.
2013-08-01 21:19:09 -07:00
Ned Deily fb77386ffb Issue #18071: Extension module builds on OS X could fail with TypeError
if Xcode command line tools were not installed.
2013-07-31 00:14:20 -07:00
Terry Jan Reedy 349065500a Issue #18539: Calltips now work for float default arguments. 2013-07-26 18:21:32 -04:00
Terry Jan Reedy 7af16b3829 Issue #18439: Move news entry misplaced by graft merge. 2013-07-21 21:08:29 -04:00
Terry Jan Reedy 68ad1d1372 Issue #18439: Make patchcheck work on Windows for ACKS, NEWS. 2013-07-21 20:57:44 -04:00
Raymond Hettinger 69468146b4 Issue #18513: Add workaround for OS X 10.8 cexp bug that leads to wrong cmath.rect(0.0,-0.0) results. 2013-07-20 10:56:58 -07:00
Serhiy Storchaka f52d574481 Issue #18448: Fix a typo in Demo/newmetaclasses/Eiffel.py. 2013-07-16 22:11:28 +03:00
Richard Oudkerk c8ef9bc694 Issue #18455: multiprocessing should not retry connect() with same socket. 2013-07-15 18:37:48 +01:00
Ronald Oussoren a85fa5c666 Move entry from #18427 to the right section in the NEWS file 2013-07-15 18:35:14 +02:00
Terry Jan Reedy c8a198ce02 Issue #18279: Add tests for idlelib/RstripExtension.py. Original patch by
Phil Webster. With that available, modify RstripExtension.py to stop deleting
null slices, which caused a file to be marked as changed when it was not.
2013-07-13 02:34:35 -04:00
Serhiy Storchaka fab65428d5 Issue #18101: Tcl.split() now process Unicode strings nested in a tuple as it
do with byte strings.

Added tests for Tcl.split() and tcl.splitline().
2013-07-11 20:32:48 +03:00
Ronald Oussoren 3687e8055c Issue #18427: str.replace could crash the interpreter with huge strings.
This fixes two places where 'int'  was used to represent
the size of strings, instead of 'Py_ssize_t'.

(The issue is not present in the corresponding code in the 3.x branches)

Fixes #18427
2013-07-11 13:33:55 +02:00
Ronald Oussoren 51ee65645a Issue #12990: The "Python Launcher" on OSX could not launch python scripts that have paths that include wide characters. 2013-07-06 13:19:58 +02:00
Christian Heimes 20d46692fc Issue #18347: ElementTree's html serializer now preserves the case of closing tags. 2013-07-05 01:41:30 +02:00
Antoine Pitrou 0c503c2c7f Issue #11185: Fix test_wait4 under AIX. Patch by Sébastien Sablé. 2013-07-04 21:03:10 +02:00
Richard Oudkerk 1e462fefd6 Issue #17261: Ensure multiprocessing's proxies use proper address. 2013-07-02 13:31:43 +01:00
Richard Oudkerk 41072db709 Issue #17097: Make multiprocessing ignore EINTR. 2013-07-01 18:45:28 +01:00
Terry Jan Reedy 44d8b11c3e Issue #7136: In the Idle File menu, "New Window" is renamed "New File".
Patch by Tal Einat, Roget Serwy, and Todd Rovito.
2013-07-01 00:42:44 -04:00
Terry Jan Reedy b6eeef4165 Issue #8515: Set __file__ when run file in IDLE. Backport 2c276d0553ff by
Andrew Svetlov, based on initial patch by Bruce Frederiksen.
2013-06-30 19:07:49 -04:00
R David Murray 24dc75365e #18155: Regex-escape delimiter, in case it is a regex special char.
Patch by Vajrasky Kok, with slight modification to the tests by me.
2013-06-29 18:43:59 -04:00
Victor Stinner c1a44269da Issue #18135: ssl.SSLSocket.write() now raises an OverflowError if the input
string in longer than 2 gigabytes. The ssl module does not support partial
write.
2013-06-25 00:48:02 +02:00
Serhiy Storchaka ba908c72a0 Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
OverflowError when an argument of %c format is out of range.
2013-06-23 20:22:09 +03:00
Victor Stinner 4807df41ad Issue #18135: Fix a possible integer overflow in ssl.SSLSocket.write()
for strings longer than 2 gigabytes.
2013-06-23 15:15:10 +02:00
Victor Stinner 760388100e Issue #18137: Detect integer overflow on precision in float.__format__()
and complex.__format__().
2013-06-23 14:56:57 +02:00
Antoine Pitrou 7e9cec04ab Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn. 2013-06-18 22:17:48 +02:00
Serhiy Storchaka e2cc341ffa Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-data
when \r\n appears at end of 65535 bytes without other newlines.
2013-06-17 16:33:48 +03:00
Andrew Kuchling a49dcc51b8 #18113: Objects associated to a curses.panel object with set_userptr() were leaked.
Reported by Atsuo Ishimoto.
2013-06-15 13:53:10 -04:00
Roger Serwy 16ce43a6d8 #5492: Avoid traceback when exiting IDLE caused by a race condition. 2013-06-11 22:13:17 -05:00
Roger Serwy fff3f48365 #17511: Keep IDLE find dialog open after clicking "Find Next".
Original patch by Sarah K.
2013-06-10 23:01:20 -05:00
Serhiy Storchaka 729ad5cf56 Issue #18038: SyntaxError raised during compilation sources with illegal
encoding now always contains an encoding name.
2013-06-09 16:54:56 +03:00
Serhiy Storchaka 95787fdb9c Issue #18094: test_uuid no more reports skipped tests as passed. 2013-05-31 22:34:53 +03:00
Terry Jan Reedy b8fd9cafbe Issue #15392: Create a unittest framework for IDLE, 2.7 version.
Preliminary patch by Rajagopalasarma Jayakrishnan.
2013-05-30 14:47:33 -04:00
Ned Deily 8e60f6ebfb Issue #18098: The deprecated OS X Build Applet.app fails to build on
OS X 10.8 systems because the Apple-deprecated QuickDraw headers have
been removed from Xcode 4.  Skip building it in this case.
2013-05-30 00:14:29 -07:00
Senthil Kumaran 2c4810efa2 #17403: urllib.parse.robotparser normalizes the urls before adding to ruleline.
This helps in handling certain types invalid urls in a conservative manner.
2013-05-29 05:58:47 -07:00
Ned Deily 1ab29e78f9 Issue #18080: When building a C extension module on OS X, if the compiler
is overriden with the CC environment variable, use the new compiler as
the default for linking if LDSHARED is not also overriden.  This restores
Distutils behavior introduced in 2.7.3 and inadvertently dropped in 2.7.4.
2013-05-28 16:31:45 -07:00
Raymond Hettinger 7393c69d6d Issue #18015: Fix unpickling of 2.7.3 and 2.7.4 namedtuples. 2013-05-27 10:58:55 -07:00
Ronald Oussoren 16c52a3376 Issue #17269: Workaround for a platform bug in getaddrinfo on OSX
Without this patch socket.getaddrinfo crashed when called
with some unusual argument combinations.
2013-05-24 13:45:27 +02:00
Ned Deily 674f4fa2ad Issue #17532: Always include Options menu for IDLE on OS X.
Patch by Guilherme Simões.
2013-05-22 15:16:17 -07:00
Benjamin Peterson 1cf48b4adc implement missing inequality on WeakSet 2013-05-22 13:25:41 -07:00
Serhiy Storchaka 54f70923a3 Issue #17844: Refactor a documentation of Python specific encodings.
Add links to encoders and decoders for binary-to-binary codecs.
2013-05-22 15:28:30 +03:00
Serhiy Storchaka cb1a0283c3 Issue #17979: Fixed the re module in build with --disable-unicode. 2013-05-21 22:53:33 +03:00
Roger Serwy 02c0ed0612 #14146: Highlight source line while debugging on Windows. 2013-05-20 22:13:39 -05:00
Benjamin Peterson b91ef008ba add missing NULL check (closes #18019) 2013-05-19 19:38:12 -07:00
Antoine Pitrou f41ffedad0 Issue #11995: test_pydoc doesn't import all sys.path modules anymore. 2013-05-19 15:44:54 +02:00
Vinay Sajip bb6b51ca25 Issue #17981: Closed socket on error in SysLogHandler. 2013-05-16 22:47:47 +01:00
doko@ubuntu.com 9855249a9f - Fix typos in the multiprocessing module. 2013-05-15 16:54:16 +02:00
doko@ubuntu.com 96645cc4ff - Issue #17754: Make ctypes.util.find_library() independent of the locale. 2013-05-15 15:46:11 +02:00
Serhiy Storchaka 7423903eee Issue #17606: Fixed support of encoded byte strings in the XMLGenerator
characters() and ignorableWhitespace() methods.  Original patch by Sebastian
Ortiz Vasquez.
2013-05-12 17:29:34 +03:00
Benjamin Peterson 988aba3ba3 onto 2.7.6 2013-05-11 22:36:05 -05:00
Benjamin Peterson 086494483d bump version to 2.7.5 2013-05-11 22:29:20 -05:00
Benjamin Peterson 5a27168883 prevent IDLE from trying to close when sys.stdin is reassigned (#17838) 2013-05-11 22:24:28 -05:00
Benjamin Peterson 6e165b40e1 backout 214d8909513d for regressions (#1159051) 2013-05-11 13:17:13 -05:00
Benjamin Peterson c8759666d5 -Wformat is needed by gcc 4.8 (closes #17547) 2013-05-11 13:00:05 -05:00
Serhiy Storchaka ce34ba6e3c Issue #16601: Restarting iteration over tarfile no more continues from where
it left off.  Patch by Michael Birtwell.
2013-05-09 14:22:05 +03:00
Terry Jan Reedy 673770c59d Issue 16584: in filecomp._cmp, catch IOError as well as os.error.
Patch by Till Maas.
2013-05-08 23:42:41 -04:00
Antoine Pitrou 4ccdc966ce Fix NEWS order 2013-05-08 03:23:10 +02:00
Antoine Pitrou 1e18102a72 Issue #17928: Fix test_structmembers on 64-bit big-endian machines.
(_testcapi isn't Py_ssize_t-clean, the "s#" code should use an int for length)
2013-05-08 02:07:13 +02:00
Antoine Pitrou 38f1afe8d1 Issue #17926: Fix dbm.__contains__ on 64-bit big-endian machines. 2013-05-08 01:51:37 +02:00
Antoine Pitrou f16ff7bc21 Issue #17918: When using SSLSocket.accept(), if the SSL handshake failed on the new socket, the socket would linger indefinitely.
Thanks to Peter Saveliev for reporting.
2013-05-06 22:19:48 +02:00
Antoine Pitrou 31bc8bef63 Issue #17289: The readline module now plays nicer with external modules or applications changing the rl_completer_word_break_characters global variable.
Initial patch by Bradley Froehle.
2013-05-06 21:51:03 +02:00
Charles-Francois Natali 880359c2bd Issue #12181: select module: Fix struct kevent definition on OpenBSD 64-bit
platforms. Patch by Federico Schwindt.
2013-05-06 21:21:57 +02:00
Ezio Melotti 6a4f394165 #17883: Fix buildbot testing of Tkinter on Windows. Patch by Zachary Ware. 2013-05-05 22:36:09 +03:00
Antoine Pitrou d8931c375a Issue #14173: Avoid crashing when reading a signal handler during interpreter shutdown. 2013-05-04 23:16:59 +02:00
Ezio Melotti 5cea09d290 #7855: Add tests for ctypes/winreg for issues found in IronPython. Initial patch by Dino Viehland. 2013-05-04 17:59:03 +03:00
Serhiy Storchaka 6aca765220 Issue #16316: mimetypes now recognizes the .xz and .txz (.tar.xz) extensions. 2013-05-04 15:11:46 +03:00
Raymond Hettinger 0801d73b1b Issue #15535: Fix regression in pickling of named tuples. 2013-05-03 00:59:20 -07:00
Antoine Pitrou b996e04f11 Issue #17712: Fix test_gdb failures on Ubuntu 13.04. 2013-05-01 00:15:44 +02:00
Gregory P. Smith 4832f34f05 move the NEWS entry to the right section and mention ctypes. 2013-04-30 00:56:07 -07:00
Gregory P. Smith b0cabc2b31 NEWS entry 2013-04-30 00:54:45 -07:00
Nadeem Vawda c1ea5ec905 Add missing NEWS entry for issue #17843. 2013-04-28 19:01:31 +02:00
Serhiy Storchaka 8493a04e0f Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3,
such as was shipped with Centos 5 and Mac OS X 10.4.

This bug was already fixed in issue14572 for 2.7 only and then it was
backported back from 3.3 in issue17073.
2013-04-28 14:09:47 +03:00
Antoine Pitrou 68915d7510 Issue #17835: Fix test_io when the default OS pipe buffer size is larger than one million bytes. 2013-04-24 23:31:38 +02:00
Ronald Oussoren 7b0baf0d87 Ensure that plistlib doesn't corrupt deeply nested datastructures
Without this changeset plistlib would write empty tags for plistlib.Data
objects in deeply nested datastructures.

Fixes #17353
2013-04-23 13:47:06 +02:00
Serhiy Storchaka d194b30407 Issue #11714: Use 'with' statements to assure a Semaphore releases a
condition variable.  Original patch by Thomas Rachel.
2013-04-22 22:51:00 +03:00
Vinay Sajip 4dc385b4e3 Issue #17795: Reverted backwards-incompatible change in SysLogHandler with Unix domain sockets. 2013-04-22 09:58:51 +01:00
R David Murray 5cbff51745 #17065: Use process-unique key for winreg test.
Patch by Jeremy Kloth.
2013-04-21 10:13:43 -04:00
Richard Oudkerk 7bdd93c20e Issue #17555: Fix ForkAwareThreadLock so that size of after fork
registry does not grow exponentially with generation of process.
2013-04-17 19:15:52 +01:00
Roger Serwy 90f8b23be2 #14735: Update IDLE docs to omit "Control-z on Windows". 2013-04-17 00:22:50 -05:00
Antoine Pitrou be92971b38 Issue #17710: Fix cPickle raising a SystemError on bogus input. 2013-04-15 21:35:25 +02:00
Antoine Pitrou 108d1b4a79 Issue #17703: Fix a regression where an illegal use of Py_DECREF() after interpreter finalization can cause a crash. 2013-04-15 21:20:14 +02:00
R David Murray 6077339270 #17341: Include name in re error message about invalid group name.
Patch by Jason Michalski.
2013-04-14 13:08:50 -04:00
Serhiy Storchaka ff99e414c9 Issue #17221: Resort Misc/NEWS. 2013-04-14 18:52:15 +03:00
Serhiy Storchaka 616f2fe28c Issue #17016: Get rid of possible pointer wraparounds and integer overflows
in the re module.  Patch by Nickolai Zeldovich.
2013-04-13 21:15:10 +03:00
Andrew Svetlov 524773020a null merge 2013-04-13 18:07:15 +03:00
Andrew Svetlov 75f1fc27c3 Revert changes for #13355 by request from Raymond Hettinger 2013-04-13 18:05:44 +03:00
doko@ubuntu.com 66da7c573b - Issue #17536: Add to webbrowser's browser list: xdg-open, gvfs-open,
www-browser, x-www-browser, chromium browsers, iceweasel, iceape.
2013-04-13 17:05:11 +02:00
Mark Dickinson f794b143d3 Issue #16447: Fix potential segfault when setting __name__ on a class. 2013-04-13 15:19:05 +01:00
Serhiy Storchaka 6fa83f99af Issue #17656: Fix extraction of zip files with unicode member paths. 2013-04-13 12:28:17 +03:00
Andrew Svetlov b6cdae3db4 Issue #13355: Raise ValueError on random.triangular call with invalid params.
Initial patch by Yuriy Senko.
2013-04-12 23:39:33 +03:00
Ezio Melotti 0ba584c023 #6696: add documentation for the Profile objects, and improve profile/cProfile docs. Patch by Tom Pinckney. 2013-04-12 16:22:24 +03:00
Roger Serwy 53dc4f0148 #17585: Fixed IDLE regression. Now closes when using exit() or quit(). 2013-04-11 19:13:21 -05:00
doko@ubuntu.com 77d8dbc1e8 - Issue #17086: Search the include and library directories provided by the
compiler.
2013-04-11 00:19:55 +02:00
doko@ubuntu.com 5ef41abc7c - Issue #17682: Add the _io module to Modules/Setup.dist (commented out). 2013-04-09 17:34:39 +02:00
Roger Serwy 789299f858 #17657: Show full Tk version in IDLE's about dialog.
Patch by Todd Rovito.
2013-04-08 20:57:13 -05:00
Serhiy Storchaka 371432b961 Close #17666: Fix reading gzip files with an extra field. 2013-04-08 22:33:55 +03:00
doko@ubuntu.com 6cb4343d0d - Issue #13150, #17512: sysconfig no longer parses the Makefile and config.h
files when imported, instead doing it at build time.  This makes importing
  sysconfig faster and reduces Python startup time by 20%.
2013-04-08 21:20:09 +02:00
Roger Serwy 4e9a705887 #17613: Prevent traceback when removing syntax colorizer in IDLE. 2013-04-07 12:41:16 -05:00
Roger Serwy 231a8fd22d #1207589: Backwards-compatibility patch for right-click menu in IDLE. 2013-04-07 12:15:52 -05:00
Benjamin Peterson 74001fad7d list slotdefs in offset order rather than sorting them (closes #17610)
This means we can remove our usage of qsort() than relied on undefined behavior.

Backport by Zbigniew Halas.
2013-04-07 09:52:59 -04:00
Roger Serwy 75b249c914 #16887: IDLE now accepts Cancel in tabify/untabify dialog box. 2013-04-06 20:26:53 -05:00
Roger Serwy 08759c7d2a move idle news entries to its section 2013-04-06 20:21:21 -05:00
Serhiy Storchaka 6c467a41bc Revert a premature patch for issue #14010 (changeset d17d10c84d27). 2013-04-06 22:51:29 +03:00
Benjamin Peterson 0e7df43128 merge heads 2013-04-06 15:19:11 -04:00
Benjamin Peterson 89e2aed9cc move idle news to its own section 2013-04-06 15:19:04 -04:00
Serhiy Storchaka bb84565cdb Issue #14010: Fix a crash when iterating or deleting deeply nested filters
in itertools module (i.e. itertools.izip(), itertools.chain(), etc).
2013-04-06 22:04:10 +03:00
Benjamin Peterson 9db034161e merge 2.7.4 release branch 2013-04-06 10:00:24 -04:00
Benjamin Peterson 376dd0edfa change version to 2.7.4 2013-04-06 09:58:51 -04:00
Benjamin Peterson bf51717022 merge 2.7.4 release branch 2013-04-03 22:35:28 -04:00
Benjamin Peterson 167a96c0ea close search and replace dialog after it is used (closes #17625) 2013-04-03 22:35:12 -04:00
Terry Jan Reedy 6e65e99fe1 Issue #15940: NEWS entry 2013-04-03 13:24:26 -04:00
Roger Serwy ad8cad3c6d #14254: IDLE now handles readline correctly across shell restarts. 2013-04-03 00:42:24 -05:00
Roger Serwy d7c9d9cdcd #17614: IDLE no longer raises exception when quickly closing a file. 2013-04-02 22:37:12 -05:00
R David Murray c993a19480 #13163: fix names of _get_socket args
This was already done in Python3, but having it wrong leads to
incorrect debug output, so it seems worth fixing in 2.7 as well.

Patch by Victor Terrón.
2013-04-02 12:15:07 -04:00
Roger Serwy 34d0c66ef2 #6698: IDLE now opens just an editor window when configured to do so. 2013-03-31 23:28:55 -05:00
Roger Serwy cadd7864d8 #8900: Using keyboard shortcuts in IDLE to open a file no longer raises an exception. 2013-03-31 15:53:08 -05:00
Roger Serwy 6e4e4abf16 #6649: Fixed missing exit status in IDLE. Patch by Guilherme Polo. 2013-03-31 00:57:16 -05:00
Benjamin Peterson 337b1737df merge 2.7.4 release branch 2013-03-30 10:37:25 -04:00
Benjamin Peterson d627e122d7 fall back when an old test_support doesn't have various data and functions (closes #17533) 2013-03-30 10:36:31 -04:00
Ezio Melotti e66e7de5d6 #17526: fix an IndexError raised while passing code without filename to inspect.findsource(). Initial patch by Tyler Doyle. 2013-03-30 05:10:28 +02:00
Christian Heimes 92acb0a81c Issue 17538: Document XML vulnerabilties 2013-03-26 17:53:05 +01:00