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


Groups > comp.lang.python > #20470 > unrolled thread

Re: writing to a file from within nested loops

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2012-02-15 13:32 -0700
Last post2012-02-15 13:32 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#20470 — Re: writing to a file from within nested loops

FromIan Kelly <ian.g.kelly@gmail.com>
Date2012-02-15 13:32 -0700
SubjectRe: writing to a file from within nested loops
Message-ID<mailman.5851.1329338002.27778.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web