summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31351: Set return code in ensurepip when pip fails (GH-3626)Igor Filatov2017-09-211-0/+3
| | | | Previously ensurepip would always report success, even if the pip installation failed.
* bpo-26510: make argparse subparsers required by default (#3027)Anthony Sottile2017-09-201-2/+5
| | | | | | This fixes a regression from Python 2. To get optional subparsers, use the new parameter ``add_subparsers(required=False)``. Patch by Anthony Sottile.
* bpo-31533: fix broken link to OpenSSL docs (#3674)Felipe2017-09-201-2/+2
|
* Restore dummy_threading and _dummy_thread, but deprecate them (bpo-31370) ↵Antoine Pitrou2017-09-185-31/+19
| | | | (#3648)
* bpo-31431: SSLContext.check_hostname auto-sets CERT_REQUIRED (#3531)Christian Heimes2017-09-151-1/+11
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31386: Custom wrap_bio and wrap_socket type (#3426)Christian Heimes2017-09-151-5/+31
| | | | | | | | | SSLSocket.wrap_bio() and SSLSocket.wrap_socket() hard-code SSLObject and SSLSocket as return types. In the light of future deprecation of ssl.wrap_socket() module function and direct instantiation of SSLSocket, it is desirable to make the return type of SSLSocket.wrap_bio() and SSLSocket.wrap_socket() customizable. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-314777: IDLE - improve rstrip entry in doc (#3602)Terry Jan Reedy2017-09-151-1/+3
| | | | | | | 'Strip trailing whitespace' is not limited to spaces. Wording caters to beginners who do know know the meaning of 'whitespace'. Multiline string literals are not skipped. * News blurb.
* bpo-31128: Allow pydoc to bind to arbitrary hostnames (#3011)Feanil Patel2017-09-141-0/+9
| | | | New -n flag allow overriding localhost with custom value, for example to run from containers.
* Improve code examples in hashlib cookie signing (GH-3562)sww2017-09-141-3/+4
| | | | | The `blake2b` function does not take the `data` keyword argument. The hex digest returned by sign was a string, whereas compare_digest expects bytes-like objects. Typo fix: compare_digesty -> compare_digest
* bpo-31394: Make tokenize.rst PEP 8-compliant (GH-3526)Mariatta2017-09-131-2/+3
| | | The last commit contained lines longer than 80 characters.
* bpo-31394: Clarify documentation about token type attribute (GH-3469)Aivar Annamaa2017-09-131-2/+2
| | | | Make it clear that Ellipsis tokens also have type attribute set to token.OP.
* bpo-31421: Document how IDLE runs tkinter programs. (#3513)Terry Jan Reedy2017-09-121-6/+29
| | | | IDLE calls tcl/tk update in the background in order to make live interaction and experimentatin with tkinter applications much easier.
* bpo-27099: Finish updating IDLE doc and help text. (#3510)Terry Jan Reedy2017-09-121-4/+4
| | | | As needed for the conversion of extensions to features.
* bpo-27099: IDLE - Convert built-in extensions to regular features (#2494)wohlganger2017-09-101-20/+3
| | | | | | | | | | | | | | | | | | | | | About 10 IDLE features were implemented as supposedly optional extensions. Their different behavior could be confusing or worse for users and not good for maintenance. Hence the conversion. The main difference for users is that user configurable key bindings for builtin features are now handled uniformly. Now, editing a binding in a keyset only affects its value in the keyset. All bindings are defined together in the system-specific default keysets in config- extensions.def. All custom keysets are saved as a whole in config- extension.cfg. All take effect as soon as one clicks Apply or Ok. The affected events are '<<force-open-completions>>', '<<expand-word>>', '<<force-open-calltip>>', '<<flash-paren>>', '<<format-paragraph>>', '<<run-module>>', '<<check-module>>', and '<<zoom-height>>'. Any (global) customizations made before 3.6.3 will not affect their keyset- specific customization after 3.6.3. and vice versa. Inital patch by Charles Wohlganger, revised by Terry Jan Reedy.
* bpo-28638: Optimize namedtuple() creation time by minimizing use of exec() ↵Raymond Hettinger2017-09-101-14/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#3454) * Working draft without _source * Re-use itemgetter() instances * Speed-up calls to __new__() with a pre-bound tuple.__new__() * Add note regarding string interning * Remove unnecessary create function wrappers * Minor sync-ups with PR-2736. Mostly formatting and f-strings * Bring-in qualname/__module fix-ups from PR-2736 * Formally remove the verbose flag and _source attribute * Restore a test of potentially problematic field names * Restore kwonly_args test but without the verbose option * Adopt Inada's idea to reuse the docstrings for the itemgetters * Neaten-up a bit * Add news blurb * Serhiy pointed-out the need for interning * Jelle noticed as missing f on an f-string * Add whatsnew entry for feature removal * Accede to request for dict literals instead keyword arguments * Leave the method.__module__ attribute pointing the actual location of the code * Improve variable names and add a micro-optimization for an non-public helper function * Simplify by in-lining reuse_itemgetter() * Arrange steps in more logical order * Save docstring in local cache instead of interning
* Improve IncrementalEncoder documentation (GH-2746)Zhiming Wang2017-09-101-9/+9
| | | getstate and setstate are instance methods, same as encode and reset.
* Make `json.dumps()` example to be PEP-8 compliant. (GH-3472)Sergey Fedoseev2017-09-091-1/+1
|
* bpo-28182: Expose OpenSSL verification results (#3412)Christian Heimes2017-09-081-1/+16
| | | | | | | | | The SSL module now raises SSLCertVerificationError when OpenSSL fails to verify the peer's certificate. The exception contains more information about the error. Original patch by Chi Hsuan Yen Signed-off-by: Christian Heimes <christian@python.org>
* Show example of itemgetter() applied to a dictionary (#3431)Raymond Hettinger2017-09-081-0/+3
|
* bpo-29136: Add TLS 1.3 cipher suites and OP_NO_TLSv1_3 (#1363)Christian Heimes2017-09-081-2/+26
| | | | | | | | | | | | | | | | * bpo-29136: Add TLS 1.3 support TLS 1.3 introduces a new, distinct set of cipher suites. The TLS 1.3 cipher suites don't overlap with cipher suites from TLS 1.2 and earlier. Since Python sets its own set of permitted ciphers, TLS 1.3 handshake will fail as soon as OpenSSL 1.1.1 is released. Let's enable the common AES-GCM and ChaCha20 suites. Additionally the flag OP_NO_TLSv1_3 is added. It defaults to 0 (no op) with OpenSSL prior to 1.1.1. This allows applications to opt-out from TLS 1.3 now. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31344: Per-frame control of trace events (GH-3417)Nick Coghlan2017-09-081-1/+16
| | | | | | | | | f_trace_lines: enable/disable line trace events f_trace_opcodes: enable/disable opcode trace events These are intended primarily for testing of the interpreter itself, as they make it much easier to emulate signals arriving at unfortunate times.
* bpo-31270: Modification of Pr 3200 (#3427)Raymond Hettinger2017-09-071-19/+18
| | | | | | * bpo-31270: Simplify documentation of itertools.zip_longest * Use repeat(). Track num_active.
* bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. ↵Elena Oat2017-09-071-1/+3
| | | | | | (#3272) Also provide a solution if the user wants to keep multiple blank lines.
* bpo-22635: subprocess.getstatusoutput doc update. (#3398)Gregory P. Smith2017-09-071-7/+12
| | | | | The `subprocess.getstatusoutput` API was inadvertently changed in Python 3.3.4. Document the change, it is too late to undo the API change now as it has shipped in many stable releases.
* bpo-14191 Add parse_intermixed_args. (#3319)R. David Murray2017-09-071-3/+41
| | | This adds support for parsing a command line where options and positionals are intermixed as is common in many unix commands. This is paul.j3's patch with a few tweaks.
* bpo-21649: Add RFC 7525 and Mozilla server side TLS (#3387)Christian Heimes2017-09-061-0/+6
| | | Signed-off-by: Christian Heimes <christian@python.org>
* Remove all mention of Windows IA-64 support (GH-3389)Zachary Ware2017-09-061-1/+0
| | | It was mostly removed long ago.
* bpo-27584: New addition of vSockets to the python socket module (#2489)caavery2017-09-061-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-27584: New addition of vSockets to the python socket module Support for AF_VSOCK on Linux only * bpo-27584: Fixes for V2 Fixed syntax and naming problems. Fixed #ifdef AF_VSOCK checking Restored original aclocal.m4 * bpo-27584: Fixes for V3 Added checking for fcntl and thread modules. * bpo-27584: Fixes for V4 Fixed white space error * bpo-27584: Fixes for V5 Added back comma in (CID, port). * bpo-27584: Fixes for V6 Added news file. socket.rst now reflects first Linux introduction of AF_VSOCK. Fixed get_cid in test_socket.py. Replaced PyLong_FromLong with PyLong_FromUnsignedLong in socketmodule.c Got rid of extra AF_VSOCK #define. Added sockaddr_vm to sock_addr. * bpo-27584: Fixes for V7 Minor cleanup. * bpo-27584: Fixes for V8 Put back #undef AF_VSOCK as it is necessary when vm_sockets.h is not installed.
* link to legacy doc on the non-legacy website (#3362)Benjamin Peterson2017-09-051-1/+1
|
* remove IRIX support (closes bpo-31341) (#3310)Benjamin Peterson2017-09-041-6/+3
| | | See PEP 11.
* remote note about IRIX in aifc (#3299)Benjamin Peterson2017-09-041-6/+0
| | | This comment hasn't been true since Python 3.0.
* bpo-1198569: Allow string.Template braced pattern to be different (#3288)Barry Warsaw2017-09-041-3/+15
| | | | | | | | * bpo-1198569: Allow the braced pattern to be different ``string.Template`` subclasses can optionally define ``braceidpattern`` if they want to specify different placeholder patterns inside and outside the braces. If None (the default) it falls back to ``idpattern``.
* Clarify nature of parse_args 'args' argument. (#3292)R. David Murray2017-09-041-3/+15
| | | | Patch by Paul.j3. Includes an unrelated but useful addition to the optparse porting section.
* bpo-30096: Use ABC in abc reference examples (#1220)Eric Appelt2017-08-301-24/+39
| | | Use base class rather than metaclass in examples.
* bpo-31065: Add doc about Popen.poll returning None. (#3169)Ivan Chernoff2017-08-291-1/+1
|
* bpo-30987 - Support for ISO-TP protocol in SocketCAN (#2956)Pier-Yves Lessard2017-08-281-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added support for CAN_ISOTP protocol * Added unit tests for CAN ISOTP * Updated documentation for ISO-TP protocol * Removed trailing whitespace in documentation * Added blurb NEWS.d file * updated Misc/ACKS * Fixed broken unit test that was using isotp const outside of skippable section * Removed dependecy over third party project * Added implementation for getsockname + unit tests * Missing newline at end of ACKS file * Accidentally inserted a type in ACKS file * Followed tiran changes review #1 recommendations * Added spaces after comma
* bpo-26656: Improve re.compile documentation (GH-3211)Henk-Jaap Wagenaar2017-08-281-3/+4
| | | | | - Link to the regular expressions object documentation - Clarify that it can be used with more than the two methods currently stated.
* bpo-31072: Rename the new filter argument for zipapp.create_archive. (#3049)Paul Moore2017-08-261-4/+8
| | | | | | | bpo-31072: Rename the new filter argument for zipapp.create_archive (GH-3049) * Rename the new argument to "filter" * Improve tests for the new functionality * Add a "What's New" entry.
* bpo-23835: Restore legacy defaults= behavior for RawConfigParser (#3191)Łukasz Langa2017-08-241-2/+4
| | | | | | | The fix for bpo-23835 fixed ConfigParser behavior in defaults= handling. Unfortunately, it caused a backwards compatibility regression with RawConfigParser objects which allow for non-string values. This commit restores the legacy behavior for RawConfigParser only.
* bpo-23835: [docs] configparser converts defaults to strings (#3176)Łukasz Langa2017-08-211-1/+5
| | | Title says all.
* bpo-31183: `dis` now handles coroutines & async generators (GH-3077)syncosmic2017-08-181-9/+21
| | | | | | | | | | | | | | Coroutines and async generators use a distinct attribute name for their code objects, so this updates the `dis` module to correctly disassemble objects with those attributes. Due to the increase in the test module length, it also fixes some latent defects in the tests related to how the displayed source line numbers are extracted. https://bugs.python.org/issue31230 is a follow-up issue suggesting we may want to solve this a different way, by instead giving all these object types a common `__code__` attribute, avoiding the need for special casing in the `dis` module.
* bpo-30714: ALPN changes for OpenSSL 1.1.0f (#2305)Christian Heimes2017-08-151-2/+3
| | | | | | | | | | OpenSSL 1.1.0 to 1.1.0e aborted the handshake when server and client could not agree on a protocol using ALPN. OpenSSL 1.1.0f changed that. The most recent version now behaves like OpenSSL 1.0.2 again. The ALPN callback can pretend to not been set. See https://github.com/openssl/openssl/pull/3158 for more details Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31191: Improve grammar in threading.Barrier docs (GH-3080)Saurabh Chaturvedi2017-08-141-2/+2
|
* bpo-31072: Add filter to zipapp (#3021)Jeffrey Rackauckas2017-08-091-1/+6
| | | | | | bpo-31072: Add a filter argument to zipapp.create_archive (GH-3021) * Add an include_file argument to allow callers to decide which files to include * Document the new argument
* Improve grammar in asyncio documentation (GH-2993)Mike DePalatis2017-08-031-1/+1
| | | | "not only is it .." is the correct form, as opposed to: "not only it is ..."
* Spelling fixes (#2902)Ville Skyttä2017-08-031-1/+1
|
* bpo-31080: Allowed logging.config.fileConfig() to accept both args and ↵Preston Landers2017-08-021-1/+8
| | | | kwargs. (GH-2979)
* Document Path.is_mount(), update Misc/ACKS and Misc/NEWS (#2980)Łukasz Langa2017-08-011-0/+12
|
* Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets. (#2896)Alexander Belopolsky2017-07-311-21/+49
| | | | | | | | | | | | | | | | | | * Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets. * bpo-5288: Implemented %z formatting of sub-minute offsets. * bpo-5288: Removed mentions of the whole minute limitation on TZ offsets. * bpo-5288: Removed one more mention of the whole minute limitation. Thanks @csabella! * Fix a formatting error in the docs * Addressed review comments. Thanks, @haypo.
* bpo-30522: Implemented a method to allow setting a logging.StreamHander's ↵Vinay Sajip2017-07-301-0/+13
| | | | stream. (GH-2921)