Slicing iterables in sub-generators without loosing elements
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Tue Oct 2 21:24:13 EDT 2012
On Tue, 02 Oct 2012 18:11:20 -0700, 88888 Dihedral wrote:
> Steven D'Aprano於 2012年10月3日星期三UTC+8上午8時57分20秒寫道:
>> Oh, I'm convinced that it's a bot.
>> The fact that Dihedral never responds to conversations about him/it is
>> a give away: nearly all people are far to egotistical to let
>> accusations of bot-hood go unchallenged.
[...]
>> Of course, Dihedral's creator wanted to really confound us, the
>> occasional human response would probably muddy the waters sufficiently.
> Are you still not getting the generator part in Python? Do you really
> test any generator before?
I rest my case :)
I have many problems with generators. Can you tell me more about them? I
really need your help. Sometimes, when it is very cold, the diesel
freezes and the generator raises StopIteration at the wrong place.
--
Steven
More information about the Python-list
mailing list