[Python-Dev] PEP 201 - Parallel iteration
Thu, 20 Jul 2000 17:58:39 +0200
Greg Stein wrote:
> On Wed, Jul 19, 2000 at 12:00:17AM -0400, Barry A. Warsaw wrote:
> > >>>>> "MZ" == Moshe Zadka <firstname.lastname@example.org> writes:
> > MZ> I'm +1 on that. One thing that bugs me is that we're adding a
> > MZ> builtin type. Why not stick with the Python implementation?
> > I've been thinking a little bit about the other generators, especially
> > irange(). I wonder if we shouldn't just be putting zip() and friends
> > in their own Python module and not make them builtins?
> Which are you proposing:
> 1) implement in a Python module. clients use some_module.zip()
> 2) implement in a Python module. insert into builtins. clients use zip().
FYI, mx.Tools implements 1) + 2).
I usually put the "rom mx.Tools import NewBuiltins" at the
top of the module source file so that it becomes clear
that the module uses the set of new builtins available
through mx.Tools. YMMV.
Python Pages: http://www.lemburg.com/python/