summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Closes bpo-28292: Implemented Calendar.itermonthdays3() and ↵Alexander Belopolsky2017-10-244-28/+94
| | | | | | | 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.
* bpo-31664: Add support for the Blowfish method in crypt. (#3854)Serhiy Storchaka2017-10-245-31/+104
|
* Fix wording about Py_tss_NEEDS_INIT in docs (GH-4096)Masayuki Yamamoto2017-10-241-1/+1
| | | | Make more sense to replace the word "default value" with "initializer" for Py_tss_NEEDS_INIT.
* bpo-30639: Lazily compute repr for error (#2132)Thomas Kluyver2017-10-243-2/+13
|
* bpo-31174: Fix test_tools.test_unparse (#4102)Victor Stinner2017-10-242-2/+16
| | | | | test_unparse.DirectoryTestCase now stores the names sample to always test the same files. It prevents false alarms when hunting reference leaks.
* bpo-31812: Add documentation translations to What's New in Python 3.7. (GH-4064)Julien Palard2017-10-241-0/+21
|
* bpo-31827: Remove os.stat_float_times() (GH-4061)Victor Stinner2017-10-247-99/+13
|
* bpo-31810: Add smelly.py to check exported symbols (#4057)Victor Stinner2017-10-243-3/+82
| | | | | | | * 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"
* fixes bpo-31834: Use optimized code for BLAKE2 only with SSSE3+ (#4066)Michał Górny2017-10-244-11/+8
| | | | | | | | | | | | | | | | 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).
* bpo-31847: Fix commented out tests in test_syntax. (#4084)Serhiy Storchaka2017-10-231-18/+10
| | | SyntaxError now is raised instead of SyntaxWarning.
* bpo-31653: Remove deadcode in semlock_acquire() (#4091)Victor Stinner2017-10-231-4/+4
| | | | | | | | | | 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.
* bpo-30722: Make redemo work with Python 3.6+ (GH-2311)Christoph Sarnowski2017-10-232-2/+10
|
* bpo-30817: Fix PyErr_PrintEx() when no memory (#2526)xdegaye2017-10-233-4/+29
|
* bpo-31752: Fix possible crash in timedelta constructor called with custom ↵Serhiy Storchaka2017-10-233-2/+28
| | | | | integers. (#3947) Bad remainder in divmod() in intermediate calculations caused an assertion failure.
* bpo-31756: subprocess.run should alias universal_newlines to text (#4049)andyclegg2017-10-234-68/+105
| | | | | | | | | 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.
* Move exc state to generator. Fixes bpo-25612 (#1773)Mark Shannon2017-10-2213-164/+188
| | | Move exception state information from frame objects to coroutine (generator/thread) object where it belongs.
* bpo-20825: Containment test for ip_network in ip_network.Cheryl Sabella2017-10-224-7/+136
|
* bpo-31572: Get rid of using _PyObject_HasAttrId() in pickle. (#3729)Serhiy Storchaka2017-10-221-30/+33
|
* bpo-31653: Don't release the GIL if we can acquire a multiprocessing ↵Antoine Pitrou2017-10-222-10/+22
| | | | semaphore immediately (#4078)
* bpo-28286: Add tests for the mode argument of GzipFile. (#4074)Serhiy Storchaka2017-10-221-0/+24
|
* bpo-28326: Fix multiprocessing.Process when stdout and/or stderr is closed ↵Antoine Pitrou2017-10-223-2/+30
| | | | or None. (#4073)
* Fix bytes warnings in test_struct (added in bpo-29802). (#4068)Serhiy Storchaka2017-10-211-2/+2
|
* bpo-31781: Prevent crashes when calling methods of an uninitialized ↵Oren Milman2017-10-203-0/+34
| | | | zipimport.zipimporter object (GH-3986)
* bpo-31825: Fixed OverflowError in the 'unicode-escape' codec (#4058)Serhiy Storchaka2017-10-205-3/+9
| | | | and in codecs.escape_decode() when decode an escaped non-ascii byte.
* bpo-31819: Add AbstractEventLoop.sock_recv_into() (#4051)Antoine Pitrou2017-10-199-58/+266
| | | | | | | | * bpo-31819: Add AbstractEventLoop.sock_recv_into() * Add NEWS * Add doc
* bpo-31632: fix set_protocol() in _SSLProtocolTransport (#3817) (#3817)jlacoline2017-10-194-6/+15
|
* bpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (#4044)Łukasz Langa2017-10-193-7/+21
| | | | | | | | | | | 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.
* Add NEWS entry for opcode tracing change. (GH-4045)George King2017-10-191-0/+7
|
* drop unused configure check for pthread_atfork (#4046)Benjamin Peterson2017-10-193-15/+0
|
* Move opcode tracing to occur after the possible update to f_lineno. (GH-3798)George King2017-10-191-4/+4
|
* bpo-31457: Make the `LoggerAdapter.manager` property settable (#4042)Łukasz Langa2017-10-193-2/+16
| | | | Due to a bug in the initial fix, the setter was in fact creating a different property. This is now fixed.
* Update TestCase.assertAlmostEqual and assertNotAlmostEqual docstrings. (GH-3998)Ron2017-10-181-2/+3
| | | | The word "difference" from missing the sentence. This clarifies that it compares the difference between the two objects.
* bpo-31806: Use _PyTime_ROUND_TIMEOUT for the timeout argument parsing in ↵Pablo Galindo2017-10-184-6/+10
| | | | | | | | | 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.
* Add Code of Conduct to .github folder. (GH-4029)Mariatta2017-10-181-0/+14
|
* bpo-30928: Update idlelib/NEWS.txt to 2017 Oct 17. (#4025)Terry Jan Reedy2017-10-171-0/+39
|
* bpo-13802: Use non-Latin characters in IDLE's Font settings sample. (#3960)Terry Jan Reedy2017-10-172-19/+76
| | | | | | | | | | 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.
* time.clock() now emits a DeprecationWarning (GH-4020)Victor Stinner2017-10-1714-20/+39
| | | | | | | | | | 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.
* bpo-28603: Fix formatting tracebacks for unhashable exceptions (#4014)Zane Bitter2017-10-179-9/+114
|
* bpo-31799: Make module.__spec__ more discoverable (#4010)Barry Warsaw2017-10-172-3/+12
| | | | bpo-31799: Make module.__spec__ more discoverable
* bpo-31334: Fix timeout in select.poll.poll() (GH-3277)Riccardo Coccioli2017-10-174-10/+21
| | | | | | 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.
* bpo-31786: Make functions in the select module blocking when timeout is a ↵Pablo Galindo2017-10-177-12/+65
| | | | small negative value. (#4003)
* bpo-30541: Add new method to seal mocks (GH61923)Mario Corchero2017-10-175-2/+249
| | | | | | | 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>
* post 3.7.0a2 developmentNed Deily2017-10-171-1/+1
|
* Bump to 3.7.0a2v3.7.0a2Ned Deily2017-10-172-3/+3
|
* Update NEWS and topics for 3.7.0a2Ned Deily2017-10-1770-155/+700
|
* bpo-31558: Update NEWS and ACKS (#4013)Łukasz Langa2017-10-162-0/+6
|
* bpo-31558: Add gc.freeze() (#3705)brainfvck2017-10-165-2/+169
| | | | | 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.
* bpo-31773: _PyTime_GetPerfCounter() uses _PyTime_t (GH-3983)Victor Stinner2017-10-164-48/+135
| | | | | | | | * 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).
* bpo-31776: Missing "raise from None" in Lib/xml/etree/ElementPath.py (#3978)Pablo Galindo2017-10-161-1/+1
|
* bpo-31792: Restore os.environ in test_buffer when import numpy. (#4007)Serhiy Storchaka2017-10-161-2/+3
|