summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-38043: Use `bool` for boolean flags on is_normalized_quickcheck. (GH-15711)Greg Price2019-09-091-11/+11
|
* bpo-11953: Extend table of Windows WSA* error codes (GH-15004)Ngalim Siregar2019-09-092-1/+83
|
* bpo-15817: gdbinit: Document commands after defining them (GH-15021)Florian Bruhin2019-09-091-23/+23
| | | | | | | | | | | | | | | | The gdb manual[1] says the following for "document": The command commandname must already be defined. [1] https://sourceware.org/gdb/current/onlinedocs/gdb/Define.html And indeed when trying to use the gdbinit file with gdb 8.3, I get: .../cpython/Misc/gdbinit:17: Error in sourced command file: Undefined command: "pyo". Try "help". Fix this by moving all documentation blocks after the define blocks. This was introduced in GH-6384.
* Fix assertions regarding magic methods function body that was not executed ↵Xtreak2019-09-091-9/+2
| | | | (GH-14154)
* bpo-34410: Fix a crash in the tee iterator when re-enter it. (GH-15625)Serhiy Storchaka2019-09-094-0/+52
| | | | RuntimeError is now raised in this case.
* Revert "Raise a RuntimeError when tee iterator is consumed from different ↵Serhiy Storchaka2019-09-093-12/+1
| | | | | threads (GH-15567)" (GH-15736) This reverts commit fa220ec7633e9674baccc28dde987f29d7f65141.
* bpo-36018: Address more reviewer feedback (GH-15733)Raymond Hettinger2019-09-083-39/+69
|
* bpo-36946:Fix possible signed integer overflow when handling slices. (GH-15639)HongWeipeng2019-09-084-3/+12
| | | | This is a complement to PR 13375.
* Correct Roman-numeral example in Unicode HOWTO. (GH-15541)Greg Price2019-09-081-6/+6
|
* bpo-38038: Remove urllib.parse._splittype from xmlrpc.client. (GH-15703)Dong-hee Na2019-09-081-6/+5
|
* Remove some unused defines in multiprocessing.h. (GH-15661)Sergey Fedoseev2019-09-071-10/+0
| | | | | It looks like they are unused since 87cf220972c9cb400ddcd577962883dcc5dca51a.
* bpo-20806: Reference both times(2) and times(3) and link to MSDN. (GH-15479)Joannah Nanjekye2019-09-071-1/+3
|
* bpo-38041: Refine IDLE Shell restart lines. (GH-15709)Terry Jan Reedy2019-09-064-3/+44
| | | Restart lines now always start with '=' and never end with ' ' and fill the width of the window unless that would require ending with ' ', which could be wrapped by itself and possible confusing the user.
* bpo-15088 : Remove PyGen_NeedsFinalizing() (GH-15702)Joannah Nanjekye2019-09-065-22/+9
| | | | | Remove PyGen_NeedsFinalizing(): it was not documented, tested or used anywhere within CPython after the implementation of PEP 442.
* More refinements to the statistics docs (GH-15713)Raymond Hettinger2019-09-061-27/+33
|
* replace inline function `is_small_int` with a macro version (GH-15710)animalize2019-09-062-15/+10
|
* bpo-37064: Skip test_tools.test_pathfix if installed (GH-15705)Victor Stinner2019-09-051-1/+5
| | | | If Python is installed, skip test_tools.test_pathfix test because Tools/scripts/pathfix.py script is not installed.
* bpo-37878: Remove PyThreadState_DeleteCurrent() function (GH-15315)Joannah Nanjekye2019-09-057-14/+18
| | | | | | | * Rename PyThreadState_DeleteCurrent() to _PyThreadState_DeleteCurrent() * Move it to the internal C API Co-Authored-By: Carol Willing <carolcode@willingconsulting.com>
* bpo-36797: Fix a dead link in Doc/distutils/apiref (GH-15700)Miro Hrončok2019-09-052-2/+3
| | | https://bugs.python.org/issue36797
* bpo-37064: Add option -k to Tools/scripts/pathfix.py (GH-15548)PatrikKopkan2019-09-053-5/+99
| | | Add flag -k to pathscript.py script: preserve shebang flags.
* Correct minor gramatical mistake in sys.settrace doc (GH-15637)Andre Delfino2019-09-051-1/+2
|
* bpo-36409: Remove old plistlib API deprecated in 3.4 (GH-15615)Jon Janzen2019-09-055-324/+31
| | | | * Remove implementation for old plistlib API deprecated in 3.4
* bpo-36324: Apply review comment from Jake Vanderplas (GH-15695)Raymond Hettinger2019-09-051-2/+2
|
* bpo-36324: Apply review comments from Allen Downey (GH-15693)Raymond Hettinger2019-09-053-85/+83
|
* bpo-38026: fix inspect.getattr_static (GH-15676)Inada Naoki2019-09-052-2/+4
| | | | | It should avoid dynamic lookup including `isinstance`. This is a regression caused by GH-5351.
* bpo-37902: IDLE: Add scrolling for IDLE browsers. (#15368)GeeTransit2019-09-057-21/+78
| | | | Modify the wheel event handler so it can also be used for module, path, and stack browsers. Patch by George Zhang.
* bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs ↵Dong-hee Na2019-09-054-2/+13
| | | | | (GH-15522) https://bugs.python.org/issue22347
* Fix idlelib.help comments (GH-15669)Terry Jan Reedy2019-09-051-24/+25
|
* bpo-38030: Fix os.stat failures on block devices on Windows (GH-15681)Steve Dower2019-09-043-6/+22
|
* bpo-36030: Fix a possible segfault in PyTuple_New() (GH-15670)Zackery Spytz2019-09-041-0/+3
|
* Fix grammar in asyncio-dev.rst (GH-15672)Roger Iyengar2019-09-041-1/+1
| | | Automerge-Triggered-By: @ned-deily
* closes bpo-37966: Fully implement the UAX #15 quick-check algorithm. (GH-15558)Greg Price2019-09-044-26/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #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
* bpo-38022: IDLE: upgrade help.html to sphinx 2.x HTML5 output (GH-15664)Tal Einat2019-09-032-167/+229
| | | | | The HTML5 output from Sphinx 2.x adds '<p>' tags within list elements. Using a new prevtag attribute, ignore these instead of emitting unwanted '\n\n'. Also stop looking for 'first' classes on tags (no longer present) and fix the bug of double-spacing instead of single spacing after <pre> blocks.
* bpo-38020: Fixes crash in os.readlink() on Windows (GH-15663)Steve Dower2019-09-032-2/+4
|
* bpo-37798: Fix _statistics module doc (GH-15546)Dong-hee Na2019-09-031-1/+4
|
* bpo-35771: IDLE: Fix flaky tool-tip hover delay tests (GH-15634)Tal Einat2019-09-034-48/+68
| | | | Extending the hover delay in test_tooltip should avoid spurious test_idle failures. One longer delay instead of two shorter delays results in a net speedup.
* Enforce PEP 257 conventions in ftplib.py (GH-15604)Alan Yee2019-09-031-8/+5
| | | | | -`"""` over `'''` -no blank line either before or after the docstring. -place the closing quotes on a line by themselves
* bpo-36853: Fix suspicious.py to actually print the unused rules (#13579)Anthony Sottile2019-09-021-11/+14
| | | | | | * Fix suspicious.py to actually print the unused rules * Fix the other `self.warn` calls
* bpo-38010 Sync importlib.metadata with importlib_metadata 0.20. (GH-15646)Jason R. Coombs2019-09-024-3/+25
| | | Sync importlib.metadata with importlib_metadata 0.20.
* bpo-15999: Clean up of handling boolean arguments. (GH-15610)Serhiy Storchaka2019-09-0121-78/+69
| | | | | | * Use the 'p' format unit instead of manually called PyObject_IsTrue(). * Pass boolean value instead 0/1 integers to functions that needs boolean. * Convert some arguments to boolean only once.
* bpo-15999: Always pass bool instead of int to socket.setblocking(). (GH-15621)Serhiy Storchaka2019-09-017-18/+18
|
* bpo-15999: Always pass bool instead of int to the expat parser. (GH-15622)Serhiy Storchaka2019-09-015-36/+36
|
* bpo-37994: Fix silencing all errors if an attribute lookup fails. (GH-15630)Serhiy Storchaka2019-09-0114-127/+134
| | | Only AttributeError should be silenced.
* bpo-36543: Remove old-deprecated ElementTree features. (GH-12707)Serhiy Storchaka2019-09-017-213/+19
| | | | | Remove methods Element.getchildren(), Element.getiterator() and ElementTree.getiterator() and the xml.etree.cElementTree module.
* bpo-37764: Fix infinite loop when parsing unstructured email headers. (GH-15239)Ashwin Ramaswami2019-08-315-3/+55
| | | | | | | | | | | | Fixes a case in which email._header_value_parser.get_unstructured hangs the system for some invalid headers. This covers the cases in which the header contains either: - a case without trailing whitespace - an invalid encoded word https://bugs.python.org/issue37764 This fix should also be backported to 3.7 and 3.8 https://bugs.python.org/issue37764
* bpo-37977: Warn more strongly and clearly about pickle security (GH-15595)Daniel Pope2019-08-312-4/+19
|
* bpo-37990: fix gc stats (GH-15626)Inada Naoki2019-08-311-2/+3
|
* bpo-37781: use "z" for PY_FORMAT_SIZE_T (GH-15156)Inada Naoki2019-08-301-13/+6
| | | MSVC 2015 supports %zd / %zu. "z" is portable enough nowadays.
* Fix typos mostly in comments, docs and test names (GH-15209)Min ho Kim2019-08-3046-60/+60
|
* IDLE: Fix 2 typos found by Min ho Kim. (GH-15617)Terry Jan Reedy2019-08-302-2/+2
|