Clever hack or code abomination?

Matt Joiner anacrolix at gmail.com
Fri Dec 2 00:11:06 EST 2011


Thank you. ಠ_ಠ

On Fri, Dec 2, 2011 at 1:49 PM, Terry Reedy <tjreedy at udel.edu> wrote:
> On 11/30/2011 10:49 PM, Matt Joiner wrote:
>>
>> def possible_names():
>>     yield "foo"
>>     for i in range(20):
>>         yield "foo-" + str(i)
>
>
> This is my favorite -- crystal clear with only the variable part variable.
> And it works in both 2.x and 3.x.
>
> --
> Terry Jan Reedy
>
> --
> http://mail.python.org/mailman/listinfo/python-list



More information about the Python-list mailing list