summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-16500: Use register_at_fork() in the threading module (#1843)Antoine Pitrou2017-05-281-4/+9
| | | | | | * bpo-16500: Use register_at_fork() in the threading module * Update comment at top of _after_fork()
* bpo-30495: IDLE: Modernize textview.py with docstrings and PEP8 names (#1839)csabella2017-05-283-42/+62
| | | | | Patch by Cheryl Sabella.
* Doc nits for bpo-16500 (#1841)Antoine Pitrou2017-05-281-2/+2
| | | | | | * Doc nits for bpo-16500 * Fix more references
* IDLE test_help_about: edit and add test. (#1838)terryjreedy2017-05-281-47/+75
| | | Coverage is now 100%
* bpo-30290: IDLE: Refactor help_about to PEP8 names (#1714)csabella2017-05-272-95/+119
| | | Patch by Cheryl Sabella.
* bpo-16500: Allow registering at-fork handlers (#1715)Antoine Pitrou2017-05-275-8/+64
| | | | | | | | | | | | * bpo-16500: Allow registering at-fork handlers * Address Serhiy's comments * Add doc for new C API * Add doc for new Python-facing function * Add NEWS entry + doc nit
* bpo-30310: Add a test for non-ascii font family. (#1567) (#1832)Serhiy Storchaka2017-05-271-1/+11
|
* bpo-30398: Add a docstring for re.error. (#1647)Serhiy Storchaka2017-05-271-0/+11
| | | Also document that some attributes may be None.
* bpo-30414: multiprocessing.Queue._feed do not break from main loop on exc ↵grzgrzgrz32017-05-252-12/+24
| | | | | | | | | | | | | | | | | | (#1683) * bpo-30414: multiprocesing.Queue._feed do not break from main loop on exc Queue background running thread was not handling exceptions correctly. Any exception occurred inside thread (putting unpickable object) cause feeder to finish running. After that every message put into queue is silently ignored. * bpo-30414: multiprocesing.Queue._feed do not break from main loop on exc Queue background running thread was not handling exceptions correctly. Any exception occurred inside thread (putting unpickable object) cause feeder to finish running. After that every message put into queue is silently ignored.
* bpo-29104: Fixed parsing backslashes in f-strings. (#490)Serhiy Storchaka2017-05-251-0/+14
|
* bpo-30447: Fix/skip the subinterpreters test on some platforms. (#1791)Eric Snow2017-05-251-43/+42
|
* bpo-29851: Have importlib.reload() raise ImportError if the module's spec is ↵Garvit Khatri2017-05-242-2/+14
| | | | not found (GH-972)
* bpo-30445: Allow appended output in RecursionError messagecodedragon2017-05-241-1/+2
| | | | | Running under coverage sometimes causes 'in comparison' to be added to the end of the RecursionError message, which is acceptable. Patched by Maria Mckinley
* bpo-30442: Skips refcount test in test_xml_etree under coverage (#1767)Kushal Das2017-05-241-0/+1
|
* bpo-30377: Simplify handling of COMMENT and NL in tokenize.py (#1607)Albert-Jan Nijburg2017-05-242-12/+12
|
* bpo-28707: Add the directory parameter to ↵Stéphane Wirtel2017-05-242-3/+19
| | | | | | | | http.server.SimpleHTTPRequestHandler and http.server module (#1776) * bpo-28707: call the constructor of SimpleHTTPRequestHandler in the test with a mock object * bpo-28707: Add the directory parameter to http.server.SimpleHTTPRequestHandler and http.server module
* bpo-30394: Fix a socket leak in smtplib.SMTP.__init__() (#1700)Joel Hillacre2017-05-241-0/+1
|
* Revert "Fixed a typo in the HTMLParser.feed docstrings" (#1771)Serhiy Storchaka2017-05-241-1/+1
| | | | | * Revert "Fixed a typo in the HTMLParser.feed docstrings. The docstring started with an 'r', like a The docstring was correct. I read the patch in opposite direction, as *adding* the "r" prefix. This reverts commit 5ba185039f1bd465d3f82531324fd3fe1ee42f0c.
* Revert an invalid change to a test (from 6b4be19). (#1770)Eric Snow2017-05-231-4/+4
|
* Improves test_underpth_nosite_file to reveal why it fails. (#1763)Steve Dower2017-05-231-6/+10
| | | | | | | | | | | | | | * Improves test_underpth_nosite_file to reveal why it fails. * Enable building with Windows 10 SDK. * Fix WinSDK detection * Fix initialization on Windows when a ._pth file exists. * Fix tabs * Adds comment about Py_GetPath call.
* bpo-29335 - apply suggested test_subprocess simplifications from haypo and ↵Gregory P. Smith2017-05-231-9/+5
| | | | | Zach: (#1757) use faulthandler._sigsegv() and ctypes.util.find_library('c')
* Fixed a typo in the HTMLParser.feed docstrings. The docstring started with ↵Jani Šumak2017-05-231-1/+1
| | | | an 'r', like a rawstring. (#1759)
* call remove_done_callback in finally section (#1688)jimmylai2017-05-231-1/+2
|
* bpo-30432: FileInput doesn't accept PathLike objects for file names (#1732)Roy Williams2017-05-232-0/+17
| | | | | | | | | | * Allow FileInput to accept a single PathLike object as a parameter for `files` Fixes bpo-30432: FileInput doesn't accept PathLike objects for file names * Address comments from @ambv
* bpo-22257: Small changes for PEP 432. (#1728)Eric Snow2017-05-234-9/+36
| | | PEP 432 specifies a number of large changes to interpreter startup code, including exposing a cleaner C-API. The major changes depend on a number of smaller changes. This patch includes all those smaller changes.
* bpo-25532: Protect against infinite loops in inspect.unwrap() (#1717)Thomas Kluyver2017-05-232-3/+24
| | | | | | | | | Some objects (like test mocks) auto-generate new objects on attribute access, which can lead to an infinite loop in inspect.unwrap(). Ensuring references are retained to otherwise temporary objects and capping the size of the memo dict turns this case into a conventional exception instead.
* bpo-29102: Add a unique ID to PyInterpreterState. (#1639)Eric Snow2017-05-231-5/+86
|
* bpo-23894: make lib2to3 recognize f-strings (#1733)Łukasz Langa2017-05-222-1/+7
| | | | | | | Note: this doesn't unpack f-strings into the underlying JoinedStr AST. Ideally we'd fully implement JoinedStr here but given its additional complexity, I think this is worth bandaiding as is. This unblocks tools like https://github.com/google/yapf to format 3.6 syntax using f-strings.
* Make rb'' strings work in lib2to3 (#1724)Łukasz Langa2017-05-222-7/+37
| | | This partially solves bpo-23894.
* Fix spelling mistakes in tkinter.py (#1716)Vijay Kumar2017-05-221-6/+6
| | | Ran the docstrings through spell checker, and fixed spelling issues.
* bpo-30003: Fix handling escape characters in HZ codec (#1556)Xiang Zhang2017-05-221-0/+4
|
* bpo-30290: IDLE: Add more tests for help_about dialog (#1697)mlouielu2017-05-212-28/+99
| | | Increases coverage to 99%
* bpo-30415: Add new tests for the fnmatch module. (#1684)Serhiy Storchaka2017-05-211-9/+55
|
* #30014: refactor poll-related classes (#1035)Giampaolo Rodola2017-05-201-132/+84
| | | | | | | | | | | | | | | | * #30014: refactor poll-related classes so that poll(), epoll() and devpoll() share the same methods for register(), unregister(), close() and select() * remove unused attribute * use specific class attributes instead of select.* constants * have all classes except SelectSelector a _selector attribute * BaseException -> Exception * be explicit in defining a close() method only for selectors which have it * fix AttributeError
* bpo-27945: Fixed various segfaults with dict. (#1657)Serhiy Storchaka2017-05-201-0/+85
| | | | Based on patches by Duane Griffin and Tim Mitchell.
* bpo-25794: Fix `type.__setattr__()` for non-interned attribute names. (#1652)Serhiy Storchaka2017-05-201-0/+27
| | | | Based on patch by Eryk Sun.
* Fix typos in multiple `.rst` files (#1668)delirious-lettuce2017-05-191-1/+1
|
* Remove duplicate line in Lib/http/client.py (#1665)remitamine2017-05-191-1/+0
|
* bpo-27103: regrtest disables -W if -R is used (#1651)Victor Stinner2017-05-181-0/+5
| | | Workaround for a regrtest bug.
* bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489)Jon Dufresne2017-05-1816-35/+28
| | | | | | | | * Replaced list(<generator expression>) with list comprehension * Replaced dict(<generator expression>) with dict comprehension * Replaced set(<list literal>) with set literal * Replaced builtin func(<list comprehension>) with func(<generator expression>) when supported (e.g. any(), all(), tuple(), min(), & max())
* bpo-29976: urllib.parse clarify '' in scheme values. (GH-984)Senthil Kumaran2017-05-181-11/+19
|
* IDLE test_textview: add comments and test, increase coverage to 100% (#1641)terryjreedy2017-05-182-9/+25
|
* bpo-30303: IDLE: Add _utest argument to textview (#1499)Louie Lu2017-05-172-11/+57
|
* bpo-30039: Don't run signal handlers while resuming a yield from stack (#1081)Nathaniel J. Smith2017-05-171-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we have a chain of generators/coroutines that are 'yield from'ing each other, then resuming the stack works like: - call send() on the outermost generator - this enters _PyEval_EvalFrameDefault, which re-executes the YIELD_FROM opcode - which calls send() on the next generator - which enters _PyEval_EvalFrameDefault, which re-executes the YIELD_FROM opcode - ...etc. However, every time we enter _PyEval_EvalFrameDefault, the first thing we do is to check for pending signals, and if there are any then we run the signal handler. And if it raises an exception, then we immediately propagate that exception *instead* of starting to execute bytecode. This means that e.g. a SIGINT at the wrong moment can "break the chain" – it can be raised in the middle of our yield from chain, with the bottom part of the stack abandoned for the garbage collector. The fix is pretty simple: there's already a special case in _PyEval_EvalFrameEx where it skips running signal handlers if the next opcode is SETUP_FINALLY. (I don't see how this accomplishes anything useful, but that's another story.) If we extend this check to also skip running signal handlers when the next opcode is YIELD_FROM, then that closes the hole – now the exception can only be raised at the innermost stack frame. This shouldn't have any performance implications, because the opcode check happens inside the "slow path" after we've already determined that there's a pending signal or something similar for us to process; the vast majority of the time this isn't true and the new check doesn't run at all.
* bpo-30149: Fix partialmethod without explicit self parameter (#1308)Dong-hee Na2017-05-172-4/+44
|
* bpo-30387: Fix warning in test_threading (#1634)Victor Stinner2017-05-171-3/+5
| | | | | | | | | test_is_alive_after_fork() now joins directly the thread to avoid the following warning added by bpo-30357: Warning -- threading_cleanup() failed to cleanup 0 threads after 2 sec (count: 0, dangling: 21) Use also a different exit code to catch generic exit code 1.
* bpo-30301: Fix AttributeError when using SimpleQueue.empty() (#1601)Xiang Zhang2017-05-172-0/+37
| | | | | Under *spawn* and *forkserver* start methods, SimpleQueue.empty() could raise AttributeError due to not setting _poll in __setstate__.
* bpo-30211: bdb: add docstrings (#1350)csabella2017-05-161-18/+212
|
* bpo-30375: Correct the stacklevel of regex compiling warnings. (#1595)Serhiy Storchaka2017-05-162-13/+25
| | | | | | Warnings emitted when compile a regular expression now always point to the line in the user code. Previously they could point into inners of the re module if emitted from inside of groups or conditionals.
* Remove unused variable in test_urllibnet. (#1598)Senthil Kumaran2017-05-161-1/+3
|