Pablo Galindo
e14c010378
bpo-32815: Improve docs on the subprocess API *text* parameter (GH-5622)
...
Describe *text* as an alias for *universal_newlines* in more places that people are likely to be referred to.
2018-02-11 12:58:23 -08:00
Cheryl Sabella
988fb28431
bpo-11015: Update test.support documentation (GH-5610)
2018-02-11 23:10:42 +10:00
sblondon
8d1f2f4038
bpo-32800: Update link to w3c doc for xml default namespaces (GH-5609)
...
The new link is given in a red box on the old page.
2018-02-10 17:39:43 -05:00
Serhiy Storchaka
a445feb729
bpo-30688: Support \N{name} escapes in re patterns. (GH-5588)
...
Co-authored-by: Jonathan Eunice <jonathan.eunice@gmail.com>
2018-02-10 00:08:17 +02:00
Alan D Moore
a48e78a0b7
bpo-32585: Add tkinter.ttk.Spinbox. ( #5221 )
2018-02-09 02:03:55 +02:00
Brice Gros
fc1ce810f1
bpo-6135: Fix subprocess.check_output doc to mention changes in 3.6 (GH-5564)
...
Fixes the documentation for `subprocess.check_output()` not mentioning that the encoding and errors parameters were added in 3.6.
2018-02-06 16:46:29 -08:00
Serhiy Storchaka
6c85efa5a6
bpo-32749: Make dbm.dumb databases more cosistent with other dbm databases. ( #5497 )
2018-02-05 22:47:31 +02:00
Mariatta
7a561afd2c
bpo-32720: Fixed the replacement field grammar documentation. (GH-5544)
...
`arg_name` and `element_index` are defined as `digit`+ instead of `integer`.
2018-02-05 04:29:02 -05:00
Raymond Hettinger
ca6c125f10
Fix typo -- missing "not" (GH-5528)
2018-02-04 09:15:01 -08:00
nathankerr96
8b5fa289fd
bpo-32720: Fixed the definition for width and precision in format mini-language doc (GH-5482)
...
Changed the definition of width and precision from "integer" to "digit+" in format mini-language doc.
2018-02-04 00:42:08 -05:00
Leo Arias
c3d9508ff2
bpo-32746: Fix multiple typos (GH-5144)
...
Fix typos found by codespell in docs, docstrings, and comments.
2018-02-03 19:36:10 -05:00
Raymond Hettinger
589c718a8e
bpo-32739: Show default value for rotate() (GH-5485)
2018-02-03 08:46:28 -08:00
Cheryl Sabella
66771422d0
bpo-32614: Modify re examples to use a raw string to prevent warning (GH-5265)
...
Modify RE examples in documentation to use raw strings to prevent DeprecationWarning.
Add text to REGEX HOWTO to highlight the deprecation. Approved by Serhiy Storchaka.
2018-02-02 16:16:27 -05:00
Barry Warsaw
bbbcf8693b
bpo-32303 - Consistency fixes for namespace loaders ( #5481 )
...
* Make sure ``__spec__.loader`` matches ``__loader__`` for namespace packages.
* Make sure ``__spec__.origin` matches ``__file__`` for namespace packages.
https://bugs.python.org/issue32303
https://bugs.python.org/issue32305
2018-02-02 15:15:58 -05:00
Yury Selivanov
383b32fe10
Revert "bpo-31356: Add context manager to temporarily disable GC GH-5495
...
This reverts commit 72a0d218dc
.
The reverted commit had a few issues so it was unanimously decided
to undo it. See the bpo issue for details.
2018-02-02 09:31:06 -05:00
Andrew Svetlov
3d4dbd8f01
Implement TimerHandle.when() ( #5473 )
2018-02-01 19:59:32 +02:00
Serhiy Storchaka
97f1ca1673
[3.8] bpo-31508: Remove support of arguments in tkinter.ttk.Treeview.selection. (GH-3651)
...
It was deprecated in 3.6.
2018-02-01 18:49:21 +02:00
Serhiy Storchaka
12e7cd8a51
bpo-32565: Add missed versionadded directives for all new opcodes. ( #5199 )
2018-02-01 13:48:33 +02:00
Xiang Zhang
a29ddf4078
Make site documentation more clear ( #5461 )
...
Mention only ImportError caused by importing sitecustomize.py/usercustomize.py
themselves will be silently ignored.
2018-01-31 23:50:50 +08:00
Bernhard M. Wiedemann
84521047e4
bpo-30693: zip+tarfile: sort directory listing ( #2263 )
...
tarfile and zipfile now sort directory listing to generate tar and zip archives
in a more reproducible way.
See also https://reproducible-builds.org/docs/stable-inputs/ on that topic.
2018-01-31 11:17:10 +01:00
Stéphane Wirtel
67adb31a41
bpo-32724: Fix references to commands in Doc/pdb.rst (GH-5444)
...
Some commands are specified in the documentation, but there is no direct
references.
2018-01-30 11:34:33 +02:00
John Jolly
066df4fd45
bpo-22908: Add seek and tell functionality to ZipExtFile (GH-4966)
...
This allows for nested zip files, tar files within zip files, zip files within tar files, etc.
Contributed by: John Jolly
2018-01-30 00:51:35 -08:00
Anders Lorentsen
dd42cb71f2
bpo-31961: subprocess now accepts path-like args (GH-4329)
...
Allow os.PathLike args in subprocess APIs.
2018-01-29 23:27:28 -08:00
Bo Bayles
ce0f33d045
bpo-32102 Add "capture_output=True" to subprocess.run (GH-5149)
...
Add "capture_output=True" option to subprocess.run, this is equivalent to
setting stdout=PIPE, stderr=PIPE but is much more readable.
2018-01-29 22:40:39 -08:00
Bo Bayles
ce237c7d58
bpo-21417: Add compresslevel= to the zipfile module (GH-5385)
...
This allows the compression level to be specified when writing zipfiles
(for the entire file *and* overridden on a per-file basis).
Contributed by Bo Bayles
2018-01-29 21:54:07 -08:00
Julien Palard
9424dcbb3e
bpo-32701: Clarify the quotetabs flag in quopri documentation (GH-5401)
2018-01-29 19:36:06 -08:00
Mark Shannon
332cd5ee4f
bpo-32550. Remove the STORE_ANNOTATION bytecode. (GH-5181)
2018-01-29 16:41:04 -08:00
Christian Heimes
b6e43af669
bpo-28134: Auto-detect socket values from file descriptor ( #1349 )
...
Fix socket(fileno=fd) by auto-detecting the socket's family, type,
and proto from the file descriptor. The auto-detection can be overruled
by passing in family, type, and proto explicitly.
Without the fix, all socket except for TCP/IP over IPv4 are basically broken:
>>> s = socket.create_connection(('www.python.org', 443))
>>> s
<socket.socket fd=3, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('2003:58:bc4a:3b00:56ee:75ff:fe47:ca7b', 59730, 0, 0), raddr=('2a04:4e42:1b::223', 443, 0, 0)>
>>> socket.socket(fileno=s.fileno())
<socket.socket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('2003:58:bc4a:3b00::%2550471192', 59730, 0, 2550471192), raddr=('2a04:4e42:1b:0:700c:e70b:ff7f:0%2550471192', 443, 0, 2550471192)>
Signed-off-by: Christian Heimes <christian@python.org>
2018-01-29 22:37:58 +01:00
Pablo Galindo
72a0d218dc
bpo-31356: Add context manager to temporarily disable GC (GH-4224)
2018-01-29 12:37:09 -08:00
Raymond Hettinger
e6d342156d
bpo-25988: Deprecate exposing collections.abc in collections GH-5414
2018-01-29 08:27:49 -08:00
Victor Stinner
db8189bb8d
bpo-31233, bpo-31151: Document socketserver changes ( #5417 )
...
socketserver.ForkingMixIn.server_close() and
socketserver.ThreadingMixIn.server_close() now waits until all child
processes and non-daemonic threads complete.
2018-01-29 12:10:22 +01:00
cocoatomo
2a3260bb03
Fix minor markup typo ( #5407 )
2018-01-29 00:30:48 -08:00
Yury Selivanov
07627e9a6a
bpo-32251: Fix docs ( #5408 )
2018-01-28 23:51:08 -05:00
Yury Selivanov
f11b460d87
bpo-32373: Add socket.getblocking() method. ( #4926 )
2018-01-28 17:27:38 -05:00
Yury Selivanov
631fd38dbf
bpo-32251: Implement asyncio.BufferedProtocol. ( #4755 )
2018-01-28 16:30:26 -05:00
Yury Selivanov
0ceb717689
Revert "bpo-32221: makeipaddr(): remove interface part + speedup (GH-4724)" ( #5394 )
...
This reverts commit 47c0b1f7d4
.
2018-01-28 16:08:32 -05:00
larryhastings
f36ba12809
bpo-32697: Definition order of kwonly params is now guaranteed preserved. ( #5391 )
...
Definition order of kwonly params is now guaranteed preserved.
2018-01-28 11:13:09 -08:00
Yury Selivanov
bec2372b7e
bpo-32327: Revert loop.run_in_executor behaviour: return a Future. ( #5392 )
...
I've run some tests on 3.7 asyncio and it appears that too many
things assume that run_in_executor returns a Future.
2018-01-28 14:09:40 -05:00
jcea
6c51d51880
bpo-32659: Solaris "stat" should support "st_fstype" ( #5307 )
...
* bpo-32659: Solaris "stat" should support "st_fstype"
* Add 'versionadded'
2018-01-28 14:00:08 +01:00
Коренберг Марк
47c0b1f7d4
bpo-32221: makeipaddr(): remove interface part + speedup (GH-4724)
2018-01-27 17:20:50 -05:00
Elvis Pranskevichus
ee72ac0683
bpo-32622: Fix AbstractEventLoop.sendfile signature in documentation. (GH-5368)
2018-01-27 17:11:10 -05:00
Andrew Svetlov
7c684073f9
bpo-32622: Implement loop.sendfile() ( #5271 )
2018-01-27 21:22:47 +02:00
Pablo Galindo
4defba3b95
bpo-31368: Expose preadv and pwritev in the os module ( #5239 )
2018-01-27 17:16:37 +01:00
Xiang Zhang
60da99b8e2
bpo-32532: Improve documentation of settrace and setprofile ( #5359 )
...
Mention in the documentation of settrace and setprofile that errors in the
registered handlers will cause themselves unset.
2018-01-27 23:04:47 +08:00
Christian Heimes
61d478c71c
bpo-31399: Let OpenSSL verify hostname and IP address ( #3462 )
...
bpo-31399: Let OpenSSL verify hostname and IP
The ssl module now uses OpenSSL's X509_VERIFY_PARAM_set1_host() and
X509_VERIFY_PARAM_set1_ip() API to verify hostname and IP addresses.
* Remove match_hostname calls
* Check for libssl with set1_host, libssl must provide X509_VERIFY_PARAM_set1_host()
* Add documentation for OpenSSL 1.0.2 requirement
* Don't support OpenSSL special mode with a leading dot, e.g. ".example.org" matches "www.example.org". It's not standard conform.
* Add hostname_checks_common_name
Signed-off-by: Christian Heimes <christian@python.org>
2018-01-27 15:51:38 +01:00
Christian Heimes
d0e31b980f
bpo-32454: socket closefd ( #5048 )
...
Add close(fd) function to the socket module
Signed-off-by: Christian Heimes <christian@python.org>
2018-01-27 09:54:13 +01:00
Christian Heimes
2f050c7e1b
bpo-32433: Optimized HMAC digest ( #5023 )
...
The hmac module now has hmac.digest(), which provides an optimized HMAC
digest for short messages. hmac.digest() is up to three times faster
than hmac.HMAC().digest().
Signed-off-by: Christian Heimes <christian@python.org>
2018-01-27 09:53:43 +01:00
INADA Naoki
a49ac99029
bpo-32677: Add .isascii() to str, bytes and bytearray (GH-5342)
2018-01-27 14:06:21 +09:00
Yury Selivanov
43c47fe096
bpo-32670: Enforce PEP 479. ( #5327 )
2018-01-26 15:24:24 -05:00
Guido van Rossum
95e4d58913
String annotations [PEP 563] ( #4390 )
...
* Document `from __future__ import annotations`
* Provide plumbing and tests for `from __future__ import annotations`
* Implement unparsing the AST back to string form
This is required for PEP 563 and as such only implements a part of the
unparsing process that covers expressions.
2018-01-26 08:20:18 -08:00