MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / _collapse_language_array

Method _collapse_language_array

ideone/__init__.py:61–71  ·  view source on GitHub ↗

Convert the Ideone language list into a Python dictionary.

(language_array)

Source from the content-addressed store, hash-verified

59
60 @staticmethod
61 def _collapse_language_array(language_array):
62 """
63 Convert the Ideone language list into a Python dictionary.
64 """
65 language_dict = {}
66 for language in language_array.item:
67 key = language.key[0]
68 value = language.value[0]
69 language_dict[key] = value
70
71 return language_dict
72
73 def _translate_language_name(self, language_name):
74 """

Callers 1

languagesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected