Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make lru_cache take advantage of ordered dicts #3

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

matthiasgoergens
Copy link
Owner

@matthiasgoergens matthiasgoergens commented Aug 11, 2022

No description provided.

@matthiasgoergens matthiasgoergens changed the title Test PR Make lru_cache take advantage of ordered dicts Aug 13, 2022
@matthiasgoergens matthiasgoergens force-pushed the matthias/direct-lru branch 3 times, most recently from 6843b54 to ce1adb3 Compare August 13, 2022 15:27
markshannon and others added 8 commits August 15, 2022 12:29
* Make sure that tp_dictoffset is correct with Py_TPFLAGS_MANAGED_DICT is set.

* Avoid traversing managed dict twice when subclassing class with Py_TPFLAGS_MANAGED_DICT set.
…nGH-94742)

If kernel fips is enabled, we get permission error upon doing
`import crypt`. So, if kernel fips is enabled, disable the
unallowed hashing methods.

Python 3.9.1 (default, May 10 2022, 11:36:26)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import crypt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.9/crypt.py", line 117, in <module>
    _add_method('MD5', '1', 8, 34)
  File "/usr/lib/python3.9/crypt.py", line 94, in _add_method
    result = crypt('', salt)
  File "/usr/lib/python3.9/crypt.py", line 82, in crypt
    return _crypt.crypt(word, salt)
PermissionError: [Errno 1] Operation not permitted

Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
'/Tab' should have been removed from the font page label
when the tab-spaces setting was moved to the Windows page.
For better encapsulation, we move all the machinery for skipping empty
entries into the dict code itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
8 participants