-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Aug 31, 2006, at 11:38 AM, Jim Jewett wrote:
> On 8/30/06, Barry Warsaw <[EMAIL PROTECTED]> wrote: > >> What about a keyword argument called 'filler' which can be an n-sized >> sequence or a callable. > > How about a keyword-only argument called finish which is a callable to > deal with the problem? When any sequence is exhausted, its position > is filled with StopIteration, and then finish(result) is returned. Nice! - -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iQCVAwUBRPcD+3EjvBPtnXfVAQKviQP/fEcBu7t2iXEfBom3flvDgcoauJp+/XSS s2zdIivkQAZgs8kmbtYpk0R4KPyIUhyjHahzcxvUKKXGakfpIl73FBGSK+XfG/iq IqQ33dW4Gl6YBt9HpOLVd0NP1RWUGl+QNegLP2ihgLoRFi0QK8fBj0FPoxHdHrfu rIGXwJe6Qlg= =0PRM -----END PGP SIGNATURE----- _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
