Yury Selivanov
dccfa13cdb
inspect: Fix getcallargs() to fail correctly if more than 3 args are missing.
...
Patch by Jeremiah Lowin. Closes #20817 .
2014-03-27 18:42:52 -04:00
Yury Selivanov
875df20e8a
inspect: Fix getcallargs() to raise correct TypeError
...
... for missing keyword-only arguments. Patch by Jeremiah Lowin.
Closes #20816 .
2014-03-27 18:23:03 -04:00
Yury Selivanov
374375dd26
inspect.signature: Improve repr of Signature and Parameter. Closes #20378
2014-03-27 12:41:53 -04:00
Yury Selivanov
722e2489bb
asyncio.tests: Autodiscover asyncio tests. Patch by Vajrasky Kok. Closes #20668
2014-03-27 12:21:20 -04:00
Yury Selivanov
da39645ad3
inspect.Signature: Add 'Signature.from_callable' classmethod. Closes #17373
2014-03-27 12:09:24 -04:00
Yury Selivanov
a5d63dd7b8
inspect.signature: Make Signature and Parameter picklable. Closes #20726
2014-03-27 11:31:43 -04:00
Yury Selivanov
21e83a5564
inspect.signature: Use enum for parameter kind constants. Closes #19573
...
Patch by Antony Lee.
2014-03-27 11:23:13 -04:00
Giampaolo Rodola'
4a692ce5ec
Minor cosmetic enhancement to provide a more readable repr()esentation of Extension instances:
...
- <distutils.extension.Extension at 0x2b2088b79b00>
+ <distutils.extension.Extension('_struct') at 0x2b2088b79b00>
2014-03-27 14:14:16 +01:00
Ned Deily
d43bf79b5e
Issue 21069: merge from 3.4
2014-03-27 01:40:16 -07:00
Ned Deily
223082fc69
Issue #21069 : Temporarily use www.google.com while investigating
...
test_urllibnet.test_fileno intermittent failures with www.example.com.
2014-03-27 01:39:28 -07:00
Ned Deily
f6c4fe8c74
Issue #20939 : merge from 3.4
2014-03-26 23:44:18 -07:00
Ned Deily
944d597faa
Issue #20939 : remove stray character from comment
2014-03-26 23:43:26 -07:00
Ned Deily
c74e48566f
Issue #20939 : merge from 3.4
2014-03-26 23:33:28 -07:00
Ned Deily
5a507f0f05
Issue #20939 : Use www.example.com instead of www.python.org to avoid test
...
failures when ssl is not present.
2014-03-26 23:31:39 -07:00
Ned Deily
e74153a436
Issue #20939 : Backout test_urllib2.test_issue16464 disables:
...
68335b8afb1f 3.4
ad0c75b7bd7d default
2014-03-26 23:26:03 -07:00
Raymond Hettinger
8f2420c94b
Broaden the early-out test for nsmallest and nlargest
2014-03-26 02:00:54 -07:00
R David Murray
b0e6951193
Merge #20145 backport: delete whatsnew entry.
2014-03-25 15:34:17 -04:00
R David Murray
ef1c26798c
backport: #20145 : assert[Raises|Warns]Regex now raise TypeError on bad regex.
...
Previously a non-string, non-regex second argument and missing callable
argument could cause the test to appear to always pass.
Initial patch by Kamilla Holanda.
2014-03-25 15:31:50 -04:00
Victor Stinner
1db91ebcd1
(Merge 3.4) Issue #21058 : fix typo in a comment. Patch written by Vajrasky Kok.
2014-03-25 18:19:49 +01:00
Victor Stinner
87d13ea56d
Issue #21058 : fix typo in a comment. Patch written by Vajrasky Kok.
2014-03-25 18:19:17 +01:00
Victor Stinner
ea7db8c78a
Merge 3.4
2014-03-25 12:51:08 +01:00
Victor Stinner
b60ac7acfb
Issue #21038 : Use monotonic clock to compute timeout, not the system clock
2014-03-25 12:50:50 +01:00
Victor Stinner
6f20b7c473
Issue #21038 : Cleanup test_epoll.py
...
Remove useless test and unused variables. Initial patch by Andreas Schwab.
2014-03-25 12:49:53 +01:00
Victor Stinner
0ad0bfabf8
(Merge 3.4) Issue #12209 : Minor edits to faulthandler doc. Patch written by
...
Éric Araujo.
2014-03-25 12:34:17 +01:00
Victor Stinner
215ad66405
Issue #12209 : Minor edits to faulthandler doc. Patch written by Éric Araujo.
2014-03-25 12:33:56 +01:00
Vinay Sajip
6d457287eb
Merged documentation update from 3.4.
2014-03-25 11:22:24 +00:00
Vinay Sajip
4908910ab7
Updated external link in documentation.
2014-03-25 11:21:41 +00:00
Georg Brandl
b50f8c9c0d
merge with 3.4
2014-03-25 10:13:44 +01:00
Georg Brandl
1afe2af690
Closes #21045 : make the Qt help build not look completely stupid
2014-03-25 10:12:47 +01:00
Victor Stinner
acb6c0491c
(Merge 3.4) Issue #21006 : asyncio doc: reorganize subprocess doc
2014-03-25 09:40:39 +01:00
Victor Stinner
984600fba7
Issue #21006 : asyncio doc: reorganize subprocess doc
2014-03-25 09:40:26 +01:00
Georg Brandl
0d046e2a21
merge with 3.4
2014-03-25 09:34:55 +01:00
Georg Brandl
1c669c1154
Closes #18456 : Doc fix: PyDict_Update only works with dict-like objects, not key-value sequences. Patch by priyapappachan.
2014-03-25 09:34:30 +01:00
Victor Stinner
75fd575402
(Merge 3.4) Issue #21058 : Fix a leak of file descriptor in
...
tempfile.NamedTemporaryFile(), close the file descriptor if io.open() fails
2014-03-25 09:19:14 +01:00
Victor Stinner
1f99f9d5c2
Issue #21058 : Fix a leak of file descriptor in tempfile.NamedTemporaryFile(),
...
close the file descriptor if io.open() fails
2014-03-25 09:18:04 +01:00
Victor Stinner
9ba908fec1
Null merge, patch already applied to default
2014-03-25 00:43:03 +01:00
Donald Stufft
eaeb955f48
Merge in 3.4 to bring forward the Issue #21043 changes.
2014-03-24 19:28:08 -04:00
Donald Stufft
4137465bf5
Issue #21043 : Remove the recommendation for specific CA organizations
...
Closes #21043 by updating the documentation to remove specific CA
organizations and update the text to no longer need to tell you to
download root certificates, but instead use the OS certificates
avaialble through SSLContext.load_default_certs.
2014-03-24 19:26:03 -04:00
Charles-François Natali
1d29cc5b6c
Issue #21040 : socketserver: Use the selectors module.
2014-03-24 22:25:39 +00:00
Victor Stinner
e3fb80fb76
(Merge 3.4) Issue #21036 : Fix typo in macro name
...
_PY_HASHTABLE_ENTRY_DATA => _Py_HASHTABLE_ENTRY_DATA
2014-03-24 22:36:01 +01:00
Victor Stinner
d9a7352348
Issue #21036 : Fix typo in macro name
...
_PY_HASHTABLE_ENTRY_DATA => _Py_HASHTABLE_ENTRY_DATA
2014-03-24 22:34:34 +01:00
Georg Brandl
77605cb937
merge with 3.4
2014-03-24 09:06:33 +01:00
Georg Brandl
df48b97855
Fix a few scoping issues with versionadded/versionchanged directives.
2014-03-24 09:06:18 +01:00
Georg Brandl
29636aeacc
Use deprecated-removed directive, clean up a few markup issues around
...
deprecated directives.
2014-03-24 08:42:37 +01:00
Zachary Ware
14017b2a53
Merge with 3.4
2014-03-23 22:22:12 -05:00
Zachary Ware
645d3b7655
Remove superfluous open parenthesis. Noticed by cocoatomo on docs@.
2014-03-23 22:21:38 -05:00
Donald Stufft
17dcf7531c
Merge the patch for issue #21013 into default
2014-03-23 19:12:13 -04:00
Donald Stufft
6a2ba94908
Issue #21013 : Enhance ssl.create_default_context() for server side contexts
...
Closes #21013 by modfying ssl.create_default_context() to:
* Move the restricted ciphers to only apply when using
ssl.Purpose.CLIENT_AUTH. The major difference between restricted and not
is the lack of RC4 in the restricted. However there are servers that exist
that only expose RC4 still.
* Switches the default protocol to ssl.PROTOCOL_SSLv23 so that the context
will select TLS1.1 or TLS1.2 if it is available.
* Add ssl.OP_NO_SSLv3 by default to continue to block SSL3.0 sockets
* Add ssl.OP_SINGLE_DH_USE and ssl.OP_SINGLE_ECDG_USE to improve the security
of the perfect forward secrecy
* Add ssl.OP_CIPHER_SERVER_PREFERENCE so that when used for a server side
socket the context will prioritize our ciphers which have been carefully
selected to maximize security and performance.
* Documents the failure conditions when a SSL3.0 connection is required so
that end users can more easily determine if they need to unset
ssl.OP_NO_SSLv3.
2014-03-23 19:05:28 -04:00
Georg Brandl
60fa3533eb
merge with 3.4
2014-03-23 23:04:45 +01:00
Georg Brandl
553e108fce
tutorial: no "linux2" sys.platform on 3.x (thanks Arfrever)
2014-03-23 23:03:59 +01:00