-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Pure python implementation of map, insofar as generated code is concerned. Most of the functions are implemented in cython base class. The interesting part here are the `check_{key,val}_or_raise`, which are used in `__init__` to replicate the type checking done by the cpp conversions in cython. `__contains__` uses `_check_key_or_none` because it shouldn't raise, similar to current `_check_key_type`. This is also used by `__getitem__` since it doesn't want `TypeError` stacktrace, just a fresh `KeyError`. Reviewed By: yoney Differential Revision: D66275060 fbshipit-source-id: cf56801cb0012b9d24e79157fa81530df473dc59
- Loading branch information
1 parent
9f83204
commit d2265fd
Showing
70 changed files
with
4,354 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.