[issue16297] csv.DictReader

2012-10-22 Thread tb
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

[issue16297] make csv.DictReader.__init__ use self.fieldnames

2012-10-23 Thread tb
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

[issue16297] make csv.DictReader.__init__ use self.fieldnames

2012-10-23 Thread tb
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