Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion How would you replace a field in a CSV file?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Masklinn  
View profile  
 More options Oct 3 2006, 6:05 am
Newsgroups: fa.haskell
From: "Masklinn" <maskl...@gmail.com>
Date: 3 Oct 2006 03:05:40 -0700
Local: Tues, Oct 3 2006 6:05 am
Subject: Re: How would you replace a field in a CSV file?

Grauenw...@gmail.com wrote:
> I noticed that the original python version was flawed. In CSV, commas
> can be inside a quoted field. Therefore, a simple split isn't good
> enough unless you are dead certain that fields are not quoted.

Which is why Python happens to have a CSV module as part of it's
standard library since 2.3.

I guess Pete didn't realize that there was one.

Makes his script a line shorter too (sice the line.split() is not
required anymore)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.