- 09 Sep, 2019 2 commits
-
-
Serhiy Storchaka authored
RuntimeError is now raised in this case.
-
Serhiy Storchaka authored
Revert "Raise a RuntimeError when tee iterator is consumed from different threads (GH-15567)" (GH-15736) This reverts commit fa220ec7.
-
- 08 Sep, 2019 4 commits
-
-
Raymond Hettinger authored
-
HongWeipeng authored
This is a complement to PR 13375.
-
Greg Price authored
-
Dong-hee Na authored
-
- 07 Sep, 2019 2 commits
-
-
Sergey Fedoseev authored
It looks like they are unused since 87cf2209.
-
Joannah Nanjekye authored
-
- 06 Sep, 2019 4 commits
-
-
Terry Jan Reedy authored
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.
-
Joannah Nanjekye authored
Remove PyGen_NeedsFinalizing(): it was not documented, tested or used anywhere within CPython after the implementation of PEP 442.
-
Raymond Hettinger authored
-
animalize authored
-
- 05 Sep, 2019 12 commits
-
-
Victor Stinner authored
If Python is installed, skip test_tools.test_pathfix test because Tools/scripts/pathfix.py script is not installed.
-
Joannah Nanjekye authored
* Rename PyThreadState_DeleteCurrent() to _PyThreadState_DeleteCurrent() * Move it to the internal C API Co-Authored-By: Carol Willing <carolcode@willingconsulting.com>
-
-
PatrikKopkan authored
Add flag -k to pathscript.py script: preserve shebang flags.
-
Andre Delfino authored
-
Jon Janzen authored
* Remove implementation for old plistlib API deprecated in 3.4
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Inada Naoki authored
It should avoid dynamic lookup including `isinstance`. This is a regression caused by GH-5351.
-
GeeTransit authored
Modify the wheel event handler so it can also be used for module, path, and stack browsers. Patch by George Zhang.
-
-
Terry Jan Reedy authored
-
- 04 Sep, 2019 4 commits
-
-
Steve Dower authored
-
Zackery Spytz authored
-
Roger Iyengar authored
Automerge-Triggered-By: @ned-deily
-
Greg Price authored
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
-
- 03 Sep, 2019 5 commits
-
-
Tal Einat authored
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.
-
Steve Dower authored
-
Dong-hee Na authored
-
Tal Einat authored
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.
-
Alan Yee authored
-`"""` over `'''` -no blank line either before or after the docstring. -place the closing quotes on a line by themselves
-
- 02 Sep, 2019 2 commits
-
-
Anthony Sottile authored
* Fix suspicious.py to actually print the unused rules * Fix the other `self.warn` calls
-
Jason R. Coombs authored
Sync importlib.metadata with importlib_metadata 0.20.
-
- 01 Sep, 2019 5 commits
-
-
Serhiy Storchaka authored
* 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.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
Only AttributeError should be silenced.
-
Serhiy Storchaka authored
Remove methods Element.getchildren(), Element.getiterator() and ElementTree.getiterator() and the xml.etree.cElementTree module.
-