Finding fast default aliases in Python -


Is there a faster way to do the following for too many big names?

  aliases = country name = surname [country name]  

1).

You can do something like this to save some typing:

  country name = aliases.get (country name, country name)  

(But I think it is very easy to read your code)

When it comes to speed, then what is the best solution if "hit" or "miss" Will be the majority of. But it probably will be in the nanosecond range when it comes to difference.


Comments

Popular posts from this blog

c# - TypeConverter in propertygrid only converts from string, not to -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -