Message85238
On Thu, 2 Apr 2009 at 17:55, Skip Montanaro wrote:
> This thread is getting a bit long. Can someone summarize how the expected
> usage of the csv module is supposed to change? If I read things correctly,
> instead of requiring (in the general case) that csv files be opened in
> binary mode, the requirement will be that they be opened with newline=''.
> This will thwart any attempts by the io module at newline translation, but
> since the file is still opened in text mode its contents will implicitly be
> Unicode (or Unicode translated to bytes with a specific encoding). That
> encoding will also be specified in the call to open().
I believe that is an accurate summary.
> Is this about correct? Do any test cases need to be updated or added? I
> notice that something called BytesIO is imported from io but not used. Were
> some test cases removed which used to involve that class or is that a 2to3
> artifact?
I will look in to this, and add an encoding example to the docs as you
suggest in another email.
--David |
|
Date |
User |
Action |
Args |
2009-04-02 18:41:49 | r.david.murray-old | set | recipients:
+ r.david.murray-old, gvanrossum, skip.montanaro, georg.brandl, sjmachin, pitrou, vstinner, r.david.murray, jaywalker, jdwhitley |
2009-04-02 18:41:47 | r.david.murray-old | link | issue4847 messages |
2009-04-02 18:41:46 | r.david.murray-old | create | |
|