Message356113
Can you please attach a sample script to reproduce the behavior difference? With below script a dictionary is passed then dict.keys() supports subtraction over a list to return the difference. I am not sure how you have received a list with dict.keys() in Python 3.7.
import csv
fields = ["c", "d"]
with open('test.csv', 'w') as f:
writer = csv.DictWriter(f, fieldnames=fields, extrasaction='raise')
writer.writeheader()
writer.writerow({"n": 1}) |
|
Date |
User |
Action |
Args |
2019-11-06 10:39:05 | xtreak | set | recipients:
+ xtreak, rhettinger, serhiy.storchaka, afflictor |
2019-11-06 10:39:04 | xtreak | set | messageid: <1573036744.98.0.410943570306.issue38717@roundup.psfhosted.org> |
2019-11-06 10:39:04 | xtreak | link | issue38717 messages |
2019-11-06 10:39:04 | xtreak | create | |
|