summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
Commit message (Collapse)AuthorAgeFilesLines
...
* Doc: Indicate locations of parse_qs, parse_qsl, escape (GH-14828)Miss Islington (bot)2019-09-111-1/+2
| | | | | | | Since they have been removed from cgi it's useful to remind people where they can be found instead. (cherry picked from commit 1abf54336fd2cb545c453d22dd5501392b3350b2) Co-authored-by: Simon Willison <swillison@gmail.com>
* bpo-32972: Document IsolatedAsyncioTestCase of unittest module (GH-15878) ↵Miss Islington (bot)2019-09-111-0/+26
| | | | | | | | | | | | | (GH-15918) * Document `unittest.IsolatedAsyncioTestCase` API * Add a simple example with respect to order of evaluation of setup and teardown calls. https://bugs.python.org/issue32972 Automerge-Triggered-By: @asvetlov (cherry picked from commit 6a9fd66f6e4445a418c43c92585b9e06d76df4b1) Co-authored-by: Xtreak <tir.karthi@gmail.com>
* Fix typo in math.prod example (GH-15614)Miss Islington (bot)2019-09-091-1/+1
| | | | | (cherry picked from commit 1a8de82d3a30ecc7ed18a5ad51a0e17417ebfb89) Co-authored-by: Ashwin Vishnu <9155111+ashwinvis@users.noreply.github.com>
* closes bpo-37966: Fully implement the UAX GH-15 quick-check algorithm. ↵Miss Islington (bot)2019-09-041-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-15558) The purpose of the `unicodedata.is_normalized` function is to answer the question `str == unicodedata.normalized(form, str)` more efficiently than writing just that, by using the "quick check" optimization described in the Unicode standard in UAX GH-15. However, it turns out the code doesn't implement the full algorithm from the standard, and as a result we often miss the optimization and end up having to compute the whole normalized string after all. Implement the standard's algorithm. This greatly speeds up `unicodedata.is_normalized` in many cases where our partial variant of quick-check had been returning MAYBE and the standard algorithm returns NO. At a quick test on my desktop, the existing code takes about 4.4 ms/MB (so 4.4 ns per byte) when the partial quick-check returns MAYBE and it has to do the slow normalize-and-compare: $ build.base/python -m timeit -s 'import unicodedata; s = "\uf900"*500000' \ -- 'unicodedata.is_normalized("NFD", s)' 50 loops, best of 5: 4.39 msec per loop With this patch, it gets the answer instantly (58 ns) on the same 1 MB string: $ build.dev/python -m timeit -s 'import unicodedata; s = "\uf900"*500000' \ -- 'unicodedata.is_normalized("NFD", s)' 5000000 loops, best of 5: 58.2 nsec per loop This restores a small optimization that the original version of this code had for the `unicodedata.normalize` use case. With this, that case is actually faster than in master! $ build.base/python -m timeit -s 'import unicodedata; s = "\u0338"*500000' \ -- 'unicodedata.normalize("NFD", s)' 500 loops, best of 5: 561 usec per loop $ build.dev/python -m timeit -s 'import unicodedata; s = "\u0338"*500000' \ -- 'unicodedata.normalize("NFD", s)' 500 loops, best of 5: 512 usec per loop (cherry picked from commit 2f09413947d1ce0043de62ed2346f9a2b4e5880b) Co-authored-by: Greg Price <gnprice@gmail.com>
* bpo-37951: Lift subprocess's fork() restriction (GH-15544)Miss Islington (bot)2019-08-271-0/+6
| | | | | (cherry picked from commit 98d90f745d35d5d07bffcb46788b50e05eea56c6) Co-authored-by: Christian Heimes <christian@python.org>
* [3.8] bpo-36917: Add default implementation of ↵Miss Islington (bot)2019-08-261-0/+7
| | | | | | | | ast.NodeVisitor.visit_Constant(). (GH-15490) (GH-15509) It emits a deprecation warning and calls corresponding method visit_Num(), visit_Str(), etc. (cherry picked from commit c3ea41e9bf100a5396b851488c3efe208e5e2179)
* bpo-37834: Normalise handling of reparse points on Windows (GH-15370)Steve Dower2019-08-211-0/+21
| | | | | | | | | | bpo-37834: Normalise handling of reparse points on Windows * ntpath.realpath() and nt.stat() will traverse all supported reparse points (previously was mixed) * nt.lstat() will let the OS traverse reparse points that are not name surrogates (previously would not traverse any reparse point) * nt.[l]stat() will only set S_IFLNK for symlinks (previous behaviour) * nt.readlink() will read destinations for symlinks and junction points only bpo-1311: os.path.exists('nul') now returns True on Windows * nt.stat('nul').st_mode is now S_IFCHR (previously was an error)
* bpo-9949: Enable symlink traversal for ntpath.realpath (GH-15287)Miss Islington (bot)2019-08-211-0/+3
| | | | | (cherry picked from commit 75e064962ee0e31ec19a8081e9d9cc957baf6415) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-37759: Second round of edits to Whatsnew 3.8 (GH-15204) (GH-15240)Raymond Hettinger2019-08-131-18/+89
| | | (cherry picked from commit 66a34d35e4c97da9840a29ba9fba76721021c463)
* [3.8] bpo-32912: Revert SyntaxWarning on invalid escape sequences (GH-15142)Serhiy Storchaka2019-08-091-5/+0
| | | | | | | * bpo-32912: Revert warnings for invalid escape sequences. DeprecationWarning will continue to be emitted for invalid escape sequences in string and bytes literals in 3.8 just as it did in 3.7. SyntaxWarning may be emitted in the future. But per mailing list discussion, we don't yet know when because we haven't settled on how to do so in a non-disruptive manner.
* bpo-37759: First round of major edits to Whatsnew 3.8 (GH-15127) (GH-15139)Miss Islington (bot)2019-08-051-37/+168
| | | | | (cherry picked from commit 4f9ffc9d1a6a293563deaaaaf4a13331302219b4) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-33821: Update IDLE section of What's New 3.7 (GH-15036)Miss Islington (bot)2019-07-311-1/+10
| | | | | | | | * bpo-33821: Update IDLE section of What's New 3.7 * Fix roles. (cherry picked from commit 5982b7201b84bfd24a1c2b2836401afee1cad8a7) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-33822: Add IDLE section of What's New 3.8 (GH-15035)Miss Islington (bot)2019-07-311-0/+27
| | | | | | | | * bpo-33822: Add IDLE section of What's New 3.8 * Fix role. (cherry picked from commit a72ca90eb9f13ee2abc7e19b669974d2d0b3d63e) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-36084: Add threading Native ID information to What's New documentation ↵Miss Islington (bot)2019-07-301-4/+12
| | | | | | | (GH-14845) (cherry picked from commit 84846b0187919551b1b08dca447658bbbbb710b1) Co-authored-by: Jake Tesler <jake.tesler@gmail.com>
* bpo-17535: IDLE editor line numbers (GH-14030)Miss Islington (bot)2019-07-232-0/+12
| | | | | (cherry picked from commit 7123ea009b0b004062d91f69859bddf422c34ab4) Co-authored-by: Tal Einat <taleinat@gmail.com>
* bpo-37481: Deprecate distutils bdist_wininst command (GH-14553)Miss Islington (bot)2019-07-051-0/+4
| | | | | | | The distutils bdist_wininst command is now deprecated, use bdist_wheel (wheel packages) instead. (cherry picked from commit 1da4462765b084dfa8d869b6cb5855e8f6014a11) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-37209: Add pickle entry for 3.8 whatsnew (GH-14503) (GH-14512)Miss Islington (bot)2019-07-011-0/+14
| | | | | (cherry picked from commit ec6c1bd0491590f3c0e2908a7b2dfb91b6acdae9) Co-authored-by: Pierre Glaser <pierreglaser@msn.com>
* bpo-37221: Add PyCode_NewWithPosOnlyArgs to be used internally and set ↵Miss Islington (bot)2019-07-011-0/+5
| | | | | | | | PyCode_New as a compatibility wrapper (GH-13959) (#14505) Add PyCode_NewEx to be used internally and set PyCode_New as a compatibility wrapper (cherry picked from commit 4a2edc34a405150d0b23ecfdcb401e7cf59f4650) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-37412: os.getcwdb() now uses UTF-8 on Windows (GH-14396)Miss Islington (bot)2019-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. (cherry picked from commit 689830ee6243126798a6c519c05aa11ba73db7cd) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* Fix minor spelling error in What's new for Python 3.8 (GH-14371)Miss Islington (bot)2019-06-251-1/+1
| | | | | (cherry picked from commit de9b606c90c16cea2780948431bb24e50cc5cd99) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-35224: Add What's new entry for evaluation order in dict comprehensions ↵Miss Islington (bot)2019-06-251-0/+8
| | | | | | | (GH-14319) (cherry picked from commit b51b7137faa22e12c570c70fe0462c662ccd935e) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-37351: Removes libpython38.a from standard Windows distribution (GH-14276)Steve Dower2019-06-221-0/+19
|
* Update What's New in Python 3.8 (GH-14253) (GH-14294)Victor Stinner2019-06-211-1/+1
| | | | | Fix bpo number of PyByteArray_Init removal (cherry picked from commit c68e3fb15d29607a1af2c19ebec552a87c24cb48)
* Update What's New in Python 3.8 (GH-14239)Miss Islington (bot)2019-06-191-1/+2
| | | | | | | * Mention issue in which ByByteArray_Init() has been removed. * Fix typo (cherry picked from commit af41c567af81de7c4408e2e2617f1d3747408434) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* [3.8] bpo-33416: Document changes in PyNode_AddChild and PyParser_AddToken ↵Miss Islington (bot)2019-06-191-0/+2
| | | | | | | | | | | | (GH-14214) (GH-14215) I didn't find any entries in the docs about these functions, so I just mentioned them, in "What's New". (cherry picked from commit 47c2de7725025341318860b9a2601ba7013d27a9) Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com> https://bugs.python.org/issue33416
* bpo-36785: PEP 574 What's New entry (GH-13931)Miss Islington (bot)2019-06-151-1/+17
| | | | | (cherry picked from commit c879ff247ae1b67a790ff98d2d59145302cd4e4e) Co-authored-by: Antoine Pitrou <antoine@python.org>
* bpo-36707: Document "m" removal from sys.abiflags (GH-14090)Miss Islington (bot)2019-06-151-0/+16
| | | | | (cherry picked from commit 7efc526e5cfb929a79c192ac2dcf7eb78d3a4401) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* Document C API changes in What's New in Python 3.8 (GH-14092)Miss Islington (bot)2019-06-141-0/+27
| | | | | (cherry picked from commit bd5798f6d4f6960fd6b49976bdf4326be77f4277) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* [3.8] bpo-37253: Document PyCompilerFlags.cf_feature_version (GH-14019) ↵Victor Stinner2019-06-131-0/+5
| | | | | | | | | (GH-14038) * Update PyCompilerFlags structure documentation. * Document the new cf_feature_version field in the Changes in the C API section of the What's New in Python 3.8 doc. (cherry picked from commit 2c9b498759f4fc74da82a0a96d059d666fa73f16)
* Add some placeholder notes for major 3.8 features (GH-13927) (#13929)Miss Islington (bot)2019-06-121-0/+7
| | | | | (cherry picked from commit b9438ceb20635b00f10615c5b6d8dbe56e1d486b) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
* bpo-35766: Change format for feature_version to (major, minor) (GH-13992) ↵Miss Islington (bot)2019-06-121-3/+3
| | | | | | | | | | (GH-13993) (A single int is still allowed, but undocumented.) https://bugs.python.org/issue35766 (cherry picked from commit 10b55c1643b512b3a2cae8ab89c53683a13ca43e) Co-authored-by: Guido van Rossum <guido@python.org>
* bpo-35766: What's new in the ast and typing modules (GH-13984)Miss Islington (bot)2019-06-111-0/+46
| | | | | (cherry picked from commit 9b33ce48a7846dbdad32d4f8936b08e6b78a2faf) Co-authored-by: Guido van Rossum <guido@python.org>
* bpo-35047: Update whatsnew/3.8 for better mock error message (GH-13746)Petter Strandmark2019-06-041-0/+3
|
* bpo-36868: Fix what's new for SSLContext.hostname_checks_common_name (GH-13248)Christian Heimes2019-06-031-3/+2
| | | | | | What's new now mentions SSLContext.hostname_checks_common_name instead of SSLContext.host_flags. https://bugs.python.org/issue36868
* Add credits to What's New in Python 3.8 (GH-13776)Victor Stinner2019-06-031-1/+18
| | | | * Credit myself and others. * Complete asyncio changes.
* bpo-26219: per opcode cache for LOAD_GLOBAL (GH-12884)Inada Naoki2019-06-031-0/+4
| | | | | | This patch implements per opcode cache mechanism, and use it in only LOAD_GLOBAL opcode. Based on Yury's opcache3.patch in bpo-26219.
* bpo-36974: document PEP 590 (GH-13450)Jeroen Demeyer2019-06-021-0/+16
|
* Fix typos in docs and docstrings (GH-13745)Xtreak2019-06-021-1/+1
|
* bpo-36027: Extend three-argument pow to negative second argument (GH-13266)Mark Dickinson2019-06-021-0/+6
|
* bpo-20092. Use __index__ in constructors of int, float and complex. (GH-13108)Serhiy Storchaka2019-06-011-1/+10
|
* bpo-37122: Make co->co_argcount represent the total number of positonal ↵Pablo Galindo2019-06-011-2/+4
| | | | arguments in the code object (GH-13726)
* Move whats-new entry for math.factorial to the math module section. (GH-13723)Mark Dickinson2019-06-011-3/+3
|
* bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)Serhiy Storchaka2019-06-011-2/+1
|
* Document changes for PyCode_New regarding PEP570 (GH-13706)Pablo Galindo2019-05-311-0/+3
|
* bpo-36610: shutil.copyfile(): use sendfile() on Linux only (GH-13675)Giampaolo Rodola2019-05-301-1/+1
| | | | ...and avoid using it on Solaris as it can raise EINVAL if offset is equal or bigger than the size of the file
* bpo-37007: Implement socket.if_nametoindex(), if_indextoname() and ↵Zackery Spytz2019-05-291-0/+4
| | | | if_nameindex() on Windows (GH-13522)
* bpo-32388: Remove cross-version binary compatibility requirement in tp_flags ↵Antoine Pitrou2019-05-291-0/+9
| | | | | | | | (GH-4944) It is now allowed to add new fields at the end of the PyTypeObject struct without having to allocate a dedicated compatibility flag in tp_flags. This will reduce the risk of running out of bits in the 32-bit tp_flags value.
* bpo-26836: Add os.memfd_create() (#13567)Zackery Spytz2019-05-291-0/+4
| | | | | | | | | | | | | | | | | | | | * bpo-26836: Add os.memfd_create() * Use the glibc wrapper for memfd_create() Co-Authored-By: Christian Heimes <christian@python.org> * Fix deletions caused by autoreconf. * Use MFD_CLOEXEC as the default value for *flags*. * Add memset_s to configure.ac. * Revert memset_s changes. * Apply the requested changes. * Tweak the docs.
* bpo-22454: Add shlex.join() (the opposite of shlex.split()) (GH-7605)Bo Bayles2019-05-291-0/+5
|
* bpo-36933: fix what's new. (GH-13627)Matthias Bussonnier2019-05-281-3/+3
| | | | | | | | Original Pr was reformed and news not updated. https://bugs.python.org/issue36933