Commit graph

38594 commits

Author SHA1 Message Date
Serhiy Storchaka
ef113cd4cc Issue #27861: Fixed a crash in sqlite3.Connection.cursor() when a factory
creates not a cursor.  Patch by Xiang Zhang.
2016-08-29 14:29:55 +03:00
Martin Panter
c427b8d517 Issue #19884: Avoid spurious output on OS X with Gnu Readline
Also adjust the test condition, because enable-meta-key was only added in
6.1, not 6.0.
2016-08-27 03:23:11 +00:00
Berker Peksag
cc9afa9b51 Issue #10513: Fix a regression in Connection.commit()
Statements should not be reset after a commit.

Backported from 029050896b
2016-08-26 22:07:51 +03:00
Raymond Hettinger
7ea386e56e Issue 19504: Change "customise" to "customize" American spelling. 2016-08-25 21:11:50 -07:00
Terry Jan Reedy
39e9af6bb3 Add version to title of IDLE help window. 2016-08-25 20:04:14 -04:00
Terry Jan Reedy
1f8cc33f88 Issue #25564: Mention exec and __builtins__ in IDLE-console difference section. 2016-08-25 01:22:30 -04:00
Guido van Rossum
efa798d1ba A new version of typing.py from https://github.com/python/typing. 2016-08-23 11:01:50 -07:00
Guido van Rossum
83f5a3846c In asyncio.locks.Lock.acquire(): Avoid deadlock when a cancelled future is in self._waiters. 2016-08-23 09:39:03 -07:00
Mark Dickinson
844796530a Issue #27539: Fix unnormalised Fraction.__pow__ result for negative exponent and base. Thanks Vedran Čačić. 2016-08-22 10:50:53 +01:00
Berker Peksag
6afe85827c Issue #21718: cursor.description is now available for queries using CTEs
According to PEP 249, cursor.description must be
available for any SELECT statements, such as those
that use CTEs.

Backported from f67fa9c898

Additional test cases added by me.
2016-08-21 19:38:47 +03:00
Nick Coghlan
8682f578c1 Issue #27782: Fix m_methods handling in multiphase init
Multi-phase extension module import now correctly allows the
``m_methods`` field to be used to add module level functions
to instances of non-module types returned from ``Py_create_mod``.

Patch by Xiang Zhang.
2016-08-21 17:41:56 +10:00
Martin Panter
9c8aa9bffe Issue #27487: Warn if submodule already imported before runpy execution
Also try to clarify the find_spec() error message.
2016-08-21 04:07:58 +00:00
Terry Jan Reedy
9f957705d6 Fix typo in IDLE News. 2016-08-21 00:18:55 -04:00
Terry Jan Reedy
d3fb55797b Add 3.5.3 IDLE NEWS and idlelib/NEWS.txt items. 2016-08-20 21:41:03 -04:00
Terry Jan Reedy
f7ac36837a Issue #27714: Remove unneeded non-idempotent call that fails on retest. 2016-08-20 21:07:38 -04:00
Martin Panter
d874c05547 Issue #27614: Avoid race in test_docxmlrpc server setup 2016-08-20 06:50:58 +00:00
Martin Panter
68c1f1ed03 Issue #27787: Clean up weak references before checking for dangling threads 2016-08-20 06:50:14 +00:00
Berker Peksag
53926f19cd Issue #27801: Skip test_update_lines_cols when update_lines_cols() is not available 2016-08-19 17:59:01 +03:00
R David Murray
750018b91a #2466: ismount now recognizes mount points user can't access.
Patch by Robin Roth, reviewed by Serhiy Storchaka, comment wording
tweaked by me.
2016-08-18 21:27:48 -04:00
Victor Stinner
eec9331b20 Fix SystemError in "raise" statement
Issue #27558: Fix a SystemError in the implementation of "raise" statement.
In a brand new thread, raise a RuntimeError since there is no active
exception to reraise.

Patch written by Xiang Zhang.
2016-08-18 18:13:10 +02:00
Victor Stinner
3da57436ba Issue #27698: Add socketpair to socket.__all__ on Windows 2016-08-17 14:40:08 +02:00
Victor Stinner
7e6977a8bc script_helper: kill the subprocess on error
If Popen.communicate() raises an exception, kill the child process to not leave
a running child process in background and maybe create a zombi process.

