[issue44512] csv.DictWriter: inconsistency in handling of extrasaction arg

2021-06-27 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch pull_requests: +25496 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26924 ___ Python tracker ___ _

[issue44512] csv.DictWriter: inconsistency in handling of extrasaction arg

2021-06-25 Thread Andrei Kulakov
New submission from Andrei Kulakov : In csv.DictWriter, the arg `extrasaction` case is handled inconsistently: - if it's misspelled, e.g. ignor instead of 'ignore', a ValueError is raised by the __init__ method. - if it's 'Ignore', 'IGNORE', it will work properly - if it's 'raise', it will a