On Monday, June 25, 2012 6:38:47 PM UTC+2, Anthony wrote:
>
> Do you already have the mapping, perhaps in a dictionary (or can you get
> it into one)? If so, maybe something like:
>
> ISO_COUNTRY_CODE_MAPPINGS = {k: T(v) for (k, v) in original_mapping.
> iteritems()} # requires Python 2.7
>
> Anthony
>
>
I see. It is still iterating through the whole mapping for each request,
though. Why not just use the original_mapping directly?--

