So here's how I read some code to myself yesterday:
Okay, first step here is we get a list of graphs to draw, it's a generator.
We go through each graph figuring out which datafiles we need to load so we
only load them once.
This we know is working so far because of print statements, showing two
datafiles in this case.
Now the next step, we're going through the generator again,... oh.
Yeah, you can't use a generator twice in Python and I knew it, but I didn't remember it until I heard myself speaking out loud. What's up with that?
1 comment:
Ah yes. You've rediscovered the stuffed code monkey. We had a baboon at our graphics lab in University that you could explain your code problem to. He never said much but it was amazing what you could solve by talking 'with' him.
Post a Comment