]>
granicus.if.org Git - python/log
Danish Prakash [Sat, 25 Aug 2018 02:00:25 +0000 (07:30 +0530)]
bpo-34426: fix typo (__lltrace__ -> __ltrace__) (GH-8822)
Gregory P. Smith [Sat, 25 Aug 2018 01:08:50 +0000 (18:08 -0700)]
bpo-13312: Avoid int underflow in time year. (GH-8912)
Avoids an integer underflow in the time module's year handling code.
Alexey Izbyshev [Fri, 24 Aug 2018 23:34:56 +0000 (02:34 +0300)]
bpo-34492: Python/coreconfig.c: Fix _Py_wstrlist_copy() (GH-8910)
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.
Michael Osipov [Fri, 24 Aug 2018 16:17:19 +0000 (18:17 +0200)]
bpo-34448: Improve output of usable wchar_t check (GH-8846)
Alexey Izbyshev [Fri, 24 Aug 2018 15:53:16 +0000 (18:53 +0300)]
closes bpo-34471: _datetime: Add missing NULL check to tzinfo_from_isoformat_results. (GH-8869)
Reported by Svace static analyzer.
Vladimir Matveev [Fri, 24 Aug 2018 14:18:00 +0000 (07:18 -0700)]
bpo-6700: Fix inspect.getsourcelines for module level frames/tracebacks (GH-8864)
Daniel Dương [Fri, 24 Aug 2018 09:19:24 +0000 (16:19 +0700)]
Fix typo in the dataclasses's doc (GH-8896)
Alexey Izbyshev [Fri, 24 Aug 2018 04:39:45 +0000 (07:39 +0300)]
closes bpo-34468: Objects/rangeobject.c: Fix an always-false condition in 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.
Alexey Izbyshev [Fri, 24 Aug 2018 04:27:52 +0000 (07:27 +0300)]
closes bpo-34474: Python/bltinmodule.c: Add missing NULL check in builtin_sum_impl() (GH-8872)
Reported by Svace static analyzer.
Alexey Izbyshev [Fri, 24 Aug 2018 04:22:16 +0000 (07:22 +0300)]
closes bpo-34477: Objects/typeobject.c: Add missing NULL check to type_init() (GH-8876)
Reported by Svace static analyzer.
Anthony Sottile [Fri, 24 Aug 2018 03:08:54 +0000 (20:08 -0700)]
Fix doc for `add_subparsers` arguments (GH-8884)
There was a missing comma.
Jelle Zijlstra [Fri, 24 Aug 2018 01:50:00 +0000 (18:50 -0700)]
Fix typo in asyncio.BoundedSemaphore docs (GH-8882)
semapthores -> semaphores
Paul Ganssle [Thu, 23 Aug 2018 15:06:20 +0000 (11:06 -0400)]
bpo-34454: fix .fromisoformat() methods crashing on inputs with surrogate 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>
Ville Skyttä [Thu, 23 Aug 2018 14:49:18 +0000 (17:49 +0300)]
Make it more clear that setUpClass runs before each class, not "class run" (GH-8844)
Michael Osipov [Thu, 23 Aug 2018 13:27:19 +0000 (15:27 +0200)]
bpo-34412: Make signal.strsignal() work on HP-UX (GH-8786)
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.
Victor Stinner [Thu, 23 Aug 2018 10:23:46 +0000 (12:23 +0200)]
bpo-34207: Fix pymain_read_conf() for UTF-8 Mode (GH-8868)
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.
Alexey Izbyshev [Thu, 23 Aug 2018 07:50:52 +0000 (10:50 +0300)]
bpo-34436: Fix check that disables overallocation for the last fmt specifier (GH-8826)
Reported by Svace static analyzer.
Grant Jenks [Wed, 22 Aug 2018 20:14:14 +0000 (13:14 -0700)]
Remove superseded line from argparse.HelpFormatter() (GH-8839)
Alexey Izbyshev [Wed, 22 Aug 2018 18:27:32 +0000 (21:27 +0300)]
bpo-34462: Add missing NULL check to _copy_raw_string() (GH-8863)
Reported by Svace static analyzer.
Berker Peksag [Wed, 22 Aug 2018 18:21:05 +0000 (21:21 +0300)]
bpo-2122: Make mmap.flush() behave same on all platforms (GH-8692)
Previously, its behavior was platform-dependent and there was no error checking
under Windows.
Alexey Izbyshev [Wed, 22 Aug 2018 04:55:16 +0000 (07:55 +0300)]
bpo-34457: Python/ast.c: Add missing NULL check to alias_for_import_name(). (GH-8852)
Reported by Svace static analyzer.
Alexey Izbyshev [Wed, 22 Aug 2018 04:51:25 +0000 (07:51 +0300)]
bpo-34456: pickle: Add missing NULL check to save_global(). (GH-8851)
Reported by Svace static analyzer.
Berker Peksag [Tue, 21 Aug 2018 14:58:49 +0000 (17:58 +0300)]
Fix Doc/whatsnew/3.8.rst (GH-8848)
The entry about deprecation of __getitem__ methods of
several classes was placed in the wrong section.
Zackery Spytz [Tue, 21 Aug 2018 03:11:40 +0000 (21:11 -0600)]
bpo-34400: Fix more undefined behavior in parsetok.c (GH-8833)
Alexey Izbyshev [Mon, 20 Aug 2018 20:04:19 +0000 (23:04 +0300)]
bpo-34441: Fix ABC.__subclasscheck__ crash on classes with invalid __subclasses__ (GH-8835)
The missing NULL check was reported by Svace static analyzer.
Xiang Zhang [Mon, 20 Aug 2018 14:36:19 +0000 (22:36 +0800)]
bpo-30411: Use --git-dir instead of -C to make git work under version below 1.8.5. (GH-8744)
Alexey Izbyshev [Sun, 19 Aug 2018 18:52:04 +0000 (21:52 +0300)]
bpo-34435: Add missing NULL check to unicode_encode_ucs1(). (GH-8823)
Reported by Svace static analyzer.
Berker Peksag [Sun, 19 Aug 2018 10:25:33 +0000 (13:25 +0300)]
bpo-22057: Clarify eval() documentation (GH-8812)
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().)
Serhiy Storchaka [Sun, 19 Aug 2018 07:00:11 +0000 (10:00 +0300)]
bpo-34318: Convert deprecation warnings to errors in assertRaises() etc. (GH-8623)
Zackery Spytz [Sun, 19 Aug 2018 04:43:38 +0000 (22:43 -0600)]
bpo-22602: Raise an exception in the UTF-7 decoder for ill-formed sequences starting with "+". (GH-8741)
The UTF-7 decoder now raises UnicodeDecodeError for ill-formed
sequences starting with "+" (as specified in RFC 2152).
Vinay Sajip [Sun, 19 Aug 2018 04:14:19 +0000 (05:14 +0100)]
bpo-34415: Updated logging.Formatter docstring. (GH-8811)
Andrés Delfino [Sat, 18 Aug 2018 17:36:24 +0000 (14:36 -0300)]
bpo-34432: doc Mention complex and decimal.Decimal on str.format not about locales (GH-8808)
Michael Osipov [Fri, 17 Aug 2018 21:43:34 +0000 (23:43 +0200)]
bpo-34381: refer to 'Running & Writing Tests' in README.rst (GH-8797)
davidair [Fri, 17 Aug 2018 19:09:58 +0000 (15:09 -0400)]
Improve error message when mock.assert_has_calls fails (GH-8205)
This makes the assertion error message more useful, aiding debugging.
Thanks @davidair!
Alfred Perlstein [Fri, 17 Aug 2018 13:48:05 +0000 (09:48 -0400)]
Warn not to set SIGPIPE to SIG_DFL (#6773)
Michael Osipov [Fri, 17 Aug 2018 11:43:02 +0000 (13:43 +0200)]
bpo-34419: selectmodule.c does not compile on HP-UX due to bpo-31938 (GH-8796)
Fix compile errors reported by HP aCC by fixing bugs introduced in
6dc57e2a20c
which do not cause trouble on clang or GCC.
Patch by Michael Osipov.
Sebastian Rittau [Fri, 17 Aug 2018 09:47:32 +0000 (11:47 +0200)]
bpo-34418: Fix HTTPErrorProcessor documentation (GH-8793)
The http_response() and https_response() methods of the HTTPErrorProcessor
class have two required parameters, 'request' and 'response'.
Christian Heimes [Thu, 16 Aug 2018 17:43:44 +0000 (19:43 +0200)]
bpo-34391: Fix ftplib test for TLS 1.3 (GH-8787)
Read from data socket to avoid "[SSL] shutdown while in init" exception
during shutdown of the dummy server.
Signed-off-by: Christian Heimes <christian@python.org>
<!-- issue-number: [bpo-34391](https://www.bugs.python.org/issue34391) -->
https://bugs.python.org/issue34391
<!-- /issue-number -->
Erik Janssens [Thu, 16 Aug 2018 06:40:50 +0000 (08:40 +0200)]
bpo-34217: Use lowercase for windows headers (GH-8472)
Sergey Fedoseev [Thu, 16 Aug 2018 04:27:50 +0000 (09:27 +0500)]
bpo-34395: Fix memory leaks caused by incautious usage of PyMem_Resize(). (GH-8756)
Steve Dower [Wed, 15 Aug 2018 20:29:24 +0000 (13:29 -0700)]
bpo-34405: Updated to OpenSSL 1.1.0i for Windows builds. (GH-8775)
Berker Peksag [Wed, 15 Aug 2018 10:03:41 +0000 (13:03 +0300)]
bpo-34384: Fix os.readlink() on Windows (GH-8740)
os.readlink() now accepts path-like and bytes objects on Windows.
Previously, support for path-like and bytes objects was only
implemented on Unix.
This commit also merges Unix and Windows implementations of
os.readlink() in one function and adds basic unit tests to increase
test coverage of the function.
Zackery Spytz [Wed, 15 Aug 2018 06:27:26 +0000 (00:27 -0600)]
closes bpo-34400: Fix undefined behavior in parsetok(). (GH-4439)
Avoid undefined pointer arithmetic with NULL.
Christian Heimes [Tue, 14 Aug 2018 10:54:19 +0000 (12:54 +0200)]
bpo-34399: 2048 bits RSA keys and DH params (#8762)
Downstream vendors have started to deprecate weak keys. Update all RSA keys
and DH params to use at least 2048 bits.
Finite field DH param file use RFC 7919 values, generated with
certtool --get-dh-params --sec-param=high
Signed-off-by: Christian Heimes <christian@python.org>
Benjamin Peterson [Tue, 14 Aug 2018 04:32:30 +0000 (21:32 -0700)]
Make regular expressions in test_tasks.py raw strings. (GH-8759)
Follow up to bpo-34270.
Fixes:
```
Lib/test/test_asyncio/test_tasks.py:330: DeprecationWarning: invalid escape sequence \d
match1 = re.match("^<Task pending name='Task-(\d+)'", repr(t1))
Lib/test/test_asyncio/test_tasks.py:332: DeprecationWarning: invalid escape sequence \d
match2 = re.match("^<Task pending name='Task-(\d+)'", repr(t2))
```
Ville Skyttä [Mon, 13 Aug 2018 03:39:19 +0000 (06:39 +0300)]
smtplib documentation fixes (GH-8708)
* SMTP.startssl: Fix doc on keyfile and certfile use
* SMTP.startssl: Add missing keyfile and certfile deprecation notice
* SMTP: Doc grammar fixes
Rémy HUBSCHER [Sun, 12 Aug 2018 23:58:26 +0000 (01:58 +0200)]
Fix misindented yaml in logging how to example (GH-8604)
Raymond Hettinger [Sun, 12 Aug 2018 21:18:56 +0000 (14:18 -0700)]
Minor code clean-up. Don't alter the input vector. Use variables instead. GH-8748
Raymond Hettinger [Sun, 12 Aug 2018 19:15:23 +0000 (12:15 -0700)]
Add more tests and assertions for math.hypot() and math.dist() (GH-8747)
Vadim Pushtaev [Sun, 12 Aug 2018 11:46:05 +0000 (14:46 +0300)]
bpo-34213: Allow dataclasses to work with a field named 'object'. (GH-8452)
Andrés Delfino [Sun, 12 Aug 2018 06:50:46 +0000 (03:50 -0300)]
Fix the versionadded indentation in exec_module doc (GH-8719)
Raymond Hettinger [Sun, 12 Aug 2018 01:39:05 +0000 (18:39 -0700)]
Factor-out common code. Also, optimize common cases by preallocating space on the stack. GH-8738
Improves speed by 9 to 10ns per call.
Raymond Hettinger [Sat, 11 Aug 2018 18:26:36 +0000 (11:26 -0700)]
Replace straight addition with Kahan summation and move max to the end (GH-8727)
Sergey Fedoseev [Sat, 11 Aug 2018 13:12:07 +0000 (18:12 +0500)]
bpo-34151: Improve performance of some list operations (GH-8332)
Evan Allrich [Sat, 11 Aug 2018 07:34:02 +0000 (02:34 -0500)]
bpo-34379: Doc: Move note for json.dump (GH-8730)
Paul Price [Sat, 11 Aug 2018 06:41:34 +0000 (02:41 -0400)]
closes bpo-34377: Update Valgrind suppressions. (GH-8729)
Valgrind isn't seeing PyObject_Free/PyObject_Realloc, but using _PyObject_Free/_PyObject_Realloc works.
Berker Peksag [Sat, 11 Aug 2018 06:15:43 +0000 (09:15 +0300)]
bpo-26818: Add a test to make sure the bug is fixed (GH-8664)
The main cause of this bug was fixed as part of bpo-31908.
Berker Peksag [Sat, 11 Aug 2018 06:05:04 +0000 (09:05 +0300)]
bpo-9372: Deprecate several __getitem__ methods (GH-8609)
The __getitem__ methods of DOMEventStream, FileInput,
and FileWrapper classes ignore their 'index' parameters
and return the next item instead.
Berker Peksag [Sat, 11 Aug 2018 05:45:06 +0000 (08:45 +0300)]
bpo-34333: Fix %-formatting in Path.with_suffix() (GH-8663)
Tal Einat [Fri, 10 Aug 2018 06:02:08 +0000 (09:02 +0300)]
bpo-34047: IDLE: fix mousewheel scrolling direction on macOS (GH-8678)
GPery [Fri, 10 Aug 2018 05:12:08 +0000 (08:12 +0300)]
closes bpo-34353: Add sockets to stat.filemode fallback python implementation. (GH-8703)
Alex Grönholm [Thu, 9 Aug 2018 20:49:49 +0000 (23:49 +0300)]
Fixed inconsistency in string handling in the Task C implementation (GH-8717)
Andriy Maletsky [Thu, 9 Aug 2018 20:01:54 +0000 (23:01 +0300)]
Doc: add missing capture_output arg to subprocess.run() signature (#8374)
Andrés Delfino [Thu, 9 Aug 2018 15:45:41 +0000 (12:45 -0300)]
Improve grammar of asynchronous iterator glossary entry (GH-8657)
Stéphane Wirtel [Thu, 9 Aug 2018 15:05:31 +0000 (17:05 +0200)]
bpo-34324: Doc README wrong directory name for venv (GH-8650)
In the documentation, the `env` directory is specified when we execute
the `make venv` command. But in the code, `make venv` will create the
virtualenv inside the `venv` directory (defined by `VENVDIR`)
Alex Grönholm [Wed, 8 Aug 2018 21:06:47 +0000 (00:06 +0300)]
bpo-34270: Make it possible to name asyncio tasks (GH-8547)
Co-authored-by: Antti Haapala <antti.haapala@anttipatterns.com>
Benjamin Peterson [Wed, 8 Aug 2018 04:51:12 +0000 (21:51 -0700)]
Assume the raw environ is always declared. (GH-8707)
posixmodule.c always declares environ, so don't bother catching a NameError in os.py.
Sergey Fedoseev [Tue, 7 Aug 2018 21:38:00 +0000 (02:38 +0500)]
Make code examples in Functional Programming HOWTO to be PEP 8 compliant. (GH-8646)
Mikhail Terekhov [Tue, 7 Aug 2018 20:29:06 +0000 (16:29 -0400)]
bpo-34335: Use async/await syntax in documentation examples (GH-8674)
Steve Dower [Tue, 7 Aug 2018 14:45:27 +0000 (15:45 +0100)]
VSTS: Skip build steps when only docs have changed (GH-8546)
Zackery Spytz [Tue, 7 Aug 2018 14:26:58 +0000 (08:26 -0600)]
Remove unneeded PyErr_Clear() calls after PyErr_Print(). (GH-8699)
PyErr_Print() always clears the error indicator, so there is no need
to call PyErr_Clear() immediately afterwards.
Berker Peksag [Tue, 7 Aug 2018 02:12:18 +0000 (05:12 +0300)]
bpo-18540: Fix EAI_NONAME in imaplib.IMAP4*() (GH-8634)
Berker Peksag [Mon, 6 Aug 2018 20:52:49 +0000 (23:52 +0300)]
Fix HTML formatting in datamodel.rst (GH-8693)
Xtreak [Mon, 6 Aug 2018 19:55:03 +0000 (01:25 +0530)]
bpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645)
Patch by Terry Jan Reedy.
Serhiy Storchaka [Mon, 6 Aug 2018 13:50:19 +0000 (16:50 +0300)]
bpo-34272: Move argument parsing tests from test_capi to test_getargs2. (GH-8567)
Terry Jan Reedy [Mon, 6 Aug 2018 12:41:17 +0000 (08:41 -0400)]
bpo-34273: Change 'Fixed point' to 'Fixed-point notation'. (#8673)
* bpo-34273: Change 'Fixed point' to 'Fixed-point notation'.
The change in the mini language floating point and decimal table
is consistent with 'Exponential notation' and clarifies that we
are referring to the output notation, not an object type.
* Update string.rst
* Update string.rst
* Update string.rst
* Update string.rst
Anthony Sottile [Mon, 6 Aug 2018 08:28:19 +0000 (01:28 -0700)]
bpo-19891: Ignore error while writing history file (GH-8483)
Ville Skyttä [Sun, 5 Aug 2018 16:38:04 +0000 (19:38 +0300)]
bpo-34336: Don't promote possibility to leave out typing.Optional (#8677)
Tal Einat [Sun, 5 Aug 2018 06:21:08 +0000 (09:21 +0300)]
bpo-33839: refactor IDLE's tooltips & calltips, add docstrings and tests (GH-7683)
* make CallTip and ToolTip sub-classes of a common abstract base class
* remove ListboxToolTip (unused and ugly)
* greatly increase test coverage
* tested on Windows, Linux and macOS
Berker Peksag [Fri, 3 Aug 2018 21:56:55 +0000 (00:56 +0300)]
Fix reST markup in unittest documentation (GH-8665)
Victor Stinner [Fri, 3 Aug 2018 21:54:06 +0000 (23:54 +0200)]
bpo-34170: Fix pymain_run_file() (GH-8660)
bpo-34170, bpo-34326: Fix pymain_run_file(): use
PyRun_AnyFileExFlags(closeit=1) instead of calling fclose(fp)
explicitly to close the input file before running the code.
Stefan Otte [Fri, 3 Aug 2018 20:49:42 +0000 (22:49 +0200)]
bpo-34329: Doc'd how to remove suffix of pathlib.Path() (GH-8655)
Victor Stinner [Fri, 3 Aug 2018 20:49:07 +0000 (22:49 +0200)]
bpo-34170: _PyCoreConfig_Read() don't replace coerce_c_locale (GH-8658)
If coerce_c_locale is already set (>= 0), use its value: don't
override it.
Marcel Plch [Fri, 3 Aug 2018 15:59:19 +0000 (17:59 +0200)]
bpo-34325: Skip zipfile test for large timestamps when filesystem don't support them. (GH-8656)
When the filesystem doesn't support files with large timestamps,
skip testing that such files can be zipped.
Victor Stinner [Fri, 3 Aug 2018 13:33:52 +0000 (15:33 +0200)]
bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592)
sys_setcheckinterval() now uses a local variable to parse arguments,
before writing into interp->check_interval.
INADA Naoki [Fri, 3 Aug 2018 09:09:57 +0000 (18:09 +0900)]
Fix docstring of Profiler class (GH-8651)
Andrés Delfino [Fri, 3 Aug 2018 05:12:51 +0000 (02:12 -0300)]
Improve the grammar in `range` documentation. (GH-8628)
Remove unnecessary "that" in the sentence.
Terry Jan Reedy [Fri, 3 Aug 2018 02:50:01 +0000 (22:50 -0400)]
bpo-34275: Make IDLE calltips always visible on Mac. (GH-8639)
Some MacOS-tk combinations need .update_idletasks().
The call is both unneeded and innocuous on Linux and Windows.
Patch by Kevin Waltzer.
Lysandros Nikolaou [Fri, 3 Aug 2018 02:45:48 +0000 (04:45 +0200)]
Update list.remove(x) documentation (GH-8636)
Rephrase it to "It raises a `ValueError`"
HiyashiChuka [Fri, 3 Aug 2018 02:44:06 +0000 (11:44 +0900)]
bpo-34317: Fix a dead url to Windows documentation (GH-8622)
Victor Stinner [Fri, 3 Aug 2018 00:09:00 +0000 (02:09 +0200)]
bpo-30317: Fix multiprocessing test_timeout() (GH-8621)
Multiprocessing test_timeout() now accepts a delta of 100 ms instead
of just 50 ms, since the test failed with 135.8 ms instead of the
expected 200 ms.
Victor Stinner [Thu, 2 Aug 2018 17:34:20 +0000 (19:34 +0200)]
bpo-34170: Cleanup pymain_run_filename() (GH-8631)
* Inline pymain_run_file() and pymain_open_filename() into
pymain_run_filename()
* Created pymain_run_stdin() which is pymain_run_filename() with
filename=NULL
* Rename pymain_run_filename() to pymain_run_file()
torsava [Thu, 2 Aug 2018 16:08:59 +0000 (17:08 +0100)]
bpo-27910: Update documentation of traceback module (GH-6116)
In the documentation for the traceback module, the definitions of functions
extract_tb(), format_list() and classmethod StackSummary.from_list()
mention the old style 4-tuples that these functions used to return or accept.
Since Python 3.5, however, they return or accept a FrameSummary object
instead of a 4-tuple, or a StackSummary object instead of a list of 4-tuples.
Co-Authored-By: Berker Peksag <berker.peksag@gmail.com>
Marcel Plch [Thu, 2 Aug 2018 13:04:52 +0000 (15:04 +0200)]
bpo-34097: Add support for zipping files older than 1980-01-01 (GH-8270)
ZipFile can zip files older than 1980-01-01 and newer than 2107-12-31 using
a new strict_timestamps parameter at the cost of setting the timestamp
to the limit.
jdemeyer [Thu, 2 Aug 2018 11:14:54 +0000 (13:14 +0200)]
bpo-34287: Do not use second argument of METH_NOARGS functions (GH-8582)
Tal Einat [Thu, 2 Aug 2018 07:30:06 +0000 (10:30 +0300)]
bpo-34120: fix text viewer to call grab_release() only when needed (GH-8616)
Tal Einat [Thu, 2 Aug 2018 06:18:29 +0000 (09:18 +0300)]
bpo-34120: fix IDLE freezing after closing dialogs (GH-8603)
Added missing .grab_release() calls to all places where we call .grab_set().
Victor Stinner [Wed, 1 Aug 2018 16:18:07 +0000 (18:18 +0200)]
bpo-31650: Remove _Py_CheckHashBasedPycsMode global config var (GH-8608)
bpo-31650, bpo-34170: Replace _Py_CheckHashBasedPycsMode with
_PyCoreConfig._check_hash_pycs_mode. Modify PyInit__imp() and
zipimport to get the parameter from the current interpreter core
configuration.
Remove Include/internal/import.h file.
Victor Stinner [Wed, 1 Aug 2018 15:56:14 +0000 (17:56 +0200)]
bpo-34170: Add Python/coreconfig.c for _PyCoreConfig (GH-8607)
* Add Include/coreconfig.h
* Move config_*() and _PyCoreConfig_*() functions from Modules/main.c
to a new Python/coreconfig.c file.
* Inline _Py_ReadHashSeed() into config_init_hash_seed()
* Move global configuration variables to coreconfig.c
Victor Stinner [Wed, 1 Aug 2018 14:41:25 +0000 (16:41 +0200)]
Define _Py_NO_RETURN for Microsoft C compiler (GH-8606)