bpo-35598: IDLE: Refactor globals in config_key.py by csabella · Pull Request #11377 · python/cpython

@csabella

* Move translate_key to module level
* Move key tuples to module level

sth and others added 13 commits

December 31, 2018 10:07
…11373)

Use crypt_r() when available instead of crypt() in the crypt module.

As a nice side effect: This also avoids a memory sanitizer flake as clang msan doesn't know about crypt's internal libc allocated buffer.
…ythonGH-11375)

Add Clang Memory Sanitizer build instrumentation to work around
false positives from the socket and time modules as well as skipping
a couple test_faulthandler tests.
HASH_OBJ_CONSTRUCTOR has always been defined as 0 since I created
hashlib in Python 2.5.  Delete all code associated with it.
Also skip the same tests when using the undefined behavior sanitizer
as they much with the output.

Updates a regex in another test to use multi-line mode so that the ubsan
buildbot should pass again rather than also adding a skip to that one.
…ython#11385)

* skip test_constructor under msan.

* fix the others as well.

* reuse existing related news entry.

* typo fix
It doesn't know the details of a few less common libc functions.
A minor typo in the output of `python -m test -h`.
A space was missing in between two words.
howmuch -> how much
* Replace the docstrings cache with sys.intern().
* Improve tests.
* Unify names of tp_descr_get and tp_descr_set functions.