[Tutor] How to parse large files

Danny Yoo dyoo at hashcollision.org
Tue Oct 27 22:34:30 EDT 2015


> Instead of doing:
>
>     diz5 = {}
>     ...
>
> we'd do something like this:
>
>     with diz5 = dbm.open('diz5, 'c'):


Sorry, I'm getting my syntax completely wrong here.  My apologies.
This should be:

    with dbm.open('diz5', 'c') as diz5:
        ...

Apologies: I just got back from work and my brain is mush.


More information about the Tutor mailing list