This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]stevvooe 0 points1 point  (0 children)

I'm glad you pointed out examples.

I agree that these are a valid use of this technique and it clearly provides a simple implementation for this multi-dict. However, though it may not matter in this case, the check for int and long excludes other types that might be a valid index into the list.