Staging
v0.5.1
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
280c22a Fix test_socket.test_create_connection() (#4206) bpo-31910: test_create_connection() now catchs also EADDRNOTAVAIL to fix the test on Travis CI. 01 November 2017, 02:48:14 UTC
9ed83c4 bpo-18835: Cleanup pymalloc (#4200) Cleanup pymalloc: * Rename _PyObject_Alloc() to pymalloc_alloc() * Rename _PyObject_FreeImpl() to pymalloc_free() * Rename _PyObject_Realloc() to pymalloc_realloc() * pymalloc_alloc() and pymalloc_realloc() don't fallback on the raw allocator anymore, it now must be done by the caller * Add "success" and "failed" labels to pymalloc_alloc() and pymalloc_free() * pymalloc_alloc() and pymalloc_free() don't update num_allocated_blocks anymore: it should be done in the caller * _PyObject_Calloc() is now responsible to fill the memory block allocated by pymalloc with zeros * Simplify pymalloc_alloc() prototype * _PyObject_Realloc() now calls _PyObject_Malloc() rather than calling directly pymalloc_alloc() _PyMem_DebugRawAlloc() and _PyMem_DebugRawRealloc(): * document the layout of a memory block * don't increase the serial number if the allocation failed * check for integer overflow before computing the total size * add a 'data' variable to make the code easiler to follow test_setallocators() of _testcapimodule.c now test also the context. 31 October 2017, 19:18:10 UTC
ec2cbdd bpo-20064: Document PyObject_Malloc() (#4199) Document the following functions: * PyObject_Malloc() * PyObject_Calloc() * PyObject_Realloc() * PyObject_Free() Fix also PyMem_RawFree() documentation. 31 October 2017, 16:37:25 UTC
2298fad bpo-31893: Fix errors in b9052a0f91d2e83bbc27267247a5920c82b242a3. (#4196) * Fix a compilation error on FreeBSD. * Fix the data attribute size on Mac OS X. 31 October 2017, 16:18:21 UTC
afd055a pythoninfo: add Py_DEBUG (#4198) 31 October 2017, 15:41:10 UTC
e1a470b test_capi.test__testcapi() becomes more verbose (#4197) Write the name of each subtest on a new line to help debugging when a test does crash Python. 31 October 2017, 15:40:59 UTC
db91e0f bpo-31897: Convert unexpected errors when read bogus binary plists into InvalidFileException. (#4171) 31 October 2017, 12:05:53 UTC
b484d56 bpo-31626: Fixed a bug in debug memory allocator. (#3844) Removed a code that incorrectly detected in-place resizing in realloc() and wrote to freed memory. 31 October 2017, 12:05:03 UTC
b9052a0 bpo-31893: Fixed select.kqueue(). (#4166) * Fixed the layout of the kqueue_event structure on OpenBSD and NetBSD. * Fixed the comparison of the kqueue_event objects. 31 October 2017, 11:59:55 UTC
baac01e bpo-31891: Fix building the curses module on NetBSD. (#4165) 31 October 2017, 11:56:44 UTC
19f6830 bpo-31629: Add support.SaveSignals (#4183) test_curses now saves/restores signals. On FreeBSD, the curses module sets handlers of some signals, but don't restore old handlers when the module is deinitialized. 31 October 2017, 10:14:01 UTC
f0f62cc Remove tiny bit of deadcode from wsgiref.validate (#3996) 31 October 2017, 04:07:36 UTC
1122575 bpo-31304: Update starmap_async documentation. (GH-4168) Update the kwarg in the documentation of `multiprocessing.pool.Pool.starmap_async`, from `error_back` to `error_callback` to match the source code.. 30 October 2017, 18:39:28 UTC
fe4ea9c bpo-31245: Asyncio unix socket datagram (#3164) 30 October 2017, 13:43:02 UTC
a231428 bpo-20047: Make bytearray methods partition() and rpartition() rejecting (#4158) separators that are not bytes-like objects. 28 October 2017, 23:11:54 UTC
5a4bbcd bpo-31836: Test_code_module now passes with sys.ps1, ps2 set (#4070) 28 October 2017, 01:45:19 UTC
e86172d IDLE -- Restrict shell prompt manipulaton to the shell. (#4143) Editor and output windows only see an empty last prompt line. This simplifies the code and fixes a minor bug when newline is inserted. Sys.ps1, if present, is read on Shell start-up, but is not set or changed. 28 October 2017, 00:26:12 UTC
ed6554c bpo-31860: Make the font sample in the IDLE font configuration dialog editable. (#4106) Changes persist while IDLE remains open 28 October 2017, 00:22:44 UTC
93fd478 faulthandler: use _PyTime_t rather than double for timeout (#4139) Use the _PyTime_t type rather than double for the faulthandler timeout in dump_traceback_later(). This change should fix the following Coverity warning: CID 1420311: Incorrect expression (UNINTENDED_INTEGER_DIVISION) Dividing integer expressions "9223372036854775807LL" and "1000LL", and then converting the integer quotient to type "double". Any remainder, or fractional part of the quotient, is ignored. if ((timeout * 1e6) >= (double) PY_TIMEOUT_MAX) { The warning comes from (double)PY_TIMEOUT_MAX with: #define PY_TIMEOUT_MAX (PY_LLONG_MAX / 1000) 27 October 2017, 14:27:12 UTC
7351f9e bpo-31174: Improve the code of test_tools.test_unparse. (#4146) 27 October 2017, 12:35:11 UTC
03eb11f bpo-16135: Cleanup: Code rot left over from OS/2 support (GH-4147) Remove dangling references to PYCC_VACPP that are not relelvant since removal of OS/2 support. 27 October 2017, 12:27:06 UTC
843ea47 bpo-31545: Update documentation containing timedelta repr. (GH-3687) This is a fix to the documentation to reflect the changes merged in as part of bpo-30302. 27 October 2017, 11:25:15 UTC
63ae044 Fix _socket module compilation on Cygwin. (#4137) 27 October 2017, 10:01:17 UTC
031c4bf bpo-31877: Add _Py_LegacyLocaleDetected and _PyCoerceLegacyLocale to pylifecycle.h (GH-4134) Only declaring these as interns inside the CLI's main C module caused build problems on some platforms (notably Cygwin), so this switches them to a regular underscore prefixed "private" C API declaration. 27 October 2017, 09:46:03 UTC
2f3d699 Fixed sorting order of the LogRecord attributes in the documentation. (GH-4133) 27 October 2017, 07:06:20 UTC
afad147 bpo-30989: Sort in TimedRotatingFileHandler only when needed. (GH-2812) TimedRotatingFileHandler.getFilesToDelete() now sorts only when needed. 27 October 2017, 07:04:33 UTC
d609b0c bpo-31053: Remove redundant 'venv' argument in venv example (GH-2907) 27 October 2017, 04:42:11 UTC
8c83c23 bpo-28936: Detect lexically first syntax error first (#4097) Lexically first global and nonlocal syntax errors at given scope should be detected first. 26 October 2017, 21:28:35 UTC
66c88ce Closes bpo-28281: Remove year (1-9999) limits on the weekday() function. (#4109) Patch by Mark Gollahon. 26 October 2017, 19:34:11 UTC
52ad72d bpo-30553: Add status code 421 to http.HTTPStatus (GH-2589) 26 October 2017, 18:49:19 UTC
bdf4298 Fix trailing whitespaces in C files. (#4130) 26 October 2017, 13:59:40 UTC
56d1f5c bpo-30697: Fix PyErr_NormalizeException() when no memory (GH-2327) 26 October 2017, 13:09:06 UTC
275d2d9 bpo-30937: Make usage of newline='' consistent in csv docs (GH-2730) 26 October 2017, 08:27:46 UTC
41c5694 bpo-21720: Restore the Python 2.7 logic in handling a fromlist. (#4118) BytesWarning no longer emitted when the fromlist argument of __import__() or the __all__ attribute of the module contain bytes instances. 26 October 2017, 07:41:59 UTC
4eaf7f9 fixes bpo-31866: remove code pertaining to AtheOS support (#4115) We stop support this OS in 2007 with commit 19fab761b71a1687aee3415db3a937b5ce31975d. Let's finish. 26 October 2017, 06:55:14 UTC
1896793 bpo-31857: Make the behavior of USE_STACKCHECK deterministic (#4098) 26 October 2017, 06:03:01 UTC
3231893 Closes bpo-31800: Support for colon when parsing time offsets (#4015) Add support to strptime to parse time offsets with a colon between the hour and the minutes. 26 October 2017, 00:35:41 UTC
0f26158 bpo-31664: Fix test_crypt for the openwall implementation of crypt. (#4116) 25 October 2017, 13:30:13 UTC
086c3ae bpo-31835: Optimize also FASTCALL using __future__ (#4087) _PyFunction_FastCallDict() and _PyFunction_FastCallKeywords() now also takes the fast path if the code object uses __future__ (CO_FUTURE_xxx flags). 25 October 2017, 12:26:17 UTC
95f1a7b remove support for splitting the ceval switch into multiple switches (#4099) This kludge is from 1992. Any C99 compiler is going to be able to handle the ceval dispatch switch. Anyway, we have much bigger switches than the ceval dispatch one around. (See, e.g., Objects/unicodetype_db.h.) 25 October 2017, 05:35:15 UTC
d7ac061 bpo-31845: Fix reading flags from environment (GH-4105) The startup refactoring means command line settings are now applied after settings are read from the environment. This updates the way command line settings are applied to account for that, ensures more settings are first read from the environment in _PyInitializeCore, and adds a simple test case covering the flags that are easy to check. 25 October 2017, 02:11:26 UTC
850a18e bpo-30768: Recompute timeout on interrupted lock (GH-4103) Fix the pthread+semaphore implementation of PyThread_acquire_lock_timed() when called with timeout > 0 and intr_flag=0: recompute the timeout if sem_timedwait() is interrupted by a signal (EINTR). See also the PEP 475. The pthread implementation of PyThread_acquire_lock() now fails with a fatal error if the timeout is larger than PY_TIMEOUT_MAX, as done in the Windows implementation. The check prevents any risk of overflow in PyThread_acquire_lock(). Add also PY_DWORD_MAX constant. 24 October 2017, 23:53:32 UTC
3557b05 bpo-31690: Allow the inline flags "a", "L", and "u" to be used as group flags for RE. (#3885) 24 October 2017, 20:31:42 UTC
fdd9b21 Closes bpo-28292: Implemented Calendar.itermonthdays3() and itermonthdays4(). (#4079) Calendar.itermonthdates() will now consistently raise an exception when a date falls outside of the 0001-01-01 through 9999-12-31 range. To support applications that cannot tolerate such exceptions, the new methods itermonthdays3() and itermonthdays4() are added. The new methods return tuples and are not restricted by the range supported by datetime.date. Thanks @serhiy-storchaka for suggesting the itermonthdays4() method and for the review. 24 October 2017, 17:17:10 UTC
eab3ff7 bpo-31664: Add support for the Blowfish method in crypt. (#3854) 24 October 2017, 16:36:17 UTC
831d61d Fix wording about Py_tss_NEEDS_INIT in docs (GH-4096) Make more sense to replace the word "default value" with "initializer" for Py_tss_NEEDS_INIT. 24 October 2017, 12:58:16 UTC
e968bc7 bpo-30639: Lazily compute repr for error (#2132) 24 October 2017, 12:42:36 UTC
8e482be bpo-31174: Fix test_tools.test_unparse (#4102) test_unparse.DirectoryTestCase now stores the names sample to always test the same files. It prevents false alarms when hunting reference leaks. 24 October 2017, 10:33:36 UTC
809d173 bpo-31812: Add documentation translations to What's New in Python 3.7. (GH-4064) 24 October 2017, 09:22:22 UTC
01b5aab bpo-31827: Remove os.stat_float_times() (GH-4061) 24 October 2017, 09:02:00 UTC
87d332d bpo-31810: Add smelly.py to check exported symbols (#4057) * Add Tools/scripts/smelly.py: script checking if all symbols exported by libpython start with "Py" or "_Py". * Modify "make smelly" to run smelly.py: the command now fails with a non-zero exit code if libpython leaks a "smelly" symbol. * Travis CI now runs "make smelly" 24 October 2017, 08:29:53 UTC
1aa00ff fixes bpo-31834: Use optimized code for BLAKE2 only with SSSE3+ (#4066) Rework the code choosing BLAKE2 code paths from using the optimized variant on all x86_64 machines to using it when SSSE3 or better supported instructions sets are available. Firstly, this solves the problem of using pure SSE2 code path on x86_64 machines. As reported in the bug, this code is slower than the reference code on all tested x86_64 machines. Furthermore, on Athlon64 that lacks SSSE3, it is even 2.5 times slower than the reference code! Checking for SSSE3 therefore ensures that the optimized implementation will only be used when it has a chance of performing better. Secondly, this makes it possible to use SSSE3+ optimizations on 32-bit x86 systems. This allows for even 2 times speed gain on modern 32-bit x86 systems (tested in a 32-bit chroot). 24 October 2017, 06:54:19 UTC
3b66ebe bpo-31847: Fix commented out tests in test_syntax. (#4084) SyntaxError now is raised instead of SyntaxWarning. 23 October 2017, 21:27:14 UTC
828ca59 bpo-31653: Remove deadcode in semlock_acquire() (#4091) Fix the following Coverity warning: >>> CID 1420038: Control flow issues (DEADCODE) >>> Execution cannot reach this statement: "res = sem_trywait(self->han...". 321 res = sem_trywait(self->handle); The deadcode was introduced by the commit c872d39d324cd6f1a71b73e10406bbaed192d35f. 23 October 2017, 20:57:51 UTC
62adc55 bpo-30722: Make redemo work with Python 3.6+ (GH-2311) 23 October 2017, 17:10:48 UTC
66caacf bpo-30817: Fix PyErr_PrintEx() when no memory (#2526) 23 October 2017, 16:08:41 UTC
4ffd465 bpo-31752: Fix possible crash in timedelta constructor called with custom integers. (#3947) Bad remainder in divmod() in intermediate calculations caused an assertion failure. 23 October 2017, 14:12:28 UTC
7fed7bd bpo-31756: subprocess.run should alias universal_newlines to text (#4049) Improve human friendliness of the Popen API: Add text=False as a keyword-only argument to subprocess.Popen along with a Popen attribute .text_mode and set this based on the encoding/errors/universal_newlines/text arguments. The universal_newlines parameter and attribute are maintained for backwards compatibility. 23 October 2017, 02:01:19 UTC
ae3087c Move exc state to generator. Fixes bpo-25612 (#1773) Move exception state information from frame objects to coroutine (generator/thread) object where it belongs. 22 October 2017, 21:41:51 UTC
91dc64b bpo-20825: Containment test for ip_network in ip_network. 22 October 2017, 21:39:49 UTC
04e36af bpo-31572: Get rid of using _PyObject_HasAttrId() in pickle. (#3729) 22 October 2017, 18:31:34 UTC
c872d39 bpo-31653: Don't release the GIL if we can acquire a multiprocessing semaphore immediately (#4078) 22 October 2017, 11:10:46 UTC
bcbdd2f bpo-28286: Add tests for the mode argument of GzipFile. (#4074) 22 October 2017, 10:18:21 UTC
daeefd2 bpo-28326: Fix multiprocessing.Process when stdout and/or stderr is closed or None. (#4073) 22 October 2017, 09:40:31 UTC
73c4708 Fix bytes warnings in test_struct (added in bpo-29802). (#4068) 21 October 2017, 18:59:23 UTC
db60a5b bpo-31781: Prevent crashes when calling methods of an uninitialized zipimport.zipimporter object (GH-3986) 20 October 2017, 20:42:35 UTC
56cb465 bpo-31825: Fixed OverflowError in the 'unicode-escape' codec (#4058) and in codecs.escape_decode() when decode an escaped non-ascii byte. 20 October 2017, 14:08:15 UTC
525f40d bpo-31819: Add AbstractEventLoop.sock_recv_into() (#4051) * bpo-31819: Add AbstractEventLoop.sock_recv_into() * Add NEWS * Add doc 19 October 2017, 19:46:40 UTC
ea2ef5d bpo-31632: fix set_protocol() in _SSLProtocolTransport (#3817) (#3817) 19 October 2017, 17:49:57 UTC
ce9e625 bpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (#4044) This used to be the case on Python 2. Commit 212b590e118e3650b596917021ed9612a918180b changed the implementation for Python 3, making the `log()` method of LogAdapter call `logger._log()` directly. This makes nested log adapters not execute their ``process()`` method. This patch fixes the issue. Also, now proxying `name`, too, to make `repr()` work with nested log adapters. New tests added. 19 October 2017, 17:24:55 UTC
05a634b Add NEWS entry for opcode tracing change. (GH-4045) 19 October 2017, 07:41:59 UTC
24c4d04 drop unused configure check for pthread_atfork (#4046) 19 October 2017, 06:39:01 UTC
20faa68 Move opcode tracing to occur after the possible update to f_lineno. (GH-3798) 19 October 2017, 00:44:22 UTC
0b6a118 bpo-31457: Make the `LoggerAdapter.manager` property settable (#4042) Due to a bug in the initial fix, the setter was in fact creating a different property. This is now fixed. 19 October 2017, 00:28:51 UTC
032a648 Update TestCase.assertAlmostEqual and assertNotAlmostEqual docstrings. (GH-3998) The word "difference" from missing the sentence. This clarifies that it compares the difference between the two objects. 18 October 2017, 17:01:23 UTC
59af94f bpo-31806: Use _PyTime_ROUND_TIMEOUT for the timeout argument parsing in more functions (#4026) Fix timeout rounding in time.sleep(), threading.Lock.acquire() and socket.socket.settimeout() to round correctly negative timeouts between -1.0 and 0.0. The functions now block waiting for events as expected. Previously, the call was incorrectly non-blocking. 18 October 2017, 07:13:09 UTC
ec12df1 Add Code of Conduct to .github folder. (GH-4029) 18 October 2017, 02:44:20 UTC
27288de bpo-30928: Update idlelib/NEWS.txt to 2017 Oct 17. (#4025) 17 October 2017, 23:02:49 UTC
e2e4227 bpo-13802: Use non-Latin characters in IDLE's Font settings sample. (#3960) Even if one selects a font that defines a limited subset of the unicode Basic Multilingual Plane, tcl/tk will use other fonts that define a character. The expanded example give users of non-Latin characters a better idea of what they might see in the IDLE shell and editors. To make room for the expanded sample, frames on the Font tab are re-arranged. The Font/Tabs help explains a bit about the additions. 17 October 2017, 22:56:16 UTC
884d13a time.clock() now emits a DeprecationWarning (GH-4020) bpo-31803: time.clock() and time.get_clock_info('clock') now emit a DeprecationWarning warning. Replace time.clock() with time.perf_counter() in tests and demos. Remove also hasattr(time, 'monotonic') in test_time since time.monotonic() is now always available since Python 3.5. 17 October 2017, 21:46:45 UTC
de86073 bpo-28603: Fix formatting tracebacks for unhashable exceptions (#4014) 17 October 2017, 21:29:39 UTC
191e313 bpo-31799: Make module.__spec__ more discoverable (#4010) bpo-31799: Make module.__spec__ more discoverable 17 October 2017, 19:52:38 UTC
6cfa927 bpo-31334: Fix timeout in select.poll.poll() (GH-3277) Always pass -1, or INFTIM where defined, to the poll() system call when a negative timeout is passed to the poll.poll([timeout]) method in the select module. Various OSes throw an error with arbitrary negative values. 17 October 2017, 19:45:07 UTC
2c15b29 bpo-31786: Make functions in the select module blocking when timeout is a small negative value. (#4003) 17 October 2017, 14:14:41 UTC
552be9d bpo-30541: Add new method to seal mocks (GH61923) The new method allows the developer to control when to stop the feature of mocks that automagically creates new mocks when accessing an attribute that was not declared before Signed-off-by: Mario Corchero <mariocj89@gmail.com> 17 October 2017, 11:35:11 UTC
2bd37c2 post 3.7.0a2 development 17 October 2017, 06:10:44 UTC
f7ac4fe Bump to 3.7.0a2 17 October 2017, 03:50:50 UTC
c730223 Update NEWS and topics for 3.7.0a2 17 October 2017, 03:41:55 UTC
c30b55b bpo-31558: Update NEWS and ACKS (#4013) 16 October 2017, 21:39:08 UTC
c75edab bpo-31558: Add gc.freeze() (#3705) Freeze all the objects tracked by gc - move them to a permanent generation and ignore all the future collections. This can be used before a POSIX fork() call to make the gc copy-on-write friendly or to speed up collection. 16 October 2017, 19:49:41 UTC
bdaeb7d bpo-31773: _PyTime_GetPerfCounter() uses _PyTime_t (GH-3983) * Rewrite win_perf_counter() to only use integers internally. * Add _PyTime_MulDiv() which compute "ticks * mul / div" in two parts (int part and remaining) to prevent integer overflow. * Clock frequency is checked at initialization for integer overflow. * Enhance also pymonotonic() to reduce the precision loss on macOS (mach_absolute_time() clock). 16 October 2017, 15:44:31 UTC
0df1905 bpo-31776: Missing "raise from None" in Lib/xml/etree/ElementPath.py (#3978) 16 October 2017, 08:24:22 UTC
676db4b bpo-31792: Restore os.environ in test_buffer when import numpy. (#4007) 16 October 2017, 07:38:14 UTC
1295e11 completly -> completely (#3999) (closes bpo-31788) 15 October 2017, 19:28:31 UTC
1b9e76e bpo-31754: Fix type of 'itemsize' in PyBuffer_FillContiguousStrides (GH-3993) 15 October 2017, 07:31:36 UTC
28773ca bpo-31780: Fix incorrect error message for ',x', ',b', ',o' specs (#4002) Patch by Pablo. 15 October 2017, 03:41:13 UTC
620f70e bpo-25588: Document autotest in idle_test/README.txt. (#4000) Follow-up to Victor's patch that enabled autotest to run in IDLE's Shell. 15 October 2017, 01:31:14 UTC
8c26a34 bpo-31757: Make Fibonacci examples consistent (#3991) 14 October 2017, 14:36:08 UTC
073150d bpo-31672: doc: Remove one sentence from library/string.rst (GH-3990) This sentence is removed while backporting to 3.6 branch. See https://github.com/python/cpython/pull/3982#discussion_r144555768 14 October 2017, 12:22:41 UTC
cd195e2 bpo-31714: Improved regular expression documentation. (#3907) 14 October 2017, 08:14:26 UTC
back to top