greetings,
i'm writing a program to scan a data file. from each line of the data file
i'd like to add something like below to a dictionary. my perl background
makes me want python to autovivify, but when i do:
file_data = {}
[... as i loop through lines in the file ...]
\r\n" to "\n" while
reading the file). Additionally, some platforms will treat binary files
differently.
would it be good to use 'rb' all the time?
On Thu, Sep 18, 2014 at 11:48 AM, Chris Angelico wrote:
>
> On Fri, Sep 19, 2014 at 4:11 AM, David Alban wro
greetings,
i'm a long time perl programmer who is learning python. i'd be interested
in any comments you might have on my code below. feel free to respond
privately if you prefer. i'd like to know if i'm on the right track. the
program works, and does what i want it to do. is there a differen