summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* bpo-32934: Clarified meaning of 'capacity' for BufferingHandler and ↵Vinay Sajip2019-07-011-7/+9
| | | | MemoryHandler. (GH-14498)
* bpo-37440: Enable TLS 1.3 post-handshake auth in http.client (GH-14448)Christian Heimes2019-07-011-0/+5
| | | | | | Post-handshake authentication is required for conditional client cert authentication with TLS 1.3. https://bugs.python.org/issue37440
* bpo-36168: Lowercase the word "subsequent" in get_value doc (GH-14485)Krishna Oza2019-07-011-1/+1
| | | | | Subsequent -> subsequent https://bugs.python.org/issue36168
* bpo-35621: Support running subprocesses in asyncio when loop is executed in ↵Andrew Svetlov2019-06-302-17/+71
| | | | non-main thread (GH-14344)
* bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469)tmblweed2019-06-301-0/+3
| | | | * Added documentation for textwrap.dedent behavior. * Remove an obsolete note about pre-2.5 behavior from the docstring.
* Make StreamHandler.terminator more discoverable (GH-14359)Andre Delfino2019-06-291-7/+11
|
* Fix indentation in logging.handlers.setStream (GH-14358)Andre Delfino2019-06-291-2/+1
|
* bpo-37390: Add audit event table to documentations (GH-14406)Steve Dower2019-06-2726-86/+123
| | | Also updates some (unreleased) event names to be consistent with the others.
* bpo-37376: pprint support for SimpleNamespace (GH-14318)Carl Bordum Hansen2019-06-261-0/+3
| | | https://bugs.python.org/issue37376
* bpo-37163: Make the obj argument of dataclasses.replace() a positional-only. ↵Serhiy Storchaka2019-06-261-1/+1
| | | | (GH-14390)
* bpo-37412: os.getcwdb() now uses UTF-8 on Windows (GH-14396)Victor Stinner2019-06-261-0/+5
| | | | | | | | | The os.getcwdb() function now uses the UTF-8 encoding on Windows, rather than the ANSI code page: see PEP 529 for the rationale. The function is no longer deprecated on Windows. os.getcwd() and os.getcwdb() now detect integer overflow on memory allocations. On Unix, these functions properly report MemoryError on memory allocation failure.
* bpo-37388: Development mode check encoding and errors (GH-14341)Victor Stinner2019-06-251-0/+14
| | | | | | | | | In development mode and in debug build, encoding and errors arguments are now checked on string encoding and decoding operations. Examples: open(), str.encode() and bytes.decode(). By default, for best performances, the errors argument is only checked at the first encoding/decoding error, and the encoding argument is sometimes ignored for empty strings.
* bpo-37392: Remove sys.setcheckinterval() (GH-14355)Victor Stinner2019-06-251-23/+0
| | | | | | | Remove sys.getcheckinterval() and sys.setcheckinterval() functions. They were deprecated since Python 3.2. Use sys.getswitchinterval() and sys.setswitchinterval() instead. Remove also check_interval field of the PyInterpreterState structure.
* bpo-4963: Fix for initialization and non-deterministic behavior issues in ↵David K. Hess2019-06-241-0/+4
| | | | mimetypes (GH-3062)
* bpo-36889: Document asyncio Stream and StreamServer (GH-14203)Xtreak2019-06-243-65/+280
|
* bpo-37363: Add audit events for a range of modules (GH-14301)Steve Dower2019-06-2419-9/+93
|
* bpo-37345: Add formal UDPLITE support (GH-14258)Gabe Appleton2019-06-241-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At the moment you can definitely use UDPLITE sockets on Linux systems, but it would be good if this support were formalized such that you can detect support at runtime easily. At the moment, to make and use a UDPLITE socket requires something like the following code: ``` >>> import socket >>> a = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 136) >>> b = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 136) >>> a.bind(('localhost', 44444)) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.setsockopt(136, 10, 16) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.setsockopt(136, 10, 32) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.setsockopt(136, 10, 64) >>> b.sendto(b'test'*256, ('localhost', 44444)) ``` If you look at this through Wireshark, you can see that the packets are different in that the checksums and checksum coverages change. With the pull request that I am submitting momentarily, you could do the following code instead: ``` >>> import socket >>> a = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDPLITE) >>> b = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDPLITE) >>> a.bind(('localhost', 44444)) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.set_send_checksum_coverage(16) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.set_send_checksum_coverage(32) >>> b.sendto(b'test'*256, ('localhost', 44444)) >>> b.set_send_checksum_coverage(64) >>> b.sendto(b'test'*256, ('localhost', 44444)) ``` One can also detect support for UDPLITE just by checking ``` >>> hasattr(socket, 'IPPROTO_UDPLITE') ``` https://bugs.python.org/issue37345
* asyncio: Fix docs for default event loop (#14308)Ben Darnell2019-06-221-1/+1
| | | When the Windows default event loop changed, `asyncio-policy.rst` was updated but `asyncio-eventloop.rst` was missed.
* bpo-35224: Reverse evaluation order of key: value in dict comprehensions ↵Jörn Heissler2019-06-221-1/+3
| | | | | | | | | | | (GH-14139) … as proposed in PEP 572; key is now evaluated before value. https://bugs.python.org/issue35224
* Add missing single quote in io.TextIOWrapper.reconfigure documentation ↵Harmon2019-06-191-1/+1
| | | | | (GH-14246) Add a missing single quote character in the documentation for `io.TextIOWrapper.reconfigure`.
* bpo-37331: Clarify format of socket handler messages in the documentation. ↵Vinay Sajip2019-06-191-4/+14
| | | | (GH-14234)
* bpo-37258: Not a bug, but added a unit test and updated documentation. ↵Vinay Sajip2019-06-191-3/+5
| | | | (GH-14229)
* Document typing.ForwardRef (GH-14216)Ivan Levkivskyi2019-06-191-0/+7
|
* bpo-34903: Document that some strptime formats only require 1 digit (GH-14149)Mike Gleen2019-06-181-15/+20
| | | | | | | For datetime.datetime.strptime(), the leading zero for some two-digit formats is optional. This adds a footnote to the strftime/strptime documentation to reflect this fact, and adds some tests to ensure that it is true. bpo-34903
* bpo-5680: IDLE: Customize running a module (GH-13763)Cheryl Sabella2019-06-181-1/+15
| | | The initialize options are 1) add command line options, which are appended to sys.argv as if passed on a real command line, and 2) skip the shell restart. The customization dialog is accessed by a new entry on the Run menu.
* bpo-37320: Remove openfp() of aifc, sunau and wave (GH-14169)Victor Stinner2019-06-172-14/+0
| | | | | aifc.openfp() alias to aifc.open(), sunau.openfp() alias to sunau.open(), and wave.openfp() alias to wave.open() have been removed. They were deprecated since Python 3.7.
* bpo-37039: Make IDLE's Zoom Height adjust to users' screens (GH-13678)Tal Einat2019-06-171-1/+4
| | | | Measure required height by quickly maximizing once per screen. A search for a better method failed.
* bpo-34556: Add --upgrade-deps to venv module (#13100)Cooper Lees2019-06-171-1/+6
| | | | | | | Add --upgrade-deps to venv module - This allows for pip + setuptools to be automatically upgraded to the latest version on PyPI - Update documentation to represent this change bpo-34556: Add --upgrade to venv module
* bpo-37111: Add 'encoding' and 'errors' parameters to logging.basicCon… ↵Vinay Sajip2019-06-172-8/+44
| | | | (GH-14008)
* bpo-37315: Deprecate accepting floats in math.factorial(). (GH-14147)Serhiy Storchaka2019-06-171-0/+3
|
* bpo-37312: Remove _dummy_thread and dummy_threading modules (GH-14143)Victor Stinner2019-06-173-44/+0
| | | | Remove _dummy_thread and dummy_threading modules. These modules were deprecated since Python 3.7 which requires threading support.
* Update link in colorsys docs to be https (GH-14062)Alex Gaynor2019-06-151-1/+1
|
* Update weakref.rst (GH-14098)Géry Ogam2019-06-151-5/+6
|
* bpo-36707: Document "m" removal from sys.abiflags (GH-14090)Victor Stinner2019-06-151-0/+4
|
* bpo-37266: Daemon threads are now denied in subinterpreters (GH-14049)Victor Stinner2019-06-141-0/+8
| | | | | | | | | | | | In a subinterpreter, spawning a daemon thread now raises an exception. Daemon threads were never supported in subinterpreters. Previously, the subinterpreter finalization crashed with a Pyton fatal error if a daemon thread was still running. * Add _thread._is_main_interpreter() * threading.Thread.start() now raises RuntimeError if the thread is a daemon thread and the method is called from a subinterpreter. * The _thread module now uses Argument Clinic for the new function. * Use textwrap.dedent() in test_threading.SubinterpThreadingTests
* bpo-37261: Document sys.unraisablehook corner cases (GH-14059)Victor Stinner2019-06-143-10/+22
| | | | | | | | | | | Document reference cycle and resurrected objects issues in sys.unraisablehook() and threading.excepthook() documentation. Fix test.support.catch_unraisable_exception(): __exit__() no longer ignores unraisable exceptions. Fix test_io test_writer_close_error_on_close(): use a second catch_unraisable_exception() to catch the BufferedWriter unraisable exception.
* Update concurrent.futures.rst (GH-14061)Géry Ogam2019-06-141-6/+8
| | | | | | This PR adds missing details in the [`concurrent.futures`](https://docs.python.org/3/library/concurrent.futures.html) documentation: * the mention that `Future.cancel` also returns `False` if the call finished running; * the mention of the states for `Future` that did not complete: pending or running.
* bpo-37077: Add native thread ID (TID) for AIX (GH-13624)Michael Felt2019-06-132-2/+2
| | | | | | | This is the followup for issue36084 https://bugs.python.org/issue37077
* bpo-6689: os.path.commonpath raises ValueError for different drives isn't ↵Makdon2019-06-131-3/+4
| | | | | | | | | | | | | documented (GH-14045) It would raise ValueError("Paths don't have the same drive") if the paths on different drivers, which is not documented. os.path.commonpath raises ValueError when the *paths* are in different drivers, but it is not documented. Update the document according @Windsooon 's suggestion. It actually raise ValueError according line 355 of [test of path](https://github.com/python/cpython/blob/master/Lib/test/test_ntpath.py) https://bugs.python.org/issue6689
* bpo-37261: Fix support.catch_unraisable_exception() (GH-14052)Victor Stinner2019-06-131-0/+12
| | | | | The __exit__() method of test.support.catch_unraisable_exception context manager now ignores unraisable exception raised when clearing self.unraisable attribute.
* bpo-37160: Thread native ID NetBSD support (GH-13835)David Carlier2019-06-122-2/+2
|
* bpo-32625: Updated documentation for EXTENDED_ARG. (GH-13985)Yao Zuo2019-06-121-4/+4
| | | Python 3.6 changed the size of bytecode instruction, while the documentation for `EXTENDED_ARG` was not updated accordingly.
* bpo-35766: Change format for feature_version to (major, minor) (GH-13992)Guido van Rossum2019-06-121-6/+7
| | | | | | | (A single int is still allowed, but undocumented.) https://bugs.python.org/issue35766
* Do not use explicit inheritance from object in the documentation. (GH-13936)Serhiy Storchaka2019-06-102-2/+2
|
* bpo-37178: Allow a one argument form of math.perm() (GH-13905)Raymond Hettinger2019-06-081-1/+4
|
* bpo-37134: Add PEP570 notation to the signature of byte{array}.translate ↵Pablo Galindo2019-06-061-2/+2
| | | | (GH-13874)
* bpo-37134: Use PEP570 syntax for sum() (GH-13851)Pablo Galindo2019-06-051-3/+3
|
* bpo-35551: encodings update (GH-11446)Ashwin Ramaswami2019-06-051-1/+2
|
* bpo-37134: Add PEP570 notation to the documentation (GH-13743)Pablo Galindo2019-06-052-3/+3
|
* bpo-33725, multiprocessing doc: rephase warning against fork on macOS (GH-13841)Victor Stinner2019-06-051-2/+3
| | | Co-Authored-By: Barry Warsaw <barry@python.org>