[portland] Not Seeing Script Error(s)

Rich Shepard rshepard at appl-ecosys.com
Tue Nov 22 22:31:24 CET 2011


On Tue, 22 Nov 2011, Ethan Furman wrote:

> reader = csv.reader(open("test.txt","r"),
>                    delimiter="|",
>                    quotechar="'")
> output = csv.writer(open("out.txt","w"),
>                    delimiter="|",
>                    quotechar="'")

Ethan,

   How are these opened files closed? csv.reader() and csv.writer() have no
close method.

Rich


More information about the Portland mailing list