public PythonDictionary(PythonDictionaryType dictType, IReadOnlyDictionary <IMember, IMember> contents, bool exact = false) :
     base(dictType, contents.Keys.ToArray(), exact: exact)
 {
     foreach (var kvp in contents)
     {
         _contents[kvp.Key] = kvp.Value;
     }
     _interpreter = dictType.DeclaringModule.Interpreter;
 }
Ejemplo n.º 2
0
 public PythonDictionary(PythonDictionaryType dictType, LocationInfo location, IReadOnlyDictionary <IMember, IMember> contents) :
     base(dictType, location, contents.Keys.ToArray())
 {
     foreach (var kvp in contents)
     {
         _contents[kvp.Key] = kvp.Value;
     }
     _interpreter = dictType.DeclaringModule.Interpreter;
 }