A dictionary would not allow the same key twice, right? Many events use repeated "keys".

Reply to this note

Please Login to reply.

Discussion

Dang, you’re right! Thanks for clearing that up. So is the best way really to do something like:

for tag in event[1]['tags']:

if tag[0] == 'p':

pubkey_ref = tag[1]

if tag[0] == 'e':

target_eventID = tag[1]

yes, sort of.