Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #20470

Re: writing to a file from within nested loops

References (4 earlier) <75909037172f2d.4f3bf294@wiscmail.wisc.edu> <76f0965b175c1f.4f3bf2d0@wiscmail.wisc.edu> <77c0ac1d173db4.4f3bf403@wiscmail.wisc.edu> <7750b096170a1e.4f3c11b5@wiscmail.wisc.edu> <77a0e187170dca.4f3bbd59@wiscmail.wisc.edu>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2012-02-15 13:32 -0700
Subject Re: writing to a file from within nested loops
Newsgroups comp.lang.python
Message-ID <mailman.5851.1329338002.27778.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Feb 15, 2012 at 1:12 PM, Rituparna Sengupta <rsengupta@wisc.edu> wrote:
> Hi,
>
> I'm working on this code and I keep getting an error. It might be some very basic thing but I was wondering if someone could help. Its a loop within a loop. The part outside the innermost loop gets printed fine, but the part within the innermost loop doesn't get printed. I get an error: 'str' has no attribute 'write'. Thanks in advance.

There's not enough to go on here.  Please post the actual code snippet
and the full traceback.  Don't summarize the error for us.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: writing to a file from within nested loops Ian Kelly <ian.g.kelly@gmail.com> - 2012-02-15 13:32 -0700

csiph-web