This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Ramchandra Apte, terry.reedy, tshepang
Date 2012-07-01.00:45:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1341103504.25.0.473891042739.issue15158@psf.upfronthosting.co.za>
In-reply-to
Content
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', 'abcd', 'a1s1']

re.split is intended for general splitting tasks. The SO had other posted solutions that also do the job. So I do not see the need.

Using commas both within quoted fields and between fields is semi-sensible, or at least widely done. Anyway, csv was designed for that and then generalized. 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 suggest you post enhancement ideas on python-ideas first, as it is a better place for discussion and reaches more people.
History
Date User Action Args
2012-07-01 00:45:04terry.reedysetrecipients: + terry.reedy, tshepang, Ramchandra Apte
2012-07-01 00:45:04terry.reedysetmessageid: <1341103504.25.0.473891042739.issue15158@psf.upfronthosting.co.za>
2012-07-01 00:45:03terry.reedylinkissue15158 messages
2012-07-01 00:45:03terry.reedycreate