New submission from tb:
The csv.DictReader contains a setter method for the fieldnames
(@fieldnames.setter). However, the __init__ method does not make use of the
setter method as it sets _fieldnames directly. To allow users
correct/functional overriding of the fieldnames.setter method I
tb added the comment:
This is my use case:
I am creating a custom DictReader class for reading and accessing the columns
white space and case insensitive.
For this I created a dict subclass (DictInsensitive) with a custom __getitem__
method. DictReaderInsensitive.__next__ overrides the
tb added the comment:
Okay, that makes my use case obsolete. Overwriting the getter method like this
seems obvious ... Somehow this hasn't come to my mind.
Sorry for bothering. From my point of view, we can close this issue. Or is
there another use