Re: Problem in splitting a string

From: Dave Brueck (dave_at_pythonapocrypha.com)
Date: 07/22/04


Date: Thu, 22 Jul 2004 12:49:43 -0600
To: python-list@python.org

Angelo Secchi wrote:
>
> Thanks, Wes. I would like the tring in my example splitted as:
>
> ['','','',and so on,'23','','','"name,surname"','','','',and so on,'\n']

Python 2.3 has the csv module. See section 12.20.5 of the docs for some
examples.

-Dave



Relevant Pages

  • Re: Is anyone happy with csv module?
    ... to an official Python module without asking. ... An example of writing data given in columns: ... writer.writerows(itertools.izip(id, name, hair)) ... I think your problem is not with the csv module, but lack of familiarity with the Python language itself and how to use it efficiently. ...
    (comp.lang.python)
  • Re: Python evolution: Unease
    ... I still think numarray is a good start for this. ... >>represented by the csv module are a lot shallower than those represented by ... > necessary stuff (I'm not even half done in learning Python) ... > and clear_ manipulations of rich data structures in Python. ...
    (comp.lang.python)
  • Re: Announce: csv_xs.py
    ... >> like about Python's csv module that motivated you to write your own class? ... > Now i wanna learn python for me and i often work with csv files with perl ... explicit. ...
    (comp.lang.python)
  • Re: Flat file database
    ... Art> text file as a flat file database? ... If Python ... you might consider the csv module. ...
    (comp.lang.python)
  • Re: Using with CSV library in Python 2.2!!!
    ... Seperated Value) library with Python 2.2. ... I want to use the CSV library module for reading data from the .csv ... CSV module is missing from the Python root ...
    (comp.lang.python)