Python metaclass and UML

James Mills prologic at shortcircuit.net.au
Mon Jan 31 16:10:01 EST 2011


On Tue, Feb 1, 2011 at 6:04 AM, Laszlo Nagy <gandalf at shopzeus.com> wrote:
> How should I represent a Python metaclass on an UML class diagram? I know
> how to represent composition, aggregation and inheritance. But not sure
> about metaclasses. What kind of arrow or line should I use between a class
> and its metaclass? Is there a standard for this?

IHMO (but others may have other opinions) the same way
you'd represent a decorated function. Metaclasses IHMO
have the same effect as a decorated function - modifying
another classes's behavior.

cheers
Jaes

-- 
-- James Mills
--
-- "Problems are solved by method"



More information about the Python-list mailing list