https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
5957f98 Merge branch 'master' into fix_links_collection_docs 26 March 2018, 09:56:09 UTC
0301c9b Fix typo and edit for clarity in the docstrings of sys.float_info. (GH-2251) 26 March 2018, 09:41:30 UTC
3ab44c0 bpo-33096: Fix ttk.Treeview.insert. (GH-6228) Allow ttk.Treeview.insert to insert iid that has a false boolean value. Note iid=0 and iid=False would be same. 26 March 2018, 07:02:05 UTC
2b75fc2 Minor fixes to dataclass tests. (GH-6243) Also, re-enable a test for ClassVars with default_factory. 26 March 2018, 00:37:33 UTC
dfb6e54 Clarify fd inheritance when close_fds=False. (GH-6240) Clarify the subprocess documentation. 25 March 2018, 17:27:59 UTC
a9e5d0e bpo-33053: Remove test_cmd_line_script debugging print (GH-6237) I noticed this had slipped into the original commit when resolving a merge conflict for the backport to 3.7. 25 March 2018, 13:47:54 UTC
51c9ab4 Trivial improvements to dataclasses tests. (GH-6234) 25 March 2018, 13:04:32 UTC
d5d9e02 bpo-33053: -m now adds *starting* directory to sys.path (GH-6231) Historically, -m added the empty string as sys.path zero, meaning it resolved imports against the current working directory, the same way -c and the interactive prompt do. This changes the sys.path initialisation to add the *starting* working directory as sys.path[0] instead, such that changes to the working directory while the program is running will have no effect on imports when using the -m switch. 25 March 2018, 13:03:10 UTC
bc77eff bpo-33042: Fix pre-initialization sys module configuration (GH-6157) - new test case for pre-initialization of sys.warnoptions and sys._xoptions - restored ability to call these APIs prior to Py_Initialize - updated the docs for the affected APIs to make it clear they can be called before Py_Initialize - also enhanced the existing embedding test cases to check for expected settings in the sys module 25 March 2018, 10:44:30 UTC
d02ac25 bpo-33136: Harden ssl module against CVE-2018-8970 (GH-6229) Harden ssl module against LibreSSL CVE-2018-8970. X509_VERIFY_PARAM_set1_host() is called with an explicit namelen. A new test ensures that NULL bytes are not allowed. Signed-off-by: Christian Heimes <christian@python.org> 25 March 2018, 10:36:13 UTC
e4ce9fa bpo-32943: Fix confusing error message for rot13 codec (GH-5869) 25 March 2018, 04:09:21 UTC
c42e7aa Fix invalid escape sequence: use raw string. (GH-6225) 25 March 2018, 03:02:21 UTC
01d618c bpo-33134: dataclasses: use function dispatch table for hash, instead of a string lookup which then is tested with if tests. (GH-6222) * Change _hash_action to be a function table lookup, instead of a list of strings which is then tested with if statements. 25 March 2018, 02:10:14 UTC
f96ddad Trivial dataclass cleanups: (GH-6218) - When adding a single element to a list, use .append() instead of += and creating a new list. - For consistency, import the copy module, instead of just deepcopy. This leaves only a module at the class level, instead of a function. - Improve some comments. - Improve some whitespace. - Use tuples instead of lists. - Simplify a test. 24 March 2018, 21:20:26 UTC
a95d986 bpo-33132: Fix reference counting issues in the compiler. (GH-6209) 24 March 2018, 20:42:35 UTC
4ca0739 bpo-33127: Compatibility patch for LibreSSL 2.7.0 (GH-6210) LibreSSL 2.7 introduced OpenSSL 1.1.0 API. The ssl module now detects LibreSSL 2.7 and only provides API shims for OpenSSL < 1.1.0 and LibreSSL < 2.7. Documentation updates and fixes for failing tests will be provided in another patch set. Signed-off-by: Christian Heimes <christian@python.org> 24 March 2018, 14:41:37 UTC
e42ae91 bpo-24334: Remove inaccurate match_hostname call (#6211) Commit 141c5e8c re-added match_hostname() call. The resurrection of the function call was never intended and was solely a merge mistake. Signed-off-by: Christian Heimes <christian@python.org> 24 March 2018, 14:36:50 UTC
d8b291a bpo-32932: More revealing error message when non-str objects in __all__ (GH-5848) 24 March 2018, 10:39:36 UTC
5cbb841 bpo-27428: Fix WindowsRegistryFinder documentation to list appropriate ABC (GH-6061) 23 March 2018, 21:26:35 UTC
8bcfa02 bpo-31639: Use threads in http.server module. (GH-5018) 23 March 2018, 16:40:33 UTC
a0a42d2 Fix a reference to the MRE book in re docs (GH-1113) Reported by Maksym Nikulyak on docs.p.o. 23 March 2018, 13:46:52 UTC
397466d bpo-30953: Improve error messages and add tests for jumping (GH-6196) into/out of an except block. 23 March 2018, 12:46:45 UTC
702f8f3 bpo-33041: Rework compiling an "async for" loop. (#6142) * Added new opcode END_ASYNC_FOR. * Setting global StopAsyncIteration no longer breaks "async for" loops. * Jumping into an "async for" loop is now disabled. * Jumping out of an "async for" loop no longer corrupts the stack. * Simplify the compiler. 23 March 2018, 12:34:35 UTC
c65bf3f bpo-32999: ast: Convert useless check to assert (GH-6197) 23 March 2018, 09:19:34 UTC
56970b8 bpo-32505: dataclasses: raise TypeError if a member variable is of type Field, but doesn't have a type annotation. (GH-6192) If a dataclass has a member variable that's of type Field, but it doesn't have a type annotation, raise TypeError. 22 March 2018, 20:28:48 UTC
f757b72 bpo-32999: Revert GH-6002 (fc7df0e6) (GH-6189) bpo-33018 (GH-5944) fixed bpo-32999 too. So fc7df0e6 is not required anymore. Revert it except test case. 22 March 2018, 12:52:42 UTC
40472dd bpo-33018: Improve issubclass() error checking and message. (GH-5944) This improves error message for situations when a non-class is checked w.r.t. an abstract base class. 22 March 2018, 11:26:06 UTC
d93b516 Upgrade pip to v9.0.3 and setuptools to v39.0.1 (#6184) 22 March 2018, 02:47:44 UTC
8e4560a Add 'Field' to dataclasses.__all__. (GH-6182) - Add missing 'Field' to __all__. - Improve tests to catch this. 21 March 2018, 21:10:22 UTC
dec1c77 FIX failure on OSX sem_getvalue (#6180) 21 March 2018, 17:56:27 UTC
e2f33ad bpo-33078 - Fix queue size on pickling error (GH-6119) 21 March 2018, 15:50:28 UTC
9308dea Fix typos in mmap() error messages (GH-6173) 21 March 2018, 06:02:37 UTC
8f6eccd bpo-32896: Fix error when subclassing a dataclass with a field that uses a default_factory (GH-6170) Fix the way that new annotations in a class are detected. 21 March 2018, 02:00:23 UTC
10b134a bpo-27683: Fix a regression for host() of ipaddress network objects (GH-6016) The result of host() was not empty when the network is constructed by a tuple containing an integer mask and only 1 bit left for addresses. 21 March 2018, 00:25:13 UTC
5609b78 bpo-18802: Add more details to ipaddress documentation (GH-6083) Original patch by Jon Foster and Berker Peksag. 21 March 2018, 00:09:15 UTC
4be79f2 bpo-28247: Document Windows executable creation in zipapp (GH-6158) 20 March 2018, 22:23:19 UTC
2cb4661 bpo-33034: Improve exception message when cast fails for {Parse,Split}Result.port (GH-6078) 20 March 2018, 06:41:37 UTC
7389fd9 bpo-33100: Dataclasses now handles __slots__ and default values correctly. (GH-6152) If the class has a member that's a MemberDescriptorType, it's not a default value, it's from that member being in __slots__. 20 March 2018, 01:07:51 UTC
4573820 bpo-33061: Add missing 'NoReturn' to __all__ in typing.py (GH-6127) 19 March 2018, 18:41:32 UTC
f199bc6 bpo-32953: Dataclasses: frozen should not be inherited for non-dataclass derived classes (#6147) If a non-dataclass derives from a frozen dataclass, allow attributes to be set. Require either all of the dataclasses in a class hierarchy to be frozen, or all non-frozen. Store `@dataclass` parameters on the class object under `__dataclass_params__`. This is needed to detect frozen base classes. 19 March 2018, 00:40:34 UTC
3fe3304 bpo-19417: Add test_bdb.py (GH-5217) 18 March 2018, 20:02:47 UTC
f64aae4 Revert "bpo-30406: Make async and await proper keywords (#1669)" (GH-6143) This reverts commit ac317700ce7439e38a8b420218d9a5035bba92ed. (Reverts only the lib2to3 part.) 18 March 2018, 16:54:33 UTC
fe2bbb1 bpo-32489: Allow 'continue' in 'finally' clause. (GH-5822) 18 March 2018, 07:56:52 UTC
134cb01 bpo-32056: Improve exceptions in aifc, wave and sunau. (GH-5951) 18 March 2018, 07:55:53 UTC
bc300ce bpo-33041: Add tests for jumps in/out of 'async with' blocks. (#6110) 18 March 2018, 07:53:08 UTC
bbf7bb7 bpo-27645: Fix version number in 'database in transaction' fallback (GH-6131) It was actually fixed in SQLite 3.8.8, not 3.8.7. 18 March 2018, 00:48:55 UTC
7f81bb2 Update pip to 9.0.2 and setuptools to 38.6.1 (#6133) 17 March 2018, 15:13:48 UTC
c2b0b12 bpo-32374: m_traverse may be called with m_state=NULL (GH-5140) Multi-phase initialized modules allow m_traverse to be called while the module is still being initialized, so module authors may need to account for that. 17 March 2018, 05:41:20 UTC
d6e1404 bpo-33021: Fix GCC 7 warning (-Wmaybe-uninitialized) in mmapmodule.c (#6117) 14 March 2018, 20:08:01 UTC
74f5687 lib2to3: Add more tests (#6101) 13 March 2018, 17:53:22 UTC
b8e9d6c bpo-17288: Prevent jumps from 'return' and 'exception' trace events. (GH-6107) (cherry picked from commit e32bbaf376a09c149fa7c7f2919d7c9ce4e2a055) 13 March 2018, 17:31:31 UTC
5affd5c bpo-32885: Tools/scripts/pathfix.py: Add -n option for no backup~ (#5772) Creating backup files with ~ suffix can be undesirable in some environment, such as when building RPM packages. Instead of requiring the user to remove those files manually, option -n was added, that simply disables this feature. -n was selected because 2to3 has the same option with this behavior. 13 March 2018, 09:56:43 UTC
b51f5de bpo-33064: lib2to3: support trailing comma after *args and **kwargs (#6096) New tests also added. I also made the comments in line with the builtin Grammar/Grammar. PEP 306 was withdrawn, Kees Blom's railroad program has been lost to the sands of time for at least 16 years now (I found a python-dev post from people looking for it). 13 March 2018, 07:44:49 UTC
a34510a bpo-29719: Remove Date and Release field in whatsnew/3.7 and 8 (GH-6093) 13 March 2018, 01:16:08 UTC
37ed6df Add macOS installer Conclusion file 12 March 2018, 20:49:59 UTC
019f5b3 bpo-22674: fix test_strsignal on OSX (GH-6085) 12 March 2018, 19:03:14 UTC
b21505e Fix docs markup for asyncio current_task() and all_tasks() (#6089) 12 March 2018, 18:50:50 UTC
095ee41 bpo-33056 FIX leaking fd in concurrent.futures.ProcessPoolExecutor (#6084) 12 March 2018, 17:18:41 UTC
5d2a27d signal: add strsignal() (#6017) Co-authored-by: Vajrasky Kok <sky.kok@speaklikeaking.com> 12 March 2018, 13:42:34 UTC
4484f9d bpo-33021: Release the GIL during fstat() calls (GH-6019) fstat may block for long time if the file descriptor is on a non-responsive NFS server, hanging all threads. Most fstat() calls are handled by _Py_fstat(), releasing the GIL internally, but but _Py_fstat_noraise() does not release the GIL, and most calls release the GIL explicitly around it. This patch fixes last 2 calls to _Py_fstat_no_raise(), avoiding hangs when calling: - mmap.mmap() - os.urandom() - random.seed() 11 March 2018, 23:39:22 UTC
e756f66 bpo-31804: Fix multiprocessing.Process with broken standard streams (#6079) In some conditions the standard streams will be None or closed in the child process (for example if using "pythonw" instead of "python" on Windows). Avoid failing with a non-0 exit code in those conditions. Report and initial patch by poxthegreat. 11 March 2018, 18:21:38 UTC
9fb8415 Drop confusing commented out code in pystrtod.c (GH-6072) 11 March 2018, 09:45:10 UTC
e2732d3 bpo-32970: Improve disassembly of the MAKE_FUNCTION instruction. (GH-5937) 11 March 2018, 09:07:06 UTC
3f7e9aa bpo-32925: Optimized iterating and containing test for literal lists (GH-5842) consisting of non-constants: `x in [a, b]` and `for x in [a, b]`. The case of all constant elements already was optimized. 11 March 2018, 08:54:47 UTC
4e24425 bpo-32946: Speed up "from ... import ..." from non-packages. (GH-5873) 11 March 2018, 08:52:37 UTC
b931bd0 bpo-32338: OrderedDict import is no longer needed in re. (#4891) 11 March 2018, 06:38:13 UTC
26c9f56 bpo-33026: Fix jumping out of "with" block by setting f_lineno. (#6026) 11 March 2018, 06:32:47 UTC
51302a5 bpo-32996: Improve What's New in 3.7. (#5983) 11 March 2018, 01:48:14 UTC
9cf8c42 bpo-33045: Fix typos in SSL documentation (GH-6065) 11 March 2018, 01:00:04 UTC
7280a4e bpo-27645: Skip test_bad_target_in_transaction if SQLite == 3.8.7.1 (GH-6067) 11 March 2018, 00:38:50 UTC
d7aed41 bpo-27645: Add support for native backup facility of SQLite (GH-4238) 10 March 2018, 22:08:31 UTC
c10b288 bpo-30249: Improve struct.unpack_from() error messages (GH-6059) 10 March 2018, 18:58:52 UTC
67ee077 bpo-33041: Add missed error checks when compile "async for" (#6053) and remove redundant code. 10 March 2018, 16:49:26 UTC
24d3201 bpo-33041: Fixed bytecode generation for "async for" with a complex target. (#6052) A StopAsyncIteration raised on assigning or unpacking will be now propagated instead of stopping the iteration. 10 March 2018, 16:22:34 UTC
5e80a71 bpo-33037: Skip sending/receiving after SSL transport closing (GH-6044) * Skip write()/data_received() if sslpipe is destroyed 10 March 2018, 15:48:35 UTC
496431f bpo-26701: Improve documentation for the rounding special methods. (#6054) 10 March 2018, 15:18:32 UTC
308eab9 bpo-26701: Add documentation for __trunc__ (GH-6022) `int` fails back to `__trunc__` is `__int__` isn't defined, so cover that in the docs. 10 March 2018, 08:44:12 UTC
10485eb Warn that dbm.dumb.open() can crash Python (GH-6047) 09 March 2018, 23:58:40 UTC
f7a6ff6 Warn that compile() can crash when compiling to an AST object (GH-6043) 09 March 2018, 21:13:32 UTC
7a7f100 bpo-32758: Warn that ast.parse() and ast.literal_eval() can segfault the interpreter (GH-5960) 09 March 2018, 20:03:22 UTC
83d7062 controlflow: Use full example for "5 through 9" (GH-5907) Replace example result of "5 through 9" with complete list: "5, 6, 7, 8, 9". This format is more consistent with the surrounding examples. 09 March 2018, 19:57:21 UTC
3b20d34 bpo-33016: Fix potential use of uninitialized memory in nt._getfinalpathname (#6010) 08 March 2018, 16:03:25 UTC
3c7ac7e Add two missing error checks in hamt.c (GH-5851) 08 March 2018, 05:59:46 UTC
e405096 Fix some ipaddress documentation errors (GH-6021) * fix a typo: documention -> documentation * fix the type of IPv?Network.hostmask * add documentation about IPv?Network.netmask * fix IPv6Network constructor doc that extended netmasks are not supported 08 March 2018, 04:24:36 UTC
fc7df0e bpo-32999: Fix ABC.__subclasscheck__ crash (GH-6002) 07 March 2018, 07:27:01 UTC
bc3f228 bpo-32969: Expose some missing constants in zlib and fix the doc (GH-5988) 07 March 2018, 05:05:37 UTC
8a38721 bpo-33009: Fix inspect.signature() for single-parameter partialmethods. (GH-6004) 06 March 2018, 17:59:45 UTC
5d92647 bpo-33005: Fix _PyGILState_Reinit() (#6001) Fix a crash on fork when using a custom memory allocator (ex: using PYTHONMALLOC env var). _PyGILState_Reinit() and _PyInterpreterState_Enable() now use the default RAW memory allocator to allocate a new interpreters mutex on fork. 06 March 2018, 13:31:37 UTC
efd2bac Fix strncpy warning with gcc 8 (#5840) The length in strncpy is one char too short and as a result it leads to a build warning with gcc 8. Comment out the strncpy since the interpreter aborts immediately after anyway. 06 March 2018, 10:34:35 UTC
b9650a0 bpo-32991: Restore expectation that inspect.getfile raises TypeError on namespace package (GH-5980) * bpo-32991: Add test capturing expectation. DocTestFinder.find should return an empty list for doctests in a namespace package. * bpo-32991: Restore expectation that inspect.getfile on a namespace package raises TypeError. 05 March 2018, 23:29:08 UTC
6921e73 bpo-33001: Prevent buffer overrun in os.symlink (GH-5989) 05 March 2018, 22:26:08 UTC
4c19b95 Add What's New for issues 32303 and 32305 (GH-5994) 05 March 2018, 20:37:12 UTC
22c82be bpo-32984: IDLE - set __file__ for startup files (GH-5981) Like Python, IDLE optionally runs one startup file in the Shell window before presenting the first interactive input prompt. For IDLE, option -s runs a file named in environmental variable IDLESTARTUP or PYTHONSTARTUP; -r file runs file. Python sets __file__ to the startup file name before running the file and unsets it before the first prompt. IDLE now does the same when run normally, without the -n option. 05 March 2018, 16:02:46 UTC
18fd892 bpo-30147: Add re.escape changes to 3.7 What's New (GH-5978) 04 March 2018, 23:06:57 UTC
74382a3 bpo-32857: Raise error when tkinter after_cancel() is called with None. (GH-5701) 04 March 2018, 10:41:47 UTC
7023644 closes bpo-32980 Remove _PyFrame_Init (GH-5965) 04 March 2018, 06:06:01 UTC
0e6c8ee bpo-32981: Fix catastrophic backtracking vulns (#5955) * Prevent low-grade poplib REDOS (CVE-2018-1060) The regex to test a mail server's timestamp is susceptible to catastrophic backtracking on long evil responses from the server. Happily, the maximum length of malicious inputs is 2K thanks to a limit introduced in the fix for CVE-2013-1752. A 2KB evil response from the mail server would result in small slowdowns (milliseconds vs. microseconds) accumulated over many apop calls. This is a potential DOS vector via accumulated slowdowns. Replace it with a similar non-vulnerable regex. The new regex is RFC compliant. The old regex was non-compliant in edge cases. * Prevent difflib REDOS (CVE-2018-1061) The default regex for IS_LINE_JUNK is susceptible to catastrophic backtracking. This is a potential DOS vector. Replace it with an equivalent non-vulnerable regex. Also introduce unit and REDOS tests for difflib. Co-authored-by: Tim Peters <tim.peters@gmail.com> Co-authored-by: Christian Heimes <christian@python.org> 04 March 2018, 05:33:32 UTC
13cfd57 Fix missing coroutine declaration in the asyncio documentation. (#5964) 03 March 2018, 16:43:54 UTC
b21d155 bpo-32964: Reuse a testing implementation of the path protocol in tests. (#5930) 02 March 2018, 09:53:51 UTC
bf63e8d bpo-30607: Use external python-doc-theme (GH-2017) 01 March 2018, 21:02:50 UTC
back to top