Slicing iterables in sub-generators without loosing elements
88888 Dihedral
dihedral88888 at googlemail.com
Tue Oct 2 21:42:19 EDT 2012
Steven D'Aprano於 2012年10月3日星期三UTC+8上午9時24分13秒寫道:
> 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
Please work out your own templates as I showed in the decorator part.
More information about the Python-list
mailing list