summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* bpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503)Pierre Glaser2019-07-011-0/+14
|
* bpo-10945: Drop support for bdist_wininst on non-Windows systems (GH-14506)Miro Hrončok2019-07-011-2/+2
| | | | | | | | | | | bdist_wininst depends on MBCS codec, unavailable on non-Windows, and bdist_wininst have not worked since at least Python 3.2, possibly never on Python 3. Here we document that bdist_wininst is only supported on Windows, and we mark it unsupported otherwise to skip tests. Distributors of Python 3 can now safely drop the bdist_wininst .exe files without the need to skip bdist_wininst related tests.
* bpo-32934: Clarified meaning of 'capacity' for BufferingHandler and ↵Vinay Sajip2019-07-012-10/+12
| | | | MemoryHandler. (GH-14498)
* bpo-37221: Add PyCode_NewWithPosOnlyArgs to be used internally and set ↵Pablo Galindo2019-07-013-11/+34
| | | | | | PyCode_New as a compatibility wrapper (GH-13959) Add PyCode_NewEx to be used internally and set PyCode_New as a compatibility wrapper
* 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-37403: Touch up venv docs (GH-14458)Brett Cannon2019-06-282-7/+20
| | | Add a versionadded for PS Core and note that `.venv` is a common virtual environment name.
* bpo-37337: Add _PyObject_VectorcallMethod() (GH-14228)Jeroen Demeyer2019-06-281-0/+22
|
* bpo-37432: Doc: Fix signature of PyObject_Del() (GH-14430)Hai Shi2019-06-281-1/+1
|
* bpo-37390: Add audit event table to documentations (GH-14406)Steve Dower2019-06-2729-102/+255
| | | Also updates some (unreleased) event names to be consistent with the others.
* bpo-37376: pprint support for SimpleNamespace (GH-14318)Carl Bordum Hansen2019-06-262-0/+9
| | | 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-37414: Remove sys.callstats() (GH-14398)Victor Stinner2019-06-261-0/+5
| | | | | Remove the undocumented sys.callstats() function. Since Python 3.7, it was deprecated and always returned None. It required a special build option CALL_PROFILE which was already removed in Python 3.7.
* Improve Windows commands in tutorial (GH-14379)Steve Dower2019-06-262-12/+10
|
* bpo-37412: os.getcwdb() now uses UTF-8 on Windows (GH-14396)Victor Stinner2019-06-262-0/+10
| | | | | | | | | 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-253-0/+30
| | | | | | | | | 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-20443: _PyConfig_Read() gets the absolute path of run_filename (GH-14053)Victor Stinner2019-06-251-0/+8
| | | | | | | | | | | | Python now gets the absolute path of the script filename specified on the command line (ex: "python3 script.py"): the __file__ attribute of the __main__ module, sys.argv[0] and sys.path[0] become an absolute path, rather than a relative path. * Add _Py_isabs() and _Py_abspath() functions. * _PyConfig_Read() now tries to get the absolute path of run_filename, but keeps the relative path if _Py_abspath() fails. * Reimplement os._getfullpathname() using _Py_abspath(). * Use _Py_isabs() in getpath.c.
* bpo-37392: Update the dir(sys) in module tutorial (GH-14365)Xtreak2019-06-251-16/+20
|
* Fix minor spelling error in What's new for Python 3.8 (GH-14371)Pablo Galindo2019-06-251-1/+1
|
* bpo-35224: Add What's new entry for evaluation order in dict comprehensions ↵Pablo Galindo2019-06-251-0/+8
| | | | (GH-14319)
* bpo-37392: Remove sys.setcheckinterval() (GH-14355)Victor Stinner2019-06-252-23/+5
| | | | | | | 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-2420-14/+98
|
* 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-222-1/+9
| | | | | | | | | | | (GH-14139) … as proposed in PEP 572; key is now evaluated before value. https://bugs.python.org/issue35224
* bpo-37351: Removes libpython38.a from standard Windows distribution (#14276)Steve Dower2019-06-211-0/+19
|
* Use `python -m pip install` in porting guide and venv docs (GH-13257)Brad2019-06-212-11/+17
| | | This is to help prevent people from accidentally installing into the wrong Python interpreter if they are not aware of which Python interpreter `pip` points to.
* Docs: Improved phrasing (GH-14069)Aeros2019-06-211-4/+6
| | | | | | | | * Docs: Improved phrasing Removed usage of second person pronouns in the section and made the assumption of "uneasiness" in code style transition more neutral. * Removed trailing whitespace on line 34
* Update What's New in Python 3.9 (GH-14253)Victor Stinner2019-06-202-1/+2
| | | | * Mention bpo of PyImport_Cleanup removal * Fix bpo number of PyByteArray_Init removal
* bpo-37342: Fix the incorrect nb_index's type in typeobj documentation (GH-14241)Hai Shi2019-06-201-1/+1
| | | It was listed as `binaryfunc`. It should be `unaryfunc`.
* Update What's New in Python 3.8 (GH-14239)Victor Stinner2019-06-191-1/+2
| | | | * Mention issue in which ByByteArray_Init() has been removed. * Fix typo
* 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)
* bpo-36710: Remove PyImport_Cleanup() function (GH-14221)Victor Stinner2019-06-192-15/+3
| | | | | | | * Rename PyImport_Cleanup() to _PyImport_Cleanup() and move it to the internal C API. Add 'tstate' parameters. * Remove documentation of _PyImport_Init(), PyImport_Cleanup(), _PyImport_Fini(). All three were documented as "For internal use only.".
* Document typing.ForwardRef (GH-14216)Ivan Levkivskyi2019-06-191-0/+7
|
* Document changes in PyNode_AddChild and PyParser_AddToken (GH-14214)Ivan Levkivskyi2019-06-191-0/+2
| | | I didn't find any entries in the docs about these functions, so I just mentioned them, in "What's New".
* 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-173-17/+8
| | | | | 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-172-2/+12
| | | | | | | 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-174-9/+56
| | | | (GH-14008)
* bpo-37194: Add PyObject_CallNoArgs() rationale (GH-14159)Victor Stinner2019-06-172-2/+6
| | | | Explain in the doc why PyObject_CallNoArgs() should be preferred over other existing ways to call a function without any arguments.