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

Use a CaseInsensitiveDict instead of munging all keys to lowercase #3

Open
pjz opened this issue Jan 21, 2021 · 0 comments
Open

Use a CaseInsensitiveDict instead of munging all keys to lowercase #3

pjz opened this issue Jan 21, 2021 · 0 comments

Comments

@pjz
Copy link
Owner

pjz commented Jan 21, 2021

  1. Use a CaseInsensitiveDict so keys don't get munged, they just compare better
  2. Use .casefold() for compare-munging instead of .lower()
  3. See https://stackoverflow.com/questions/2082152/case-insensitive-dictionary for impls if nothing else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant