[Python-3000] PEP for Metaclasses in Python 3000
Guido van Rossum
guido at python.org
Tue Mar 13 23:29:03 CET 2007
I think we've definitely entered the bikeshed color discussion now.
I'm holding out for Talin's revised version of the PEP.
On 3/13/07, Nick Coghlan <ncoghlan at gmail.com> wrote:
> Josiah Carlson wrote:
> > But in slightly longer examples, I think that the looks are
> > significantly improved...
> >
> > class Foo(base1, base2, *otherbases, metaclass=mymeta,
> > private=True, **kwargs):
> > ...
> >
> > vs.
> >
> > @@(metaclass=mymeta, private=True, **kwargs)
> > class Foo(base1, base2, *otherbases):
> > ...
> >
>
> vs.
>
> class Foo(base1, base2, *otherbases,
> metaclass=mymeta, private=True, **kwargs):
>
> When it comes to long class headers, I think vertical whitespace will
> prove to be useful for separating out the keywords and the list of bases.
>
> Regards,
> Nick.
>
> --
> Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
> ---------------------------------------------------------------
> http://www.boredomandlaziness.org
>
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000
mailing list