[issue15158] Add support for multi-character delimiters in csv

2013-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: You did not explain why it is *impossible* for you to use any of the other solutions. In any case, I looked at the C code. It defines delimiter (as well as quotechar and escapechar) as a single unicode char. This is different from Python which does not have a

[issue15158] Add support for multi-character delimiters in csv

2013-03-08 Thread Ramchandra Apte
Ramchandra Apte added the comment: I have posted on python-ideas. On 9 March 2013 03:14, Terry J. Reedy rep...@bugs.python.org wrote: Terry J. Reedy added the comment: You did not explain why it is *impossible* for you to use any of the other solutions. In any case, I looked at the C

[issue15158] Add support for multi-character delimiters in csv

2012-10-04 Thread Ramchandra Apte
Ramchandra Apte added the comment: I do not see the need to cater to something as foolish and rare as using a multichar delimiter that is also within fields. I need to generate tables for Google Code wikis. -- ___ Python tracker

[issue15158] Add support for multi-character delimiters in csv

2012-06-30 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Did you read Unfortunately, delimiter is represented by a character in C. in one of the answers? If so, this should be rejected. For the posted problem, I added the following. list(s[1:-1] for s in '1234||abcd||a1s1'.split('||')) ['1234',

[issue15158] Add support for multi-character delimiters in csv

2012-06-29 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15158 ___ ___

[issue15158] Add support for multi-character delimiters in csv

2012-06-23 Thread Ramchandra Apte
New submission from Ramchandra Apte maniandra...@gmail.com: It would be nice if csv supported multi-character delimiters. I need it for my project. Another person had this problem: http://stackoverflow.com/questions/6352409/how-to-use-python-csv-module-for-splitting-double-pipe-delimited-data

[issue15158] Add support for multi-character delimiters in csv

2012-06-23 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: BTW, conincidentally just like the stackoverflow, even I want to split double pipes -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15158