This change fixes a ResourceWarning in Python 3.6 when unit tests are
interrupted by CTRL+c.
2016-08-17 12:29:58 +02:00
Gregory P. Smith
d4583d7fea Issue #26750: use inspect.isdatadescriptor instead of our own
_is_data_descriptor().
2016-08-15 23:23:40 -07:00
Terry Jan Reedy
22ba01ea55 Issue #27611: Don't import volatile attribute. 2016-08-16 01:44:12 -04:00
Benjamin Peterson
b1c6bdc76a merge 3.4 2016-08-15 21:43:57 -07:00
Benjamin Peterson
432ea4ff37 fail when negative values are passed to instr() 2016-08-15 21:40:14 -07:00
Donald Stufft
80a3ba90fd merge 3.4 2016-08-14 16:10:17 -04:00
Donald Stufft
5e4aafa258 Update setuptools/pip to 25.2.0/8.1.2 2016-08-14 16:09:56 -04:00
Benjamin Peterson
f17a8e9acd merge 3.4 2016-08-13 18:21:16 -07:00
Benjamin Peterson
40a77c3381 do not allow reading negative values with getstr() 2016-08-13 18:15:28 -07:00
Raymond Hettinger
f6ffa9826e Issue #27720: Fix error in eng_to_decimal docs and add examples from the specification.
(Based on a first draft patch from Evelyn Mitchell.)
2016-08-13 11:15:34 -07:00
Martin Panter
3cf0b2515b Issue #26741: Clean up subprocess.Popen object in test_poll 2016-08-12 11:59:52 +00:00
Martin Panter
b63c56077f Close HTTP connections and responses in tests to avoid ResourceWarnings 2016-08-12 11:59:52 +00:00
Terry Jan Reedy
2084350685 Issue #27714: text_textview now passes when re-run in the same process
because test_idle failed while running with test -w (and no -jn).
2016-08-10 16:52:24 -04:00
Martin Panter
540f0451d2 Correct misspellings of ISO-8859 2016-08-10 05:25:16 +00:00
Vinay Sajip
085e806798 Closes #21999: Handled empty strings correctly when in POSIX mode. 2016-08-09 15:04:49 +01:00
Gregory P. Smith
9854789efe Issue #26750: unittest.mock.create_autospec() now works properly
for subclasses of property() and other data descriptors.
2016-08-07 08:52:26 -07:00
Vinay Sajip
0b588869ee Issue #20160: Merged fix from 3.4. 2016-08-05 21:44:15 +01:00
Vinay Sajip
a0b2568627 Issue #20160: Merged fix from 3.3. 2016-08-05 21:43:25 +01:00
Vinay Sajip
6f25003291 Issue #20160: Handled passing of large structs to callbacks correctly. 2016-08-05 21:24:27 +01:00
Martin Panter
69332c1a64 Fix spelling and grammar in documentation and code comments 2016-08-04 13:07:31 +00:00
Donald Stufft
c6c2217f27 Merge 3.3 2016-08-03 18:48:17 -04:00
Donald Stufft
fb7929044a Switch upload.pypi.io to upload.pypi.org 2016-08-03 18:43:38 -04:00
Senthil Kumaran
436fe5a447 [merge from 3.3] Prevent HTTPoxy attack (CVE-2016-1000110)
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.

Issue #27568 Reported and patch contributed by Rémi Rampin.
2016-07-30 23:34:34 -07:00
Senthil Kumaran
4cbb23f8f2 Prevent HTTPoxy attack (CVE-2016-1000110)
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.

Issue #27568 Reported and patch contributed by Rémi Rampin.
2016-07-30 23:24:16 -07:00
Donald Stufft
ef330d35c8 Merge 3.4 2016-08-03 18:49:19 -04:00
Stefan Krah
9de620e970 Issue #20767: Fix -R option for FreeBSD/clang. 2016-08-03 11:18:26 +02:00
Stefan Krah
e12a68be35 Issue #27241: Catch exception when running pstats as main. 2016-08-02 22:30:24 +02:00
Senthil Kumaran
17742f2d45 [merge from 3.4] - Prevent HTTPoxy attack (CVE-2016-1000110)
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.

Issue #27568 Reported and patch contributed by Rémi Rampin.
2016-07-30 23:39:06 -07:00
Martin Panter
eb9957065a Issue #27626: Spelling fixes in docs, comments and internal names
Based on patch by Ville Skyttä.
2016-07-28 01:11:04 +00:00