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
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
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
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',
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15158
___
___
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
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