Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #20471 > unrolled thread
| Started by | Chris Rebert <crebert@ucsd.edu> |
|---|---|
| First post | 2012-02-15 12:32 -0800 |
| Last post | 2012-02-15 12:32 -0800 |
| 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.
Re: writing to a file from within nested loops Chris Rebert <crebert@ucsd.edu> - 2012-02-15 12:32 -0800
| From | Chris Rebert <crebert@ucsd.edu> |
|---|---|
| Date | 2012-02-15 12:32 -0800 |
| Subject | Re: writing to a file from within nested loops |
| Message-ID | <mailman.5852.1329338037.27778.python-list@python.org> |
On Wed, Feb 15, 2012 at 12: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. Please post your exact actual code (which this isn't; it has clear fatal syntax errors) and the full error message, including the stack Traceback. I would suspect there is some problematic assignment to `f` that you excluded from the snippet you posted. Cheers, Chris
Back to top | Article view | comp.lang.python
csiph-web