TSV --> Problem Solved! Has anyone ever stumbled upon a cell entry that needed to contain an actual tab character? No!!! The tab character's entire raison-d'etre is to separate fields, whereas the comma separates words. Technically the "C" in CSV denotes "Character" but with TSV the intent is 100% clear. The MIME type is explicit: "Note that fields that contain tabs are not allowable in this encoding." This is a vani…
CleverCSV: A Drop-In Replacement for Python's CSV Module
41–44 of 44 posts
Re: CleverCSV: A Drop-In Replacement for Python's CSV Module
#42TSV --> Problem Solved! Has anyone ever stumbled upon a cell entry that needed to contain an actual tab character? No!!! The tab character's entire raison-d'etre is to separate fields, whereas the comma separates words. Technically the "C" in CSV denotes "Character" but with TSV the intent is 100% clear. The MIME type is explicit: "Note that fields that contain tabs are not allowable in this encoding." This is a vani…
What problem is solved, exactly? How do you parse the messy CSV file you've been handed, in order to convert it to TSV?
Re: CleverCSV: A Drop-In Replacement for Python's CSV Module
#43Earlier quoted context omitted.
What problem is solved, exactly? How do you parse the messy CSV file you've been handed, in order to convert it to TSV?
My point is simply that TSVs are just as straightforward as CSVs but suffer none of the issues. So why are we not making TSVs to begin with?
Re: CleverCSV: A Drop-In Replacement for Python's CSV Module
#44Earlier quoted context omitted.
Better an issue raised by a engineer then that same issue caused by an end user :shrug:
The engineer technically was an end user. It was a service that could get called as an indirect result of customer action, but without any customer supplied information passed along, which is part of the reason it didn't do any input clean-up (at least according to the post-incident report). They assumed they could trust people not to screw things up. To be fair, it had been running for a long time that way without a…