leepro / unladen-swallow

Automatically exported from code.google.com/p/unladen-swallow
Other
0 stars 0 forks source link

FDO: specialize dict operations #141

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
We should specialize dict indexing operations, much like list and tuple 
indexing was specialized in r957 and r1060, respectively.

Important notes:
- Unlike list/tuple indexing, dict lookups should accept all types for their 
keys.
- If the dict raises KeyError or any other exception, we should not bail (which 
would retry the operation), but rather just raise the exception. It is 
especially 
important that __hash__ not be called more than expected. A test should be 
written for this.
- Tests will need to be written for this, naturally.

This work is part of issue 73.

Original issue reported on code.google.com by collinw on 21 Feb 2010 at 6:06