Author Topic: Modeling a Python Program  (Read 275 times)

gakopp

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Modeling a Python Program
« on: August 23, 2005, 09:22:27 am »
I'm looking for some UML usage advice.  A Python program typically has some top-level attributes and functions (outside any class), plus any number of true OO classes.  I'm trying to determine the best way to model this in UML.  My current idea is to define the top-level non-class attributes and functions (more or less the "main program") as a stereotyped class, and model the program's contained classes as normal UML classes connected to the stereotyped top-level container as nested classes.  Is that a sensible approach for Python-specific modeling?

--Gary Kopp