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; }
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; }