https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
a30b8ea update Misc/NEWS 29 April 2017, 01:16:06 UTC
e3a2706 Merge branch 'master' into 30190-unittest-improved-err-msg 29 April 2017, 01:13:36 UTC
6c55b42 refactoring 28 April 2017, 17:38:25 UTC
dceb6a8 also show difference when passing 'places' argument 28 April 2017, 17:05:01 UTC
6c991bd Check that Python is 64-bit before enabling BLAKE2_USE_SSE. (#1332) 28 April 2017, 16:56:48 UTC
d1a1def bpo-30197: Enhance functions swap_attr() and swap_item() in test.support. (#1341) * bpo-30197: Enhance functions swap_attr() and swap_item() in test.support. They now work when delete replaced attribute or item inside the with statement. The old value of the attribute or item (or None if it doesn't exist) now will be assigned to the target of the "as" clause, if there is one. * Update docstrings. 28 April 2017, 16:17:26 UTC
80a3da4 Improve the grammar in windows.rst (GH-1330) 28 April 2017, 16:12:57 UTC
826f83f bpo-30104: Only use -fno-strict-aliasing on dtoa.c (#1340) On clang, only compile dtoa.c with -fno-strict-aliasing, use strict aliasing to compile all other C files. 28 April 2017, 13:07:10 UTC
4f63471 safe_repr() diff 28 April 2017, 00:47:54 UTC
3b76f44 #30190 / unittest / assertAlmostEqual(delta=...) / error msg: show the difference between the 2 numbers in case of failure 27 April 2017, 20:51:03 UTC
5a4e3d8 bpo-30174: Remove duplicate definition from pickletools (#1301) There were two almost identical definitions of bytes1. 27 April 2017, 16:05:26 UTC
5bccca5 bpo-30175: Skip client cert tests of test_imaplib (#1320) * bpo-30175: Skip client cert tests of test_imaplib The IMAP server cyrus.andrew.cmu.edu doesn't accept our randomly generated client x509 certificate anymore. * bpo-30188: Catch EOFError in NetworkedNNTPTests test_nntplib fails randomly with EOFError in NetworkedNNTPTests.setUpClass(). Catch EOFError to skip tests in that case. 27 April 2017, 15:30:13 UTC
e65fcde bpo-27200: Fix several doctests (GH-604) 27 April 2017, 12:23:34 UTC
6fde770 Use the correct name for ISO in Unicode HOWTO. (#1312) 27 April 2017, 05:12:17 UTC
88c38b3 bpo-28415: Note 0 conversion different between Python and C (#885) 27 April 2017, 03:36:35 UTC
a90b990 bpo-30142: Remove "callable" from the 2to3fixer documentation. (GH-1296) 26 April 2017, 16:16:21 UTC
ab7886b bpo-30101: Add support for curses.A_ITALIC. (#1015) 26 April 2017, 15:17:12 UTC
8ca2f2f bpo-30131: test_logging now joins queue threads (#1298) QueueListenerTest of test_logging now closes the multiprocessing Queue and joins its thread to prevent leaking dangling threads to following tests. Add also @support.reap_threads to detect earlier if a test leaks threads (and try to "cleanup" these threads). 26 April 2017, 13:56:25 UTC
6e67695 timemodule.c: Cast PyUnicode_AsUTF8() to char* (#1294) bpo-28769 changed PyUnicode_AsUTF8() return type from const char* to char* in Python 3.7, but tm_zone field type of the tm structure is char* on FreeBSD. Cast PyUnicode_AsUTF8() to char* in gettmarg() to fix the warning: Modules/timemodule.c:443:20: warning: assigning to 'char *' from 'const char *' discards qualifiers 26 April 2017, 11:51:48 UTC
87c07fe bpo-29974: Improve typing.TYPE_CHECKING example (GH-982) * Fix PEP 8 (SomeType instead of some_type) * Add a function parameter annotation * Explain, using wording from PEP 484 and PEP 526, why one annotation is in quotes and another is not. Suggested by Ivan Levkevskyi. 26 April 2017, 10:49:45 UTC
0d637e2 bpo-28698: Fix c_wchar_p doc example (GH-1160) 26 April 2017, 08:15:05 UTC
c6db481 bpo-30052: Link `bytes` & `bytearray` to stdtypes not functions (GH-1271) Builtin container types have two potential link targets in the docs: - their entry in the list of builtin callables - their type documentation This change brings `bytes` and `bytearray` into line with other container types by having cross-references default to linking to their type documentation, rather than their builtin callable entry. 26 April 2017, 05:47:01 UTC
d819ad9 bpo-30107: Make SuppressCrashReport quiet on macOS (#1279) On macOS, SuppressCrashReport now redirects /usr/bin/defaults command stderr into a pipe to not pollute stderr. It fixes a test_io.test_daemon_threads_shutdown_stderr_deadlock() failure when the CrashReporter domain doesn't exists. Message logged into stderr: 2017-04-24 16:57:21.432 defaults[41046:2462851] The domain/default pair of (com.apple.CrashReporter, DialogType) does not exist 25 April 2017, 22:55:08 UTC
08c1601 bpo:29950: Rename SlotWrapperType to WrapperDescriptorType (GH-926) 25 April 2017, 18:26:36 UTC
97bf722 bpo-28851: Improve namedtuple documentation (GH-1274) Clarify that a sequence of strings is the preferred value for 'field_names'. 25 April 2017, 16:14:45 UTC
3e2ad8e bpo-29617: Remove Python 3.3 support from asyncio (GH-232) 25 April 2017, 01:57:18 UTC
f6448e5 bpo-30132: distutils test_build_ext() uses temp_cwd() (#1278) test_build_ext() of test_distutils now uses support.temp_cwd() to prevent the creation of a pdb file in the current working directory on Windows. 25 April 2017, 00:11:09 UTC
0d659e5 tmtotuple(): use time_t for gmtoff (#1276) timegm() return type is time_t, not int. Use time_t to prevent the following compiler warning on Windows: timemodule.c: warning C4244: '=': conversion from 'time_t' to 'int', possible loss of data 24 April 2017, 23:22:42 UTC
4bcfa3a bpo-30131: Cleanup threads in test_logging (#1275) * Use @support.reap_threads on unit tests creating threads * Call TestCase.fail() on thread.join(timeout) failure 24 April 2017, 22:41:36 UTC
fcfe80e bpo-29822: Make inspect.isabstract() work during __init_subclass__. (#678) At the time when an abstract base class' __init_subclass__ runs, ABCMeta.__new__ has not yet finished running, so in the presence of __init_subclass__, inspect.isabstract() can no longer depend only on TPFLAGS_IS_ABSTRACT. 24 April 2017, 17:06:15 UTC
2e576f5 bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263) 24 April 2017, 06:05:00 UTC
9eb5ca0 bpo-29751: add Cheryl Sabella to Misc/ACKS (GH-1268) 24 April 2017, 04:05:19 UTC
26896f2 bpo-29751: Improve PyLong_FromString documentation (GH-915) 24 April 2017, 03:54:08 UTC
85157cd bpo-15718: Document the upper bound constrain on the __len__ return value. (#1256) 23 April 2017, 05:37:58 UTC
997a4ad Remove outdated note about constraining of the bit shift right operand. (#1258) The constrain was removed in bpo-29816. 22 April 2017, 18:50:09 UTC
7fae81e Fix trailing colon and newline in test.rst (#1250) 22 April 2017, 06:46:18 UTC
7bfd740 Remove unneeded Misc/NEWS entry for bpo-29802. (#1251) The bug was added in still not released version. 22 April 2017, 06:24:59 UTC
9616a82 bpo-29960 _random.Random corrupted on exception in setstate(). (#1019) 22 April 2017, 06:10:46 UTC
1a5856b bpo-29867: Add asserts in PyTuple_GET_SIZE, PyList_GET_SIZE and PySet_GET_SIZE. (#751) 21 April 2017, 23:48:11 UTC
a36e939 bpo-30125: disable faulthandler in ctypes test_SEH (#1237) Disable faulthandler to run test_SEH() of test_ctypes to prevent the following log with a traceback: Windows fatal exception: access violation Add support.disable_faulthandler() context manager. 21 April 2017, 22:31:13 UTC
ae5b326 bpo-30098: Clarify that run_coroutine_threadsafe expects asyncio.Future (GH-1170) 21 April 2017, 20:49:48 UTC
d1ae24e Correct the README link in Unix install docs (#1245) 21 April 2017, 17:24:57 UTC
46c2b81 bpo-30125: Fix faulthandler.disable() on Windows (#1240) * bpo-30125: Cleanup faulthandler.c * Use size_t type for iterators * Add { ... } * bpo-30125: Fix faulthandler.disable() on Windows On Windows, faulthandler.disable() now removes the exception handler installed by faulthandler.enable(). 21 April 2017, 16:06:13 UTC
2a1aed0 bpo-30107: don't dump core on expected test_io crash (#1235) test_io has two unit tests which trigger a deadlock: * test_daemon_threads_shutdown_stdout_deadlock() * test_daemon_threads_shutdown_stderr_deadlock() These tests call Py_FatalError() if the expected bug is triggered which calls abort(). Use test.support.SuppressCrashReport to prevent the creation on a core dump, to fix the warning: Warning -- files was modified by test_io Before: [] After: ['python.core'] 21 April 2017, 15:59:23 UTC
a2c877c bpo-30106: Fix test_asyncore.test_quick_connect() (#1234) test_quick_connect() runs a thread up to 50 seconds, whereas the socket is connected in 0.2 second and then the thread is expected to end in less than 3 second. On Linux, the thread ends quickly because select() seems to always return quickly. On FreeBSD, sometimes select() fails with timeout and so the thread runs much longer than expected. Fix the thread timeout to fix a race condition in the test. 21 April 2017, 11:51:53 UTC
35f3d24 bpo-30104: configure now detects when cc is clang (#1233) Detect when the "cc" compiler (and the $CC variable) is the Clang compiler. The test is needed to add the -fno-strict-aliasing option on FreeBSD where cc is clang. 21 April 2017, 10:35:24 UTC
28205b2 bpo-30104: Use -fno-strict-aliasing on clang (#1221) Python/dtoa.c is not compiled correctly with clang 4.0 and optimization level -O2 or higher, because of an aliasing issue on the double/ULong[2] union. LLVM bug report: https://bugs.llvm.org//show_bug.cgi?id=31928 21 April 2017, 09:24:34 UTC
791dc83 remove configure test for inline keyword (#1231) We require C99, so a configure test for this standard feature is not needed. 21 April 2017, 06:52:19 UTC
f60c9e5 bpo-29191: Add liblzma.vcxproj to pcbuild.sln and other missing entries (#1222) liblzma is missing from pcbuild.sln. This causes the build of _lzma to fail when building the solution and not using build.bat. 20 April 2017, 23:33:28 UTC
8e67528 Add missing .gitignore entries for VS2015 IntelliSense DB (#1223) 20 April 2017, 23:32:26 UTC
40db90c bpo-29802: Fix reference counting in module-level struct functions (#1213) when pass arguments of wrong type. 20 April 2017, 18:19:31 UTC
8f5cdfa Only define get_zone() and get_gmtoff() if needed (#1193) Only define the get_zone() and get_gmtoff() private functions in the time module if these functions are needed to initialize the module. The change fixes the following warnings on AIX: Modules/timemodule.c:1175:1: warning: 'get_gmtoff' defined but not used [-Wunused-function] Modules/timemodule.c:1164:1: warning: 'get_zone' defined but not used [-Wunused-function] 20 April 2017, 11:41:09 UTC
d20324a support.threading_cleanup() log a warning on fail (#1195) The @reap_threads decorator and the threading_cleanup() function of test.support now log a warning if they fail to clenaup threads. Fix also the usage of support.threading_cleanup() in test_urllib2_localnet. The log may help to debug such other warning seen on the AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot: Warning -- threading._dangling was modified by test_logging 20 April 2017, 11:40:08 UTC
b85c136 bpo-30108: Restore sys.path in test_site (#1197) Add setUpModule() and tearDownModule() functions to test_site to save/restore sys.path at the module level to prevent warning if the user site directory is created, since site.addsitedir() modifies sys.path. 20 April 2017, 11:39:39 UTC
b4dc6af bpo-12414: Update code_sizeof() to take in account co_extra memory. (#1168) 20 April 2017, 07:31:17 UTC
58f3c9d bpo-30109: Fix reindent.py (GH-1207) Skip the file if it has bad encoding. 20 April 2017, 05:59:20 UTC
6dbdedb bpo-10379: Add %char examples to locale.format() docs (GH-1145) 20 April 2017, 04:38:43 UTC
8526fb7 Remove redundant comma in argparse HOWTO (#1141) Reported by Sean Canavan on docs@p.o. 20 April 2017, 04:29:35 UTC
f7e62cf bpo-30078: Add an example of passing a path to unittest (#1178) 20 April 2017, 03:46:59 UTC
11470b6 bpo-30106: Fix tearDown() of test_asyncore (#1194) Call asyncore.close_all() with ignore_all=True in the tearDown() method of the test_asyncore base test case. It should prevent keeping alive sockets in asyncore.socket_map if close() fails with an unexpected error. Revert also an unwanted change of my previous commit: remove name parameter of Thread in test_quick_connect(). 20 April 2017, 00:55:39 UTC
d13d547 bpo-29887: test_normalization handles PermissionError (#1196) Skip test_normalization.test_main() if download raises a permission error. 20 April 2017, 00:39:59 UTC
ec4b172 regrtest: always show before/after of modified env (#1192) Buildbots don't run tests with -vv and so only log "xxx was modified by test_xxx" which is not enough to debug such random issue. In many cases, I'm unable to reproduce the warning and so unable to fix it. Always logging the value before and value after should help to debug such warning on buildbots. 19 April 2017, 22:57:30 UTC
7b9619a Fix/optimize test_asyncore.test_quick_connect() (#1188) Don't use addCleanup() in test_quick_connect() because it keeps the Thread object alive and so @reap_threads fails on its timeout of 1 second. "./python -m test -v test_asyncore -m test_quick_connect" now takes 185 ms, instead of 11 seconds. Other minor changes: * Use "with sock:" to close the socket instead of try/finally: sock.close() * Use self.skipTest() in test_quick_connect() to remove one indentation level and notice user that the test is specific to AF_INET and AF_INET6 19 April 2017, 21:42:46 UTC
1e62bf1 bpo-30030: Revert f50354ad (tempfile) (#1187) Revert f50354adaaafebe95ad09d09b825804a686ea843: it introduced a regression in test_threadedtempfile. 19 April 2017, 20:59:51 UTC
66bffd1 bpo-30065: Fixed arguments validation in _posixsubprocess.fork_exec(). (#1110) 19 April 2017, 18:12:46 UTC
a79f4c2 bpo-30070: Fixed leaks and crashes in errors handling in the parser module. (#1131) 19 April 2017, 18:09:21 UTC
d90045f bpo-22352: Adjust widths in the output of dis.dis() for large line numbers and (#1153) instruction offsets. Add tests for widths of opcode names. 19 April 2017, 17:36:31 UTC
bf623ae bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (#1096) raised an error. Replace them with using concrete types API that never fails if appropriate. 19 April 2017, 17:03:52 UTC
c209b70 bpo-29925: Skip test_uuid1_safe() on OS X Tiger (#971) 19 April 2017, 11:01:03 UTC
8312fba Minor grammar fixes (GH-1174) 19 April 2017, 01:59:47 UTC
992ae64 Fix minor typos (GH-1173) 19 April 2017, 00:38:26 UTC
d6d344d bpo-29514: Check magic number for bugfix release (#54) * bpo-29514: Check magic number for micro release Add a dict importlib.util.EXPECTED_MAGIC_NUMBERS which details the initial and expected pyc magic number for each minor release. This gives a mechanism for users to check if the magic number has changed within a release and for a test to ensure procedure is followed if a change is necessary. Add a test to check the current MAGIC_NUMBER against the expected number for the release if the current release is at candidate or final level. On test failure, describe to the developer the procedure for changing the magic number. * Simplify magic number release test Simplify the magic number release test by removing EXPECTED_MAGIC_NUMBERS table and making the expected magic number self-contained within the test. BPO: 29514 * Improve magic number test execution and message Improve the execution of the magic number test by using skipUnless for alpha and beta releases, and directly inheriting from unittest.TestCase rather than using the machinery for the other tests. Also improve the error message to explain the reason for caution in changing the magic number. BPO: 29514 17 April 2017, 18:35:43 UTC
8e1ddbd fix a refleak in slot_sq_length (#1162) 16 April 2017, 16:54:21 UTC
55fe1ae bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051) 16 April 2017, 07:46:38 UTC
fdbd011 bpo-10076: Compiled regular expression and match objects now are copyable. (#1000) 16 April 2017, 07:16:03 UTC
cd85d0b bpo-28765: Use concrete types API in _sre.c. (#1009) 16 April 2017, 06:39:30 UTC
baf9f29 bpo-29839: Raise ValueError rather than OverflowError in len() for negative values. (#701) 16 April 2017, 06:37:18 UTC
813f943 bpo-29838: Add asserts for checking results of sq_length and mq_length slots. (#700) Negative result should be returned only when an error is set. 16 April 2017, 06:21:44 UTC
026435c bpo-30068: add missing iter(self) in _io._IOBase.readlines when hint is present (#1130) 15 April 2017, 04:47:28 UTC
eaeda64 bpo-19225: Remove duplicated description for standard warning categories (GH-1068) 15 April 2017, 02:06:02 UTC
39f5956 bpo-29738: Add Olivier Vielpeau to Misc/ACKS (GH-1146) 15 April 2017, 01:33:48 UTC
2849cc3 bpo-29738: Fix memory leak in _get_crl_dp (GH-526) * Remove conditional on free of `dps`, since `dps` is now allocated for all versions of OpenSSL * Remove call to `x509_check_ca` since it was only used to cache the `crldp` field of the certificate CRL_DIST_POINTS_free is available in all supported versions of OpenSSL (recent 0.9.8+) and LibreSSL. 15 April 2017, 01:06:07 UTC
0dc5c31 bpo-30059: Include Py_Ellipsis in C API documentation (#1018) 14 April 2017, 19:18:35 UTC
e4f961b improve alignment autoconf test (#1129) Replace the deprecated AC_TRY_RUN with AC_RUN_IFELSE. Also, standardize the variable name and allow for caching of the result. 14 April 2017, 16:36:45 UTC
ce040f6 Fix misplaced positional argument in OS X support library (#1134) 14 April 2017, 12:28:55 UTC
685cdb9 Relax test timing (bpo-29861) to avoid sporadic failures (#1120) 14 April 2017, 11:10:00 UTC
f9f87f0 bpo-11913: Add README.rst to the distutils standard READMEs list (#563) 14 April 2017, 09:00:25 UTC
9476299 bpo-29869: Add Nevada Sanchez to Misc/ACKS (GH-1125) 14 April 2017, 01:30:42 UTC
22a594a bpo-29694: race condition in pathlib mkdir with flags parents=True (GH-1089) 13 April 2017, 18:08:15 UTC
5908300 bpo-29995: re.escape() now escapes only special characters. (#1007) 13 April 2017, 18:06:43 UTC
a6e395d bpo-29869: Allow underscores in numeric literals in lib2to3. (GH-1119) * Allow underscores in numeric literals in lib2to3. * Stricter literal parsing for Python 3.6 in lib2to3.pgen2.tokenize. * Add test case for underscores in literals in Python 3. 13 April 2017, 17:32:54 UTC
873ef20 Fix a typo in Doc/library/functions.rst (GH-1117) Replace `For object's ... ` with `For objects ...` 13 April 2017, 17:31:37 UTC
8fc7bc2 bpo-30021: Add examples for re.escape(). (#1048) And fix the parameter name. 13 April 2017, 16:17:36 UTC
7b2491a bpo-27200: Fix pathlib, ssl, turtle and weakref doctests (GH-616) 13 April 2017, 14:17:59 UTC
d1dc65d Blacklist myself from mention-bot (#1114) 13 April 2017, 14:14:37 UTC
61b9ac9 bpo-29791: Clarify that flush is keyword-only argument (#1093) Reported by Lucio Ricardo Montero Valenzuela. 13 April 2017, 12:48:18 UTC
2c0b5c6 bpo-30055: add testcleanup to leave a fresh context (#1094) 13 April 2017, 11:30:25 UTC
2c134c3 convert from long long to PyLong loselessly (#1106) 13 April 2017, 08:44:54 UTC
a6902e6 bpo-26985: Add missing info of code object in inspect documentation (GH-1090) 13 April 2017, 02:38:28 UTC
4c0d9ea bpo-30017: Allowed calling the close() method of the zip entry writer object (#1041) multiple times. Writing to closed zip entry writer object now always produce a ValueError. 12 April 2017, 13:03:23 UTC
back to top