summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33635: Handling Bad file descriptor in Path.is_file and related. (GH-8542)Przemysław Spodymek2018-08-273-10/+48
|
* bpo-34347: Fix test_utf8_mode.test_cmd_line for AIX (GH-8923)Michael Felt2018-08-272-0/+3
| | | AIX uses ISO-8859-1 encoding for the C locale.
* bpo-34434: Update doc for bool(), float() and int() arguments (GH-8834)Louis Sautier2018-08-271-1/+9
|
* bpo-26544: Get rid of dependence from distutils in platform. (GH-8356)Serhiy Storchaka2018-08-271-1/+30
|
* bpo-34171: Fix test_trace. (GH-8940)Serhiy Storchaka2018-08-271-3/+6
| | | | Remove "trace.cover" left from previous test runs before testing that it is no longer created.
* bpo-32968: Make modulo and floor division involving Fraction and float ↵Elias Zamaria2018-08-274-12/+13
| | | | | | | consistent with other operations (#5956) Make mixed-type `%` and `//` operations involving `Fraction` and `float` objects behave like all other mixed-type arithmetic operations: first the `Fraction` object is converted to a `float`, then the `float` operation is performed as normal. This fixes some surprising corner cases, like `Fraction('1/3') % inf` giving a NaN. Thanks Elias Zamaria for the patch.
* Fast path for exact floats in math.hypot() and math.dist() (GH-8949)Raymond Hettinger2018-08-271-9/+21
|
* Remove AIX workaround test_subprocess (GH-8939)Michael Felt2018-08-262-8/+3
| | | | An old apparent AIX behavior workaround in test_subprocess's test_undecodable_env is no longer needed.
* bpo-34503: Fix refleak in PyErr_SetObject() (GH-8934)Alexey Izbyshev2018-08-261-0/+1
|
* closes bpo-34504: Remove the useless NULL check in PySequence_Check(). (GH-8935)Alexey Izbyshev2018-08-251-1/+1
| | | Reported by Svace static analyzer.
* closes bpo-34501: PyType_FromSpecWithBases: Check spec->name before ↵Alexey Izbyshev2018-08-251-4/+9
| | | | | dereferencing it. (GH-8930) Reported by Svace static analyzer.
* closes bpo-34502: Remove a note about utf8_mode from sys.exit() docs. (GH-8928)Alexey Izbyshev2018-08-251-3/+0
|
* Remove unneeded PyErr_Clear() in _winapi_SetNamedPipeHandleState_impl() ↵Zackery Spytz2018-08-251-2/+0
| | | | (GH-8281)
* Fix markup in stdtypes documentation (GH-8905)Andrés Delfino2018-08-251-5/+5
|
* bpo-34395: Don't free allocated memory on realloc fail in load_mark() in ↵Sergey Fedoseev2018-08-251-15/+5
| | | | _pickle.c. (GH-8788)
* Fix upsizing of marks stack in pickle module. (GH-8860)Sergey Fedoseev2018-08-252-4/+4
| | | Previously marks stack was upsized even there was space for additional item.
* bpo-34171: Prevent creating Lib/trace.cover when run the trace module. (GH-8841)Serhiy Storchaka2018-08-253-10/+10
|
* closes bpo-34493: Objects/genobject.c: Add missing NULL check to ↵Alexey Izbyshev2018-08-251-0/+3
| | | | compute_cr_origin() (GH-8911)
* Fixed typo with asynccontextmanager code example (GH-8845)Alexander Vasin2018-08-251-1/+1
| | | `yield conn`, instead of just `yield`.
* bpo-34426: fix typo (__lltrace__ -> __ltrace__) (GH-8822)Danish Prakash2018-08-251-1/+1
|
* bpo-13312: Avoid int underflow in time year. (GH-8912)Gregory P. Smith2018-08-253-6/+13
| | | Avoids an integer underflow in the time module's year handling code.
* bpo-34492: Python/coreconfig.c: Fix _Py_wstrlist_copy() (GH-8910)Alexey Izbyshev2018-08-241-1/+4
| | | | | | | bpo-34492: Python/coreconfig.c: Add missing NULL check to _Py_wstrlist_copy(). Fix _Py_wstrlist_clear() call on a wrong list. Reported by Svace static analyzer.
* bpo-34448: Improve output of usable wchar_t check (GH-8846)Michael Osipov2018-08-242-7/+9
|
* closes bpo-34471: _datetime: Add missing NULL check to ↵Alexey Izbyshev2018-08-241-1/+4
| | | | | tzinfo_from_isoformat_results. (GH-8869) Reported by Svace static analyzer.
* bpo-6700: Fix inspect.getsourcelines for module level frames/tracebacks ↵Vladimir Matveev2018-08-244-3/+26
| | | | (GH-8864)
* Fix typo in the dataclasses's doc (GH-8896)Daniel Dương2018-08-241-1/+1
|
* closes bpo-34468: Objects/rangeobject.c: Fix an always-false condition in ↵Alexey Izbyshev2018-08-241-4/+4
| | | | | | | | range_repr() (GH-8880) Also, propagate the error from PyNumber_AsSsize_t() because we don't care only about OverflowError which is not reported if the second argument is NULL. Reported by Svace static analyzer.
* closes bpo-34474: Python/bltinmodule.c: Add missing NULL check in ↵Alexey Izbyshev2018-08-241-0/+5
| | | | | builtin_sum_impl() (GH-8872) Reported by Svace static analyzer.
* closes bpo-34477: Objects/typeobject.c: Add missing NULL check to ↵Alexey Izbyshev2018-08-241-0/+3
| | | | | type_init() (GH-8876) Reported by Svace static analyzer.
* Fix doc for `add_subparsers` arguments (GH-8884)Anthony Sottile2018-08-241-1/+1
| | | There was a missing comma.
* Fix typo in asyncio.BoundedSemaphore docs (GH-8882)Jelle Zijlstra2018-08-241-1/+1
| | | semapthores -> semaphores
* bpo-34454: fix .fromisoformat() methods crashing on inputs with surrogate ↵Paul Ganssle2018-08-233-10/+84
| | | | | | | | | | | | | | | | | | | | code points (GH-8862) The current C implementations **crash** if the input includes a surrogate Unicode code point, which is not possible to encode in UTF-8. Important notes: 1. It is possible to pass a non-UTF-8 string as a separator to the `.isoformat()` methods. 2. The pure-Python `datetime.fromisoformat()` implementation accepts strings with a surrogate as the separator. In `datetime.fromisoformat()`, in the special case of non-UTF-8 separators, this implementation will take a performance hit by making a copy of the input string and replacing the separator with 'T'. Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru> Co-authored-by: Paul Ganssle <paul@ganssle.io>
* Make it more clear that setUpClass runs before each class, not "class run" ↵Ville Skyttä2018-08-231-1/+1
| | | | (GH-8844)
* bpo-34412: Make signal.strsignal() work on HP-UX (GH-8786)Michael Osipov2018-08-236-4/+27
| | | | | | Introduce a configure check for strsignal(3) which defines HAVE_STRSIGNAL for signalmodule.c. Add some common signals on HP-UX. This change applies for Windows and HP-UX.
* bpo-34207: Fix pymain_read_conf() for UTF-8 Mode (GH-8868)Victor Stinner2018-08-231-0/+6
| | | | | bpo-34170, bpo-34207: pymain_read_conf() now sets Py_UTF8Mode to config->utf8_mode. pymain_read_conf() calls indirectly Py_DecodeLocale() and Py_EncodeLocale() which depend on Py_UTF8Mode.
* bpo-34436: Fix check that disables overallocation for the last fmt specifier ↵Alexey Izbyshev2018-08-231-3/+3
| | | | | (GH-8826) Reported by Svace static analyzer.
* Remove superseded line from argparse.HelpFormatter() (GH-8839)Grant Jenks2018-08-221-1/+0
|
* bpo-34462: Add missing NULL check to _copy_raw_string() (GH-8863)Alexey Izbyshev2018-08-221-1/+1
| | | | Reported by Svace static analyzer.
* bpo-2122: Make mmap.flush() behave same on all platforms (GH-8692)Berker Peksag2018-08-225-13/+36
| | | | | Previously, its behavior was platform-dependent and there was no error checking under Windows.
* bpo-34457: Python/ast.c: Add missing NULL check to alias_for_import_name(). ↵Alexey Izbyshev2018-08-221-0/+2
| | | | | (GH-8852) Reported by Svace static analyzer.
* bpo-34456: pickle: Add missing NULL check to save_global(). (GH-8851)Alexey Izbyshev2018-08-221-0/+2
| | | Reported by Svace static analyzer.
* Fix Doc/whatsnew/3.8.rst (GH-8848)Berker Peksag2018-08-211-9/+9
| | | | The entry about deprecation of __getitem__ methods of several classes was placed in the wrong section.
* bpo-34400: Fix more undefined behavior in parsetok.c (GH-8833)Zackery Spytz2018-08-211-2/+4
|
* bpo-34441: Fix ABC.__subclasscheck__ crash on classes with invalid ↵Alexey Izbyshev2018-08-203-0/+36
| | | | | | __subclasses__ (GH-8835) The missing NULL check was reported by Svace static analyzer.
* bpo-30411: Use --git-dir instead of -C to make git work under version below ↵Xiang Zhang2018-08-202-19/+7
| | | | 1.8.5. (GH-8744)
* bpo-34435: Add missing NULL check to unicode_encode_ucs1(). (GH-8823)Alexey Izbyshev2018-08-191-2/+3
| | | Reported by Svace static analyzer.
* bpo-22057: Clarify eval() documentation (GH-8812)Berker Peksag2018-08-191-2/+4
| | | | | | | | | | | | If a globals dictionary without a '__builtins__' key is passed to eval(), a '__builtins__' key will be inserted to the dictionary: >>> eval("print('__builtins__' in globals())", {}) True (As a result of this behavior, we can use the builtins print() and globals() even if we passed a dictionary without a '__builtins__' key to eval().)
* bpo-34318: Convert deprecation warnings to errors in assertRaises() etc. ↵Serhiy Storchaka2018-08-193-19/+17
| | | | (GH-8623)
* bpo-22602: Raise an exception in the UTF-7 decoder for ill-formed sequences ↵Zackery Spytz2018-08-194-0/+13
| | | | | | | starting with "+". (GH-8741) The UTF-7 decoder now raises UnicodeDecodeError for ill-formed sequences starting with "+" (as specified in RFC 2152).
* bpo-34415: Updated logging.Formatter docstring. (GH-8811)Vinay Sajip2018-08-191-1/+2
|