[Python-3000] Metaclasses in Py3K
Greg Ewing
greg.ewing at canterbury.ac.nz
Mon Dec 18 01:30:10 CET 2006
More information about the Python-3000 mailing list
Mon Dec 18 01:30:10 CET 2006
- Previous message: [Python-3000] Metaclasses in Py3K
- Next message: [Python-3000] Metaclasses in Py3K
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
A point in favour of the current syntax and semantics
is that you can do things like
class C:
class __metaclass__(type):
...
or even, if you're feeling particularly devious,
class C:
def __metaclass__(name, bases, namespace):
...
An enhanced namespace dict would remain compatible
with both of these.
--
Greg
- Previous message: [Python-3000] Metaclasses in Py3K
- Next message: [Python-3000] Metaclasses in Py3K
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-3000 mailing list