John Hunter wrote:
> On Wed, Jan 28, 2009 at 2:11 PM, Christopher Barker
> <chris.bar...@noaa.gov> wrote:
>
>   
>> But why the heck not? and according to the OP, Excel does create such files.
>>
>> Personally, I try to ALWAYS use 'U' when opening text files -- it can
>> save headaches, and I see no downside. It really should be the default
>> -- it's not, because the default was always text, but that was the same
>> as binary on *nix -- so there is a lot of *nix code out there opening
>> binary files without the 'b' flag. So we couldn't change the default
>> back in 2002, it would have broken a LOT of code.
>>     
>
> Fair enough -- changed on the trunk in r6845
>
> JDH
>
>   
John:  'rU' apparently doesn't work for gzipped text files (at least in 
python 2.5.2).  I had to change the default in back to 'r' when using 
gzip.open (r6846 in trunk).

-Jeff

-- 
Jeffrey S. Whitaker         Phone  : (303)497-6313
Meteorologist               FAX    : (303)497-6449
NOAA/OAR/PSD  R/PSD1        Email  : jeffrey.s.whita...@noaa.gov
325 Broadway                Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web    : http://tinyurl.com/5telg


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to