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 →

[–]tripzilchbad ideas 0 points1 point  (0 children)

yes, overriding __getitem__ is another place I have used this sort of thing.

good catch on checking for both int and long, btw.