Python metaclass and UML

2011-01-31 Thread Laszlo Nagy
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?


Thanks,

   Laszlo

--
http://mail.python.org/mailman/listinfo/python-list


Re: Python metaclass and UML

2011-01-31 Thread Ian Kelly
On Mon, Jan 31, 2011 at 1:04 PM, Laszlo Nagy gand...@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?

http://stackoverflow.com/questions/1483273/how-to-draw-a-classs-metaclass-in-uml
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python metaclass and UML

2011-01-31 Thread James Mills
On Tue, Feb 1, 2011 at 6:04 AM, Laszlo Nagy gand...@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
-- 
http://mail.python.org/mailman/listinfo/python-list