I have a python dictionary , the dictionary key composed from tupples,
like this :
{
(u'A_String_0', u'A_String_1', u'B_String_3', u'Remove_Me'): 300,
(u'A_String_0', u'B_String_4'): 301,
(u'A_String_0', u'A_String_1', u'B_String_3', u'Remove_Key'): 301,
}
I'd like to remove all keys from dictionary when only part of tupple appears in key :
for example 'Remove_'
In this case , must pop two keys: one contains u'Remove_Me'
and another contains u'Remove_Key'
Finally the dictionary will look like this :
{
(u'A_String_0', u'B_String_4'): 301
}
Thanks a lot !