This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients afflictor, rhettinger, serhiy.storchaka, xtreak
Date 2019-11-06.10:39:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573036744.98.0.410943570306.issue38717@roundup.psfhosted.org>
In-reply-to
Content
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})
History
Date User Action Args
2019-11-06 10:39:05xtreaksetrecipients: + xtreak, rhettinger, serhiy.storchaka, afflictor
2019-11-06 10:39:04xtreaksetmessageid: <1573036744.98.0.410943570306.issue38717@roundup.psfhosted.org>
2019-11-06 10:39:04xtreaklinkissue38717 messages
2019-11-06 10:39:04xtreakcreate