[Python-3000] PEP for Metaclasses in Python 3000 (original) (raw)
Guido van Rossum guido at python.org
Tue Mar 13 23:29:03 CET 2007
- Previous message: [Python-3000] PEP for Metaclasses in Python 3000
- Next message: [Python-3000] PEP for Metaclasses in Python 3000
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/)
- Previous message: [Python-3000] PEP for Metaclasses in Python 3000
- Next message: [Python-3000] PEP for Metaclasses in Python 3000
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]