[issue17829] csv.Sniffer.snif doesn't set up the dialect properly for a csv created with dialect=csv.excel_tab and containing quote () char

2014-03-28 Thread Antoon Pardon
Antoon Pardon added the comment: I included a patch (against 2.7) that seems to make the test work. The patch prohibits the delim group to match a space. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17829

[issue17829] csv.Sniffer.snif doesn't set up the dialect properly for a csv created with dialect=csv.excel_tab and containing quote () char

2014-03-25 Thread Antoon Pardon
Antoon Pardon added the comment: I had a look at this and have the following remarks. 1) the file csv_sniffing_excel_tab.py no longer works with python 3.3. It now produces the folowing traceback: Traceback (most recent call last): File csv_sniffing_excel_tab.py, line 36, in module

[issue16915] mode of socket.makefile is more limited than documentation suggests

2013-01-13 Thread Antoon Pardon
Antoon Pardon added the comment: I think one could argue for allowing mode r+ instead of wb. Because w suggest truncation, which doesn't make sense on sockets either. But in the end I agree that allowing 'r', 'w', 'b' and 't' is probably the best compromise available

[issue16915] mode of socket.makefile is more limited than documentation suggests

2013-01-10 Thread Antoon Pardon
New submission from Antoon Pardon: The documentation of socket.makefile states that its arguments are interpreted the same way as by the built-in open() function. However the mode argument of socket.makefile only allows 'r', 'w' and 'b'. That some options are not allowed seems perfectly