[Python-3000] Ambiguity in PEP 3115 and the args to __prepare__

Guilherme Polo ggpolo at gmail.com
Sun Sep 2 15:42:35 CEST 2007


2007/9/2, Brett Cannon <brett at python.org>:
> PEP 3115 says a metaclass' __prepare__ takes two positional arguments,
> name and bases.  But the example has it actually accept an arbitrary
> number of arguments: name and then everything else is bound to bases.
>
> Which happens to be true?

I've played with it a bit and as I see it only takes name and bases.
Maybe there is something secret ;p about using *args in __prepare__
that I dont know yet.

> I'm too tired to even fully trust that I am
> reading the PEP correctly, so I am not about to try to write an
> example to see which is correct and come up with a coherent rewording
> if I am right about what is wrong.  =)
>
> -Brett
> _______________________________________________
> Python-3000 mailing list
> Python-3000 at python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe: http://mail.python.org/mailman/options/python-3000/ggpolo%40gmail.com
>


--
-- Guilherme H. Polo Goncalves


-- 
-- Guilherme H. Polo Goncalves


More information about the Python-3000 mailing